本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
zone_id
as a path parameter.country
and city
IDs to "-1"
. When set this way, the code
and mobile_code
variables will be excluded from the response.shipping.read_write
- Shipping Read & WriteAuthorization: Bearer ********************
-1
. List of countries can be found here.-1
. List of cities can be found here.{
"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"
}
}
curl --location --request PUT 'https://echo.apifox.com/anything/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"
}
}'
{
"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"
}
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升