版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

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)


一级字段二级字段三级字段四级字段
类型
数据类型
长度限制
是否必填
中文含义
长度描述
是否必填
orderfacility

StringM50
发件人网点
仓库代码
B2C:shipper facility

channelCode
FF:warehouse


StringM
channelCodeString
64
渠道代码

渠道名称

英文、英文标点,传值传的是渠道名称

仅限英文字符

M

platform

StringO20
平台
订单平台来源(新增)
OO

remark

StringO200订单备注
备注

extendData




拓展字段 key-value形式(新增)



consigneeaddressCode
String
50

收件人地址代码

比如ONT8表示某个亚马逊仓库



name
StringM50收件人姓名
M


company
String
50收件人公司


phone
String
50

收件人电话



email
String
50收件人邮箱


countryCode
StringM2
目的国二字代码英文代码M
收件人国家二字码;如CN;US


state
StringM?80收件人省/州
M


city
StringM80收件人城市
M


district
String
128收件人区


addressLine1
StringM200收件人地址第一行
M


addressLine2
String
200收件人地址第二行


addressLine3
String
80收件人地址第三行


zipCode
StringM16收件人邮编
M英文代码



shippername
String
50发件人姓名


company
String
512?发件人公司


phone
String
50发件人电话


email
String
50发件人邮箱


countryCode
String
2
始发国二字代码
发件人国家二字码


state
String
80发件人省/州


city
String
80发件人城市


district
String
128发件人区


addressLine1
String
200发件人地址第一行


addressLine2
String
200发件人地址第二行


addressLine3
String
80发件人地址第三行


zipCode
String



16发件人邮编



parcelsreferenceNo
StringM80包裹参考号


























































































一级字段二级字段三级字段四级字段类型长度限制中文含义描述是否必填

parcels

String80包裹参考号
M

description
String255包裹中文描述


weight
BigDecimal8,3包裹重量8位,小数点后3位M

weightUnit
String10重量单位枚举:
KG(默认)
G
LB


length
BigDecimal8,3包裹长


width
BigDecimal8,3包裹宽


height
BigDecimal8,3包裹高


dimensionUnit
String8尺寸单位枚举:
CM(默认)
M


itemsskuString128SKU编码
M

quantityInteger11商品数量
M


请求样例


[
{
"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"
}
]
}
}
]

...