Update Shipping Zone
PUT {{baseUrl}}/shipping/zones/:zone_id
This endpoint allows you to update a specific Custom Shipping Zone.
💡 Note
If you ship to every country and city, set the
country
andcity
IDs to-1
. Therefore, the variablescode
andmobile_code
will NOT appear in the response if set to-1
.
Request Body
{"company"=>"<number>", "shipping"=>{"country"=>"<number>", "city"=>"<number>", "fees"=>{"type"=>"fixed", "amount"=>"<number>", "up_to_weight"=>"<number>", "amount_per_unit"=>"<number>", "per_unit"=>"<number>"}, "duration"=>"<string>", "cities_excluded"=>["<number>", "<number>"], "cash_on_delivery"=>{"fees"=>"<number>", "status"=>"<boolean>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"status":"\u003cnumber\u003e","success":"\u003cboolean\u003e","data":{"id":"\u003cnumber\u003e","zone_code":"\u003cstring\u003e","company":{"id":"\u003cnumber\u003e","slug":"\u003cnull\u003e"},"country":{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e","code":"\u003cstring\u003e","mobile_code":"\u003cstring\u003e"},"city":{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e"},"cities_excluded":[{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e"},{"id":"\u003cnumber\u003e","name":"\u003cstring\u003e","name_en":"\u003cstring\u003e"}],"fees":{"amount":"\u003cstring\u003e","currency":"\u003cstring\u003e","type":"\u003cstring\u003e","weight_unit":"\u003cstring\u003e","up_to_weight":"\u003cnumber\u003e","amount_per_unit":"\u003cnumber\u003e","per_unit":"\u003cnumber\u003e"},"cash_on_delivery":{"status":true,"fees":"\u003cstring\u003e"},"duration":"\u003cstring\u003e"}}