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

Retrieve a district

Returns a single district by its identifier.

get
/districts/{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 district.

Responses
200

The requested district.

application/json

A district record.

pkintegerRead-onlyOptional

The unique identifier of the district.

is_activebooleanOptional

Whether the district is active. Inactive districts are excluded from storefront address lookups.

namestring · max: 128Optional

The official name of the district.

cityintegerOptional

The identifier of the city this district belongs to.

townshipintegerOptional

The identifier of the township this district belongs to.

postcodestring · max: 255 · nullableOptional

The post/zip code of the district.

translationsobject · nullableOptional

A mapping of language codes to translated field values. Example: {"tr": {"name": "Kadıköy"}}.

Default: {}
get/districts/{id}/
GET /api/v1/remote/1/districts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "pk": 7,
  "is_active": true,
  "name": "Kadıköy",
  "city": 3,
  "township": 12,
  "postcode": "34710",
  "translations": {
    "tr": {
      "name": "Kadıköy"
    }
  }
}

Last updated

Was this helpful?