Update Shipping Zone
PUT
/shipping/zones/{zone_id}This endpoint allows you to update a specific Custom Shipping Zone, by passing the zone_id
as a path parameter.
:::tip[Note]
If you ship to all countries and cities, set the country
and city
IDs to "-1"
. When set this way, the code
and mobile_code
variables will be excluded from the response.
:::
Request
Zone ID, list of shipping companies can be found here.
Shipping details.
Shipping Country ID. If you ship to all countries, ensure that you set the value to -1
. List of countries can be found here.
Shipping City ID. If you ship to all cities, ensure that you set the value to -1
. List of cities can be found here.
Excluded Cities from Shipping. List of cities can be found here.
Excluded City Name in English. List of cities can be found here.
Fees details.
Shipping Duration in Days
{
"company": 488260393,
"shipping": {
"country": 1939592358,
"city": 1592433390,
"cities_excluded": [
257742554,
81998629
],
"cash_on_delivery": {
"fees": 12,
"status": true
},
"fees": {
"type": "rate",
"amount": 11,
"up_to_weight": 5,
"amount_per_unit": 2,
"per_unit": 3
},
"duration": "13 days"
}
}
Request samples
[api.label.responses]
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier associated with a certain shipping zone. List of shipping zons can be found here
Zone Code
The cities excluded from Shipping zone.
Shipping duration in days
{
"status": 200,
"success": true,
"data": {
"id": 488260393,
"zone_code": ".SA.riyadh",
"company": {
"id": 1473353380,
"slug": null
},
"country": {
"id": 1473353380,
"name": "السعودية",
"name_en": "Saudi Arabia",
"code": "SA",
"mobile_code": "+966"
},
"city": {
"id": 1473353380,
"name": "الرياض",
"name_en": "Riyadh"
},
"cities_excluded": [
{
"id": 257742554,
"name": "أبو حليفة",
"name_en": "ABU HALIFA"
}
],
"fees": {
"amount": "15.00",
"currency": "SAR",
"type": "fixed",
"weight_unit": "kg",
"up_to_weight": 5,
"amount_per_unit": 2,
"per_unit": 3
},
"cash_on_delivery": {
"status": true,
"fees": "12.00"
},
"duration": "3-5"
}
}