The country APIs provide the list of available countries.
curl --location --request GET '{{url}}/countries' \
--header 'X-Client-Id: {{client_id}}' \
--header 'X-Client-Secret: {{client_secret}}' \
--header 'Content-Type: application/json'
{
{
"currency": {
"code": "MXN",
"name": "Mexican peso",
"symbol": "MXN"
},
"name": "Mexico",
"phone_code": "123",
"three_char_code": "MEX",
"two_char_code": "MX"
},
{
"currency": {
"code": "INR",
"name": "Indian Rupee",
"symbol": "I"
},
"name": "India",
"phone_code": "91",
"three_char_code": "IND",
"two_char_code": "IN"
}
]
GET /countries
/{{countryCode}}
| | | |
| | | Two char ISO code of the country |
curl --location --request GET 'https://v4test.machpay.com/v4/countries/{{countryCode}}' \
--header 'X-Client-Id: {{client_id}}' \
--header 'X-Client-Secret: {{client_secret}}' \
--header 'Content-Type: application/json'
{
"currency": {
"code": "INR",
"name": "Indian Rupee",
"symbol": "I"
},
"name": "India",
"phone_code": "91",
"three_char_code": "IND",
"two_char_code": "IN"
}