List districts
Returns a paginated list of districts ordered by name ascending.
Unlike the storefront endpoint, this admin endpoint returns all districts regardless of their is_active status.
Filter by name, city, township, or has_retail_store. Order results with sort.
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 district name. Exact match.
KadıköyFilter by city identifier. Keeps only districts in the given city.
3Filter by township identifier. Keeps only districts in the given township.
12When true, keep only districts that have at least one retail store.
trueA page of districts.
A paginated list of districts.
Total number of districts 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 district list does not exist — the page number is beyond the last page or is not a number.
GET /api/v1/remote/1/districts/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"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?

