Create Reverse Orders
POST
v1/managers/store/reverse-ordersCreates an order reverse request.
Request
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.
An Access Token is a unique string that represents the authorization granted to a client (Partner application) by a user (Merchant or Store Manager) to access their protected resources. It is part of the OAuth 2.0 standard and is used to authenticate API requests on behalf of the user. Access Tokens have a limited lifespan and must be used within their validity period. Once expired, a new Access Token can be obtained using a Refresh Token. Access Tokens should be treated as sensitive information and must be kept secure to prevent unauthorized access to the user's data. If you do not have an Access-Token
, but have the older alternative instead, i.e., the X-Manager-Token
, then see the instructions here on how to obtain the Access-Token
.
Language preference.
The ID of the order to reverse.
Name of the consignee.
Mobile number of the consignee.
City ID of the consignee.
Address line 1 of the consignee.
Address line 2 of the consignee.
Inventory location ID for multi-inventory stores.
Reasons for reverse order.
{
"order_id": 554348,
"consignee_name": "\"علي أحمد\"",
"consignee_mobile": "\"966500000001\"",
"consignee_city_id": 1,
"consignee_address_1": "\"شارع الملك فهد\"",
"consignee_address_2": "\"المبنى رقم 101\"",
"inventory_location_id": "\" \"",
"reason": [
"\"السلعة تالفة عند التسليم\""
]
}
Request samples
Responses
Unique identifier for the order reverse.
Identifier for the store associated with the order.
ID of the original order being reversed.
Name of the consignee who placed the order.
Mobile number of the consignee.
Object containing details about the consignee's city:
City ID.
Object containing details about the country:
Name of the city
Priority level of the city.
Address lines of the consignee.
Address lines of the consignee.
Object containing details about the inventory:
Identifier for the inventory.
Object containing details about the country where the inventory is located:
Type of inventory
Geographic coordinates of the inventory location.
ID of the city where the inventory is located.
Array containing reasons for reversing the order.
Object containing details about the waybill associated with the reverse order:
Unique identifier for the waybill.
Cost associated with the waybill.
URL to the label for the waybill.
Current status of the waybill.
URL to the courier details for the waybill.
URL for tracking the waybill.
Service level for the waybill.
Tracking number associated with the waybill.
{
"id": "\"0039bc75-472d-4c48-8c82-5e0a6e8eca14\"",
"store_id": "\"724b67c5-2fca-4813-a4ab-2f77703b2f37\"",
"order_id": 1,
"consignee_name": "\"osama\"",
"consignee_mobile": "\"966500000005\"",
"consignee_city": {
"id": 1,
"country": {
"id": 183,
"name": "\"Saudi Arabia\""
},
"ar_name": "string",
"en_name": "string",
"name": "\"Riyadh\"",
"priority": 0
},
"consignee_address_1": "string",
"consignee_address_2": "string",
"inventory": {
"id": "\"5d1bee6c07e543c99a36849fdd6f5773\"",
"country": {
"id": 183,
"name": {
"ar": "string",
"en": "string"
}
},
"type": "\"PHYSICAL\"",
"coordinates": {
"type": "\"Point\"",
"coordinates": [
0
]
},
"city_id": 1
},
"reason": [
" \"Does not match the description\""
],
"waybill": {
"id": "\"50e06bb5-2ea7-480d-9e98-961076cf87d7\"",
"cost": 10,
"label": "\"https:\\\\/\\\\/zidship.com\\\\/labels\\\\/50e06bb5-2ea7-480d-9e98-961076cf87d7\"",
"status": "string",
"courier": "\"https:\\\\/\\\\/zidship.com\\\\/labels\\\\/50e06bb5-2ea7-480d-9e98-961076cf87d7\"",
"tracking_url": "\"https:\\\\/\\\\/zidship.com\\\\/track\\\\/24098837-reverse\"",
"service_level": "\"reverse\"",
"tracking_number": "\"290446207592\""
}
}