✒
✒
✒
✒
PaaS API Docs
Search…
✒
✒
✒
✒
PaaS API Docs
Getting Started
Authentication
Product Guide
Collect
Disburse
Use cases
Remittance
API References
Data population
Spec Sheet
Country
States
Settlement rates
User
Funds
Payout
Transaction
Webhooks
Error Codes
Sandbox
Funds: Test Values
Transaction: Test Values
Changelog
2022
Powered By
GitBook
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
Request Sample
Response Sample
1
curl --location --request GET '{{url}}/countries' \
2
--header 'X-Client-Id: {{client_id}}' \
3
--header 'X-Client-Secret: {{client_secret}}' \
4
--header 'Content-Type: application/json'
Copied!
1
{
2
{
3
"currency": {
4
"code": "MXN",
5
"name": "Mexican peso",
6
"symbol": "MXN"
7
},
8
"name": "Mexico",
9
"phone_code": "123",
10
"three_char_code": "MEX",
11
"two_char_code": "MX"
12
},
13
{
14
"currency": {
15
"code": "INR",
16
"name": "Indian Rupee",
17
"symbol": "I"
18
},
19
"name": "India",
20
"phone_code": "91",
21
"three_char_code": "IND",
22
"two_char_code": "IN"
23
}
24
]
Copied!
Get country by code
GET /countries
/{{countryCode}}
Details
Request Sample
Response Sample
Name
Required
Type
Description
countryCode
Yes
String
Two char ISO code of the country
1
curl --location --request GET 'https://v4test.machpay.com/v4/countries/{{countryCode}}' \
2
--header 'X-Client-Id: {{client_id}}' \
3
--header 'X-Client-Secret: {{client_secret}}' \
4
--header 'Content-Type: application/json'
Copied!
1
{
2
"currency": {
3
"code": "INR",
4
"name": "Indian Rupee",
5
"symbol": "I"
6
},
7
"name": "India",
8
"phone_code": "91",
9
"three_char_code": "IND",
10
"two_char_code": "IN"
11
}
12
Copied!
Previous
Spec Sheet
Next
States
Last modified
2mo ago
Copy link
Contents