Retrieve a list of countries where the store operates. This list includes the country's unique ID, name, ISO codes, and flag image URL.
Request
Header Params
Authorization
string
required
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.
Allowed values:
enar
Example:
en
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
A list of countries is returned
Data Schema
status
string
optional
Example:
object
countries
array[object (Country) {5}]
optional
id
integer
required
Unique identifier of the country
Example:
184
name
string
required
Name of the country, written in the language specified by the Accept-Language header parameter; defaults to Arabic if Accept-Language is not specified.
Example:
السعودية
code
string
optional
Two-letter country code according to ISO 3166-1 alpha-2
Example:
SA
country_code
string
optional
Three-letter country code according to ISO 3166-1 alpha-3