For the complete documentation index, see llms.txt. This page is also available as Markdown.

Country

Read on countries enabled for you

The country APIs provide the list of available countries.

Get a list of all available countries

GET /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 country by code

GET /countries/{{countryCode}}

Name

Required

Type

Description

countryCode

Yes

String

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"
}

Last updated