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

Retrieve a city

Returns a single city by its identifier.

get
/cities/{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 city.

Responses
200

The requested city.

application/json

A city record.

pkintegerRead-onlyOptional

The unique identifier of the city.

is_activebooleanOptional

Whether the city is active. Inactive cities are excluded from storefront address lookups.

namestring · max: 128Optional

The display name of the city.

countryintegerOptional

The identifier of the country this city belongs to.

priorityinteger · nullableOptional

The sort priority of the city. Lower values appear first; null sorts after all numbered priorities.

postcodestring · max: 255 · nullableOptional

The post/zip code associated with the city.

translationsobject · nullableOptional

A mapping of language codes to translated field values. Example: {"tr": {"name": "İstanbul"}}.

Default: {}
get/cities/{id}/
GET /api/v1/remote/1/cities/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 3,
  "is_active": true,
  "name": "Istanbul",
  "country": 1,
  "priority": 1,
  "postcode": null,
  "translations": {
    "tr": {
      "name": "İstanbul"
    }
  }
}

Last updated

Was this helpful?