List Inventory Addresses
GET
/managers/store/inventory-addressesThis endpoint returns the physical addresses of Merchant inventory and product stock.
It applies when the merchant is using a single inventory system.
Note: If the merchant has activated the Multi-Inventory feature,
then the corresponding multi-inventory endpoint (List Store Locations) should be used instead of this endpoint in order
to retrieve inventory addresses.
Request
Preferred language for the response. Defaults to en
if not specified.
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.
Request samples
Responses
Indicates the status of the API response. The value object
implies a successful response with the requested data object. The value error
indicates that an error occurred during the request processing.
Unique identifier for the inventory location in the Zid database.
Street address of the inventory location.
Indicates if this inventory location is a valid pickup location or is used for storage only.
Additional data related to the inventory location.
Name of the inventory location.
Postal code of the inventory location.
Geographical coordinates of the inventory location.
Indicates if Cash On Pickup is enabled for this inventory location.
The type of the message.
The code associated with the message.
The name of the message.
A detailed description of the message.
{
"status": "object",
"inventory_addresses": [
{
"id": 102,
"city": {
"name": "Other",
"id": 1,
"national_id": 3,
"priority": 10,
"country_id": 184,
"country_name": "السعودية",
"country_code": "SA",
"ar_name": "الرياض",
"en_name": "Riyadh"
},
"street": "King Fahd Road",
"is_pickup_option": true,
"extra_data": {
"zid_front_point": {
"pickupPointId": "ZID1234"
}
},
"name": "Central Warehouse",
"postal_code": "21371",
"coordinates": {
"lat": 24.7136,
"lon": 46.6753
},
"cop_enabled": false
}
],
"message": {
"type": "object",
"code": "200",
"name": "Success",
"description": "Order details retrieved successfully."
}
}