List countries
Returns a paginated list of countries ordered by name ascending.
Unlike the storefront endpoint, this admin endpoint returns all countries regardless of their is_active status.
Filter with name (case-insensitive contains), code (exact, case-insensitive), or retailstore__is_active. Order results with sort on pk, name, code, or is_active.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The page number to return.
1The number of items to return per page.
10Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.
-idFilter by name. Case-insensitive contains match — ?name=urk matches Turkey.
TurkeyFilter by country code. Exact, case-insensitive match.
TRFilter to countries that have at least one retail store whose is_active matches this value.
A page of countries.
A paginated list of countries.
Total number of countries matching the request.
URL of the next page, or null if this is the last page.
URL of the previous page, or null if this is the first page.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested page of the country list does not exist — the page number is beyond the last page or is not a number.
GET /api/v1/remote/1/countries/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 1,
"is_active": true,
"name": "Turkey",
"code": "TR",
"translations": {
"tr": {
"name": "Türkiye"
}
}
}
]
}Last updated
Was this helpful?

