运费测算
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2c/freightCalculation |
POST /api/supplier-service/v1/b2b/poList Host: http://cfs-qa.etowertech.com/ Content-Type: application/json Accept: application/json Authorization:WallTech etotest8xkIIphLnbkjRACNj4P:pc9H97D-_b2_TSCVvNj81A X-WallTech-Date:Tue, 02 Aug 2022 06:43:37 GMT |
| 字段名 | 数据类型 | 最大长度 | 必填 | 描述 |
|---|---|---|---|---|
| warehouseCode | String | 50 | M | 仓库代码 |
| country | String | 2 | M | 国家二字代码(CN, US ...) |
| state | String | 50 | M | 州(省) |
| city | String | 50 | M | 城市 |
| district | String | 50 | M | 区 |
| postCode | String | 30 | M | 邮编 |
| parcelList | Array | 20 | M | 包裹列表 |
parceList参数
| 字段名 | 数据类型 | 最大长度 | 必填 | 描述 |
|---|---|---|---|---|
| parcelWeight | decimal | O | 包裹重量(productList为空时必填) | |
| parcelLength | decimal | O | 包裹长(productList为空时必填) | |
| parcelWidth | decimal | O | 包裹宽(productList为空时必填) | |
| parcelHeight | decimal | O | 包裹高(productList为空时必填) | |
| productList | Array | O | 包裹下商品列表(包裹长,宽,高,重量任一为空时必填,使用商品实际长宽高重量计算出包裹长宽高) |
productList参数
| 字段名 | 数据类型 | 最大长度 | 必填 | 描述 |
|---|---|---|---|---|
| sku | String | 50 | M | 商品编码 |
| productQty | Integer | M | 商品数量 |
字段名 | 子级字段名 | 数据类型 | 最大长度 | 描述 |
|---|---|---|---|---|
| String | 仓库代码 | |||
{
"code": "0",
"data": [
{
"serviceList": [],
"warehouseCode": "DE"
},
{
"serviceList": [
{
"active": 1,
"activeMsg": "Active",
"serviceCode": "catest",
"serviceName": "testca",
"serviceType": 5,
"serviceTypeName": "Fulfillment"
}
],
"warehouseCode": "shopify"
},
{
"serviceList": [
{
"active": 1,
"activeMsg": "Active",
"serviceCode": "UBI.CN2WW.GENERAL",
"serviceName": "CN-WW Direct Injection-General",
"serviceType": 5,
"serviceTypeName": "Fulfillment"
},
{
"active": 1,
"activeMsg": "Active",
"serviceCode": "Melbourne service",
"serviceName": "墨尔本服务",
"serviceType": 5,
"serviceTypeName": "Fulfillment"
},
{
"active": 1,
"activeMsg": "Active",
"serviceCode": "测试-服务",
"serviceName": "TEST Service 001",
"serviceType": 5,
"serviceTypeName": "Fulfillment"
},
{
"active": 1,
"activeMsg": "Active",
"serviceCode": "b2cfw",
"serviceName": "【B2C服务",
"serviceType": 5,
"serviceTypeName": "Fulfillment"
}
],
"warehouseCode": "CNwharehouse"
}
],
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
} |