cURL
curl --request GET \ --url https://api.monime.io/countries/{idOrCode} \ --header 'Authorization: Bearer <token>'
{ "success": true, "messages": [ "<unknown>" ], "result": { "id": "cnt-TJh76H8hj778hftdtu66gjio", "code": "SL", "name": "Sierra Leone", "currency": { "code": "SLE", "unit": "cent", "unitLength": 2 }, "supportedCurrencies": [ "SLE" ] } }
Bearer HTTP authentication specified with the header Authorization: Bearer <access_token>
The id or country code for the country. The id or country code for the country.
OK
Represents the status of the query operation, confirming if it was successful. This field is always true
Contains a list of messages providing relevant information or feedback related to the query or operation
Show child attributes
The ID of the country.
"cnt-TJh76H8hj778hftdtu66gjio"
The ISO 3166-1 alpha-2 country code.
"SL"
The name of the country.
"Sierra Leone"
The default currency object of the country.
The ISO 4217 currency code.
"SLE"
The subunit for the currency.
"cent"
The unit length for the currency's subunit.
2
The list supported currency codes in ISO 4217 format in that country. It includes the default currency's code.
["SLE"]
Was this page helpful?