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

Retrieve a country

Returns a single country by its identifier.

get
/countries/{id}/
Authorizations
AuthorizationstringRequired

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

Path parameters
idintegerRequired

The unique identifier of the country.

Responses
200

The requested country.

application/json

A country record.

pkintegerRead-onlyOptional

The unique identifier of the country.

is_activebooleanOptional

Whether the country is active. Inactive countries are excluded from storefront address lookups.

namestring · max: 128Optional

The display name of the country.

codestring · max: 3Optional

The unique country code (e.g. ISO 3166-1 alpha-2).

translationsobject · nullableOptional

A mapping of language codes to translated field values. Example: {"tr": {"name": "Türkiye"}, "en": {"name": "Turkey"}}.

Default: {}
get/countries/{id}/
GET /api/v1/remote/1/countries/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 1,
  "is_active": true,
  "name": "Turkey",
  "code": "TR",
  "translations": {
    "tr": {
      "name": "Türkiye"
    }
  }
}

Last updated

Was this helpful?