描述
运费测算创建退件单
路径
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2c/createReturnOrder |
请求头样例
| 代码块 |
|---|
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 | 仓库代码 | |
| countryreferenceNo | String | 250 | M | 国家二字代码(CN, US ...) | state订单参考号 |
| originalOrderNo | String | 50 | MO | 州(省)原始订单号 | |
| cityeta | StringDate | 50O | M预计到达时间 | ||
| 城市returnReason | district | String | 50200 | MO | 区退件原因 |
| postCoderemark | String | 30200 | MO | 邮编备注 | |
| parcelListexpressNoList | Array | 20 | M | 包裹列表 |
parceList参数
| O |
| 跟踪号列表(服务为“线下服务”时,跟踪号必填, 非线下服务时,跟踪号填写无效) |
| isNeedConfirm |
| Boolean | O |
| 是否“确认”同步到海外仓,默认为“true” |
| itemList |
| Array |
| M |
| 商品列表 |
| serviceName |
| String |
| M |
| 退件服务名称 |
| senderAddress |
| Object |
| M |
| 发件人地址 |
productList参数
| 字段名 | 数据类型 | 最大长度 | 必填 | 描述 |
|---|---|---|---|---|
| sku | String | 50 | M | 商品编码 |
| productQty | Integer | M | 商品数量 |
...
| handleType |
...
| Short |
...
| theme | Eclipse |
|---|---|
| linenumbers | true |
| collapse | true |
...
{
"warehouseCode": "CATESTWH",
"country": "CN",
"state": "四川省",
"city": "广元市",
"district": "利州区",
"postCode": "123432",
"parcelList": [
{
"parcelWeight": 1,
"parcelLength": 3,
"parcelWidth": 4,
"parcelHeight": 5,
"productList": [
{
"sku": "SKG",
"productQty": 2
},
{
"sku": "Red wine",
"productQty": 1
}
]
},
{
"parcelWeight": null,
"parcelLength": null,
"parcelWidth": null,
"parcelHeight": null,
"productList": [
{
"sku": "SKG",
"productQty": 2
},
{
"sku": "Red wine",
"productQty": 1
}
]
},
{
"parcelWeight": 2,
"parcelLength": 3,
"parcelWidth": 4,
"parcelHeight": 5,
"productList": []
}
]
}...
| M | 处理方式;0=重新上架;1=退回国内;2=不良品;3=销毁;4=待检查;5=换标;6=产品升级 |
senderAddress参数
| 字段名 | 数据类型 | 最大长度 | 必填 | 描述 |
|---|
| contactName | String |
| 255 |
| M |
| 联系人姓名 |
| contactPhone |
| String |
| 255 |
| M |
| 联系人电话 |
| contantEmail |
| String |
...
| 255 |
| O |
| 联系人邮箱 |
| companyName |
| String |
| 255 |
| O | 联系人公司 | |
| country | String | 2 |
| M |
| 国家二字码 |
| state |
| String |
| 128 |
费用金额
| O | 州(省) | |
| city | String | 128 |
| M |
城市 |
| district |
| String |
...
| 128 |
| O |
| 区 |
| postcode |
| String |
| 32 |
| O |
| 邮编 |
| addressLine1 | String |
| 512 |
| M |
| 地址1 |
| addressLine2 |
| String |
| 512 |
| O |
| 地址2 |
| addressLine3 |
| String |
| 512 |
| O |
| 地址3 |
...
请求样例
| 代码块 | ||||||
|---|---|---|---|---|---|---|
| ||||||
{
"codereferenceNo": "0openApi-xmx-001",
"datawarehouseCode": [
{
"channelName": "TEST PUROLATOR GROUND""CATESTWH",
"feeItemList": [
{
"billingWeight": "",
"originalOrderNo": "C15487240411000002O",
"costType": 8,
"costTypeNameeta": "Last Mile Fee",
"currency": "CAD",
"discount": 0,
"fee": 67.400,
2025-12-02 23:59:59",
"feeDetailList": [
{
"costTypeName": "尾程基本运费",
"returnReason": "退件原因",
"costTypeNameEnremark": "Last Mile Basic Fee",
备注",
"currencyisNeedConfirm": "CADtrue",
"discountexpressNoList": "",[
"fee": 67.40000000,
"qw",
"zoneItemName": ""
"as"
}
]
}
]
},
{
"channelName": "易仓下单专用服务(勿动)",
"feeItemList": [
"itemList": [
{
"billingWeightsku": "TEST2024011602",
"costTypeproductQty": 8,
1,
"costTypeNamehandleType": "Last Mile Fee",1
}
"currency": "CAD",
],
"discountserviceName": 0,
"fee": 191.370,
"ServiceNameTest",
"feeDetailListsenderAddress": [
{
"costTypeName"contactName": "尾程基本运费联系人电话",
"costTypeNameEncontactPhone": "Last Mile Basic Fee联系人电话",
"currency": "CAD",
"discount": "",
"fee": 67.40000000,
"zoneItemName": ""
},
{
"contactEmail": "test9@qq.com",
"costTypeName"companyName": "偏远地区附加费联系人公司",
"costTypeNameEn"country": "Remote Area SurchargeCN",
"currency"state": "CAD省",
"discount"city": "城市",
"fee": 19.0000000,
"zoneItemName": ""
},
{
"costTypeName": "燃油附加费",
"district": "区",
"costTypeNameEn"postCode": "Fuel Surcharge邮编",
"currency"addressLine1": "CAD地址1",
"discountaddressLine2": "地址2",
"fee": 8.64000000000000,
"zoneItemName": ""
"addressLine3": "地址3"
},
{
"costTypeName": "安全管理费",
"costTypeNameEn": "Security Surcharge",
"currency": "CAD",
"discount": "",
"fee": 13.48000000000000,
"zoneItemName": ""
},
{
} |
响应字段
字段名 | 数据类型 | 最大长度 | 描述 |
|---|---|---|---|
referenceNo | String | 50 | 订单参考号 |
| orderNo | String | 50 | 订单系统单号 |
响应样例
| 代码块 | ||||
|---|---|---|---|---|
| ||||
{ "costTypeNamecode": "其它附加费", "costTypeNameEn": "Other Surcharge", "currency": "CAD", "discount": "", "fee": 20.22000000000000, "zoneItemName": "" }, { "costTypeName": "住宅地址附加费", "costTypeNameEn": "Residential Surcharge", "currency": "CAD", "discount": "", "fee": 26.96000000000000, "zoneItemName": "" }, { 0", "data": { "costTypeName"orderNo": "电池附加费R15487241218000003O", "costTypeNameEn": "Battery Surcharge", "currency": "CAD", "discount": "", "fee": 33.70000000000000, "zoneItemName": "" }, { "costTypeName": "保险", "costTypeNameEn": "Insurance Fee", "referenceNo": "openApi-xmx-001" }, "errors": "", "message": "", "currencymessageId": "CAD", "discount"success": ""true, "fee": 1.970, "zoneItemName": "" } ] } ] }, { "warnList": "" } |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
{ "channelNamecode": "卡派(测试)0005", "feeItemListdata": [] }, { "channelName": "OFFLINE_PICKUP_EXPRESS", "feeItemListerrors": [] }, { "channelNamecode": "OFFLINE_PICKUP_TRUCK600224", "feeItemListmessage": [] }, { "channelName": "MINXI_C", "feeItemList": []"Client Reference No are duplicate" } ], "errorsmessage": "", "message": "paramter error", "messageId": "", "success": truefalse, "warnList": "" } |