List townships
Returns a paginated list of townships ordered by name ascending.
Unlike the storefront endpoint, this admin endpoint returns all townships regardless of their is_active status.
Filter by city, country, name, name_startswith, pk__in, retailstore__isnull, or store_type. 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 name. Case-insensitive contains match — ?name=kad matches Kadıköy.
KadıköyFilter by city identifier. Keeps only townships belonging to the given city.
3Filter by country identifier. Keeps only townships belonging to cities in the given country.
1Filter by name prefix. Case-insensitive starts-with match — ?name_startswith=kad matches Kadıköy.
KadFilter by a comma-separated list of township identifiers. Returns only the townships whose pk is in the list.
1,2,3Filter by retail store presence. false keeps only townships that have at least one retail store; true keeps only townships with no retail store.
falseFilter by retail store type name. Case-sensitive exact match. Keeps only townships whose retail stores have the given store type name.
flagshipA page of townships.
A paginated list of townships.
Total number of townships 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 township list does not exist — the page number is beyond the last page or is not a number.
GET /api/v1/remote/1/townships/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"pk": 42,
"is_active": true,
"name": "Kadıköy",
"city": 3,
"postcode": "34710",
"translations": {
"tr": {
"name": "Kadıköy"
}
}
}
]
}Last updated
Was this helpful?

