接口说明
...
创建海外仓一件代发小包订单
路径
...
HTTP Verb
...
URL
...
qa: https://cfs-qa.etowertech.com/api/supplier-service
/api/supplier-service/v2/b2c/orders
请求头样例
...
POST /api/supplier-service/v2/b2c/orders HTTP/1.1
Content-Type: application/json
Accept: application/json
User-Agent: Mozilla 5.0
Host: cfs-qa.etowertech.com
X-WallTech-Date: Thu, 06 Aug 2020 06:21:24 GMT
Authorization:WallTech testv7lVa8Fu2Kn6R7OAG6T:htM1QoTEUnuLsVbItVtABfSFYCs=
请求字段(request)
...
渠道名称
仅限英文字符
...
B2C=小包直邮
Fulfillment =一件代发(此处固定为该值)
固定值Fulfillment=?(新增)
...
贸易术语(新增)
DDU
DDP
...
揽收类型(新增)
pick up 上门揽收
drop off 自送到仓(不填默认)
...
是否投保(新增)
是
否(默认)
...
是否签名(新增)
是
否(默认)
...
收件人地址代码
比如ONT8表示某个亚马逊仓库
...
收件人电话
...
拓展字段key-value形式
...
退件选项
退件
销毁
...
dangerousGoods
hazardous
...
危险品
DG=危险品
空=非危险品(默认)
...
...
包裹类型(新增)
No Battery 不带电:(值)
Inside Equipment 带电:(值)
...
重量单位:
KG(默认)
G
LB
...
尺寸单位
CM(默认)
M
...
发票币种三字代码(新增)
(系统根据SKU算)
...
发票金额(新增)
(系统根据SKU算)
...
受益人
或
公司
...
受益人的身份证
或
收益公司的组织机构代码证
...
投保币种三字代码
比如CNY;USD
...
date
...
请求样例
...
[
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "test",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi017",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
},
{
"facility": "Canada Warehouse Toronto 3-FBA2431425677i656434536",
"channelCode": "hwc",
"platform": "12345678901234567890",
"remark": "testremark",
"consignee": {
"addressCode": "11112",
"name": "testname",
"company": "testcompany",
"countryCode": "cn",
"state": "teststate",
"city": "testcity",
"district": "testdistirct",
"addressLine1": "testaddressline1",
"addressLine2": "testaddressline2",
"addressLine3": "testaddressline3",
"zipCode": "testzipcode",
"phone": "testphone",
"email": "testemail@123.com"
},
"shipper": {
"addressCode": "",
"name": "",
"company": "",
"countryCode": "",
"state": "",
"city": "",
"district": "",
"addressLine1": "",
"addressLine2": "",
"addressLine3": "",
"zipCode": "",
"phone": "",
"email": ""
},
"parcels": {
"referenceNo": "testnewapi018",
"description": "GOODSSKG",
"weight": "12",
"weightUnit": "",
"length": "",
"width": "",
"height": "",
"dimensionUnit": "CM",
"items": [
{
"sku": "testgoods",
"quantity": "1"
}
]
}
}
]
返回样例
成功样例
[
{
"code": "0",
"data": {
"orderNo": "C12283230214000029O",
"referenceNo": "testnewapi017"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
},
{
"code": "0",
"data": {
"orderNo": "C12283230214000030O",
"referenceNo": "testnewapi018"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
]
失败样例
[
{
"code": "0005",
"data": {
"orderIndex": 1,
"referenceNo": "testnewapi017"
},
"errors": [
{
"code": "600904",
"message": "referenceNo:testnewapi017,Already exists in the system"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
},
{
"code": "0",
"data": {
"orderNo": "C12283230214000033O",
"referenceNo": "testnewapi019"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
]
attachments创建仓库尾程小包订单
接口详情见:10.创建直邮小包订单3.0