物流
物流配置属性
ID
物流方案id
int
title
物流方案名字
string
product
物流方案关联商品信息
object
product.product_fees_conditions_condition
物流方案关联商品的类型
string
product.product_fees_conditions_is
物流方案关联商品的条件
string
product.product_fees_conditions_values
物流方案关联商品的条件值
array
condition
物流方案大条件
array
condition[].id
物流方案大条件内小方案的物流id
int
condition[].title
物流方案大条件内小方案的物流标题(顾客可见)
string
condition[].cost
物流方案大条件内小方案的物流费用
decimal(0.01)
condition[].condition
物流方案大条件内小方案
array
condition[].condition[].product_fees_conditions_condition
物流方案大条件内小方案的条件配置
string
condition[].condition[].product_fees_conditions_is
物流方案大条件内小方案的条件配置范围
string
condition[].condition[].product_fees_conditions_values
物流方案大条件内小方案的条件值
array|string
获取物流列表
GET
/openapi/2023-10/shipping_zones
权限:read_shipping
Query Parameters
type*
物流配置类型,可选值 common,product
{
"data": [
{
"id": 106,
"post_title": "common logistics",
"condition": [
[
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "1"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "6"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"AO",
"BF",
"BI",
"BJ",
"BW",
"CD",
"CF",
"CG",
"CI",
"CM",
"CV",
"DJ",
"DZ",
"EG",
"EH",
"ER",
"ET",
"GA",
"GH",
"GM",
"GN",
"GQ",
"GW",
"KE",
"KM",
"LR",
"LS",
"LY",
"MA",
"MG",
"ML",
"MR",
"MU",
"MW",
"MZ",
"NA",
"NE",
"NG",
"RE",
"RW",
"SC",
"SD",
"SH",
"SL",
"SN",
"SO",
"ST",
"SZ",
"TD",
"TG",
"TN",
"TZ",
"UG",
"YT",
"ZA",
"ZM",
"ZW"
],
"country_title": "qweqwe"
},
{
"product_fees_conditions_condition": "product",
"product_fees_conditions_is": "not_in",
"product_fees_conditions_values": [
11
]
}
],
[
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "0"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "10"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"AO",
"BF",
"BI",
"BJ",
"BW",
"CD",
"CF",
"CG",
"CI",
"CM",
"CV",
"DJ",
"DZ",
"EG",
"EH",
"ER",
"ET",
"GA",
"GH",
"GM",
"GN",
"GQ",
"GW",
"KE",
"KM",
"LR",
"LS",
"LY",
"MA",
"MG",
"ML",
"MR",
"MU",
"MW",
"MZ",
"NA",
"NE",
"NG",
"RE",
"RW",
"SC",
"SD",
"SH",
"SL",
"SN",
"SO",
"ST",
"SZ",
"TD",
"TG",
"TN",
"TZ",
"UG",
"YT",
"ZA",
"ZM",
"ZW"
],
"country_title": "qweqwe"
},
{
"product_fees_conditions_condition": "product",
"product_fees_conditions_is": "not_in",
"product_fees_conditions_values": [
11
]
}
],
[
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "1"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "20"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"AE",
"AF",
"AM",
"AZ",
"BD",
"BH",
"BN",
"BT",
"CC",
"CN",
"CX",
"GE",
"HK",
"ID",
"IL",
"IN",
"IO",
"IQ",
"IR",
"JO",
"JP",
"KG",
"KH",
"KP",
"KR",
"KW",
"KZ",
"LA",
"LB",
"LK",
"MM",
"MN",
"MO",
"MV",
"MY",
"NP",
"OM",
"PH",
"PK",
"PS",
"QA",
"SA",
"SG",
"SY",
"TH",
"TJ",
"TL",
"TM",
"TW",
"UZ",
"VN",
"YE"
],
"country_title": "阿斯蒂芬"
},
{
"product_fees_conditions_condition": "product",
"product_fees_conditions_is": "not_in",
"product_fees_conditions_values": [
11
]
}
]
]
}
],
"links": {
"first": "http://shop.com/openapi/2023-10/shipping-zones?page=1",
"last": "http://shop.com/openapi/2023-10/shipping-zones?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http://shop.com/openapi/2023-10/shipping-zones",
"per_page": 15,
"to": 1,
"total": 1
}
}
获取物流配置详情
GET
/openapi/2023-10/shipping_zones/{id}
权限:read_shipping
Path Parameters
id*
int
物流配置ID
{
"ID": 110,
"title": "物流配置方案",
"product": {
"product_fees_conditions_condition": "product",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
11
]
},
"condition": [
{
"id": 111,
"title": "亚洲1",
"cost": "1.2",
"condition": [
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "1"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "10"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"CV",
"DJ",
"AO",
"BF",
"BI",
"BJ",
"BW",
"CD",
"CF",
"CG",
"CI",
"CM",
"DZ",
"EG",
"EH",
"ER",
"ET",
"GA",
"GH",
"GM",
"GN",
"GQ",
"GW",
"KE",
"KM",
"LR",
"LS",
"LY",
"MA",
"MG",
"ML",
"MR",
"MU",
"MW",
"MZ",
"NA",
"NE",
"NG",
"RE",
"RW",
"SC",
"SD",
"SH",
"SL",
"SN",
"SO",
"ST",
"SZ",
"TD",
"TG",
"TN",
"TZ",
"UG",
"YT",
"ZA",
"ZM",
"ZW"
],
"country_title": "亚洲"
}
]
},
{
"id": 112,
"title": "亚洲2",
"cost": "3",
"condition": [
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "10"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "20"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"CV",
"DJ",
"AO",
"BF",
"BI",
"BJ",
"BW",
"CD",
"CF",
"CG",
"CI",
"CM",
"DZ",
"EG",
"EH",
"ER",
"ET",
"GA",
"GH",
"GM",
"GN",
"GQ",
"GW",
"KE",
"KM",
"LR",
"LS",
"LY",
"MA",
"MG",
"ML",
"MR",
"MU",
"MW",
"MZ",
"NA",
"NE",
"NG",
"RE",
"RW",
"SC",
"SD",
"SH",
"SL",
"SN",
"SO",
"ST",
"SZ",
"TD",
"TG",
"TN",
"TZ",
"UG",
"YT",
"ZA",
"ZM",
"ZW"
],
"country_title": "亚洲"
}
]
},
{
"id": 113,
"title": "美洲1",
"cost": "1",
"condition": [
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "1"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "10"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"BV",
"GS",
"HM",
"TF"
],
"country_title": "美洲"
}
]
},
{
"id": 114,
"title": "美洲2",
"cost": "1.5",
"condition": [
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "greater_equal_to",
"product_fees_conditions_values": "10"
},
{
"product_fees_conditions_condition": "cart_totalafter",
"product_fees_conditions_is": "less_equal_to",
"product_fees_conditions_values": "20"
},
{
"product_fees_conditions_condition": "country",
"product_fees_conditions_is": "is_equal_to",
"product_fees_conditions_values": [
"BV",
"GS",
"HM",
"TF"
],
"country_title": "美洲"
}
]
}
]
}
Last updated