countries
Public: no authentication required.
Get list of all available countries
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
query Countries {
countries {
code
currencyCode
phoneCode
name
currencyName
flag
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "query Countries {\n countries {\n code\n currencyCode\n phoneCode\n name\n currencyName\n flag\n }\n}"
}
EOF
Response:
{
"data": {
"countries": [
{
"code": "string",
"currencyCode": "string",
"phoneCode": "string",
"name": "string",
"currencyName": "string",
"flag": "string"
}
]
}
}
countries: [CountryListItem!]!
Type
CountryListItem object
A country to pick from.