Retrieve Cities by Country ID
GET
v1/managers/cities/by-country-id/{country_id}Retrieve a list of cities for a specific country where the store operates or delivers. The list includes each city's unique ID, name, and country details. Note that a city can be labeled as 'Other', represented by an 'أخرى' or 'Other' in the 'name' field, which typically signifies a location outside of the predefined list of cities.
Request
Unique identifier of the country
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en
if not specified.
Request samples
Responses
A list of cities is returned
Name of the city, written in the language specified by the Accept-Language header parameter; defaults to Arabic if Accept-Language is not specified. (Always "Other" if is_marketplace_order is true)
Unique identifier of the city
National identifier of the city.
Priority of the city. Higher number indicates higher priority.
Unique identifier of the country the city is located in
Name of the country the city is located in (in Arabic)
Two-letter country code according to ISO 3166-1 alpha-2
Name of the city in Arabic
Name of the city in English