转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 前一个 版本 2 下一个 »

描述

运费测算

路径

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


字段

字段名数据类型最大长度必填描述
warehouseCodeString50M仓库代码
countryString2M国家二字代码(CN, US ...)
stateString50M州(省)
cityString50M城市
districtString50M
postCodeString30M邮编
parcelList

String

20M包裹列表

parceList参数

字段名数据类型最大长度必填描述
parcelWeightdecimal
O包裹重量(productList为空时必填)
parcelLengthdecimal
O包裹长(productList为空时必填)
parcelWidthdecimal
O包裹宽(productList为空时必填)
parcelHeightdecimal
O包裹高(productList为空时必填)
productListArray
O

包裹下商品列表(包裹长,宽,高,重量任一为空时必填,使用商品实际长宽高重量计算出包裹长宽高)

productList参数

字段名数据类型最大长度必填描述
skuString50M商品编码
productQtyInteger
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": ""
}







  • 无标签