For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

get
/countries/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Query parameters
pageintegerOptional

The page number to return.

Default: 1
limitintegerOptional

The number of items to return per page.

Default: 10
sortstringOptional

Orders the results by one or more fields. Separate multiple fields with commas. Prefix a field with a hyphen (-) for descending order.

Example: -id
namestringOptional

Filter by name. Case-insensitive contains match — ?name=urk matches Turkey.

Example: Turkey
codestringOptional

Filter by country code. Exact, case-insensitive match.

Example: TR
retailstore__is_activebooleanOptional

Filter to countries that have at least one retail store whose is_active matches this value.

Responses
200

A page of countries.

application/json

A paginated list of countries.

countintegerOptional

Total number of countries matching the request.

nextstring · nullableOptional

URL of the next page, or null if this is the last page.

previousstring · nullableOptional

URL of the previous page, or null if this is the first page.

get/countries/
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?