Get Countries
This request returns a list of countries.
get | /countries |
Sample
A sample GET request to get a list of countries:
curl -X GET \
'https://api.carrierx.com/core/v2/countries?limit=1' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'
Response
200
status code with a list of Country objects:
{
"count": 1,
"has_more": true,
"items": [
{
"capital": "Washington D.C.",
"common_name": "United States",
"dialing_prefix": "1",
"domain": "us",
"iso_3166_alpha_2": "US",
"iso_3166_alpha_3": "USA",
"iso_3166_numeric": 840,
"mcc": "310,311,312,313,316",
"official_name": "United States of America",
"region": "Americas",
"subregion": "Northern America"
}
],
"limit": 1,
"offset": 0,
"pagination": {
"next": "https://api.carrierx.com/core/v2/countries?limit=1&offset=1"
},
"total": 249
}
This request is enabled for Pagination, Result Filtering, and Field Filtering.
Required Scopes
To get information about Country objects, the partner must have one of the following scopes enabled:
countries.manage
countries.read