- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Update Shipping Zone
Production
Production
PUT
https://api.salla.dev/admin/v2/shipping/zones/{zone_id}
Shipping Zones
Last modified:2025-02-02 12:23:10
zone_id
as a path parameter.Note
country
and city
IDs to "-1"
. When set this way, the code
and mobile_code
variables will be excluded from the response.Scopes
shipping.read_write
- Shipping Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
zone_id
string
required
Body Params application/json
company
number
required
shipping
object
optional
country
number
required
-1
. List of countries can be found here.city
number
required
-1
. List of cities can be found here.cities_excluded
array[number] | number
optional
cash_on_delivery
object
optional
fees
object
required
duration
string
required
Example
{
"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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.salla.dev/admin/v2/shipping/zones/' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}'
Responses
🟢200OK
application/json
Body
status
number
optional
success
boolean
optional
data
object (ShippingZone)
optional
id
number
required
Example:
488260393
zone_code
string
required
Example:
.SA.riyadh
company
object
required
country
object
required
city
object
required
cities_excluded
array [object {3}]
required
fees
object
required
cash_on_delivery
object
required
duration
string
required
Example:
3-5
Example
{
"status": 200,
"success": true,
"data": {
"id": 488260393,
"zone_code": ".SA.riyadh",
"company": {
"id": 1473353380,
"slug": "ABU HALIFA"
},
"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"
}
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2025-02-02 12:23:10