...
POST /api/supplier-service/v1/b2b/po HTTP/1.1 Host: http://cfs-qa.etowertech.com/ Content-Type: application/json |
字段
字段名 | 数据类型 | 最大长度 | 必填性 | 描述 |
|---|---|---|---|---|
| 入库单信息 | ||||
referenceNo | 50 | M | 订单唯一标识;客户入库单号 | |
| tallyRule |
| M |
理货规则:1:单件;2:单箱 |
2:单箱
| useShipperBoxNo |
| M |
1:是
2:否使用客户箱号发送海外仓:1:是;2:否 | ||||
| 目的仓信息 | ||||
|---|---|---|---|---|
warehouseCode | 20 | M | ||
目的仓库代码;收货仓库代码
(可联系管理员)目的仓库代码 | ||||
| 发货人信息 | ||||
|---|---|---|---|---|
shipperWarehouseCode | ||||
100 | O |
发货地址代码:填写了发货地址代码,则无需填写发货人的其他信息 |
如果填写了地址代码,则不需要填写发货人的其他信息
(可联系管理员)
shipperContactName | 20 | M | 发货人姓名(填写发货地址代码时无需填写) | |
shipperBizName |
改为shipperCompanyName
50 | O | 发货人公司名称(填写发货地址代码时无需填写) | |
shipperPhone | 20 |
M | 发货人电话(填写发货地址代码时无需填写) | |||
shipperEmail | 50 | O | 发货人邮箱(填写发货地址代码时无需填写) | |
| postCode | 20 | O | 发货人邮编(填写发货地址代码时无需填写) | |
country | 2 |
O
发货人国家(二字码,填写发货地址代码时无需填写)
比如CN;US;UKM | 发货人国家二字码(填写发货地址代码时无需填写) | |||
state | 20 | O | 发货人省/州(填写发货地址代码时无需填写) | |
city | 20 | O | 发货人城市(填写发货地址代码时无需填写) | |
district | 20 | O | 发货人区(填写发货地址代码时无需填写) | |
addressLine1 | 50 |
M | 发货人地址第一行(填写发货地址代码时无需填写) | |||
addressLine2 | 100 | O | 发货人地址第二行(填写发货地址代码时无需填写) | |
addressLine3 | 100 | O | 发货人地址第三行(填写发货地址代码时无需填写) | |
| 装箱信息 | ||||
|---|---|---|---|---|
boxNo | ||||
shipperBoxNo
20 | M | 客户箱号 |
boxQty | 10 | M | 箱数 | |
weightDeclared |
| (10,3) | M | 箱子申报重量 |
declaredWeightUnit | M |
申报重量单位
申报重量单位:目前只支持KG |
lengthDeclared |
(5,1) | M | 箱子申报长度 | ||
widthDeclared |
declareWidth
(5,1) | M | 箱子申报宽度 | |
heightDeclared |
declareHeight
(5,1) | M | 箱子申报高度 | |
| declareDimensionUnit |
| M |
箱子申报尺寸单位:目前只支持CM | ||||
SKU | 20 | M | SKU编码 | |
productQty | 10 | M |
(每箱)商品数量
Remark
商品数量(每箱) | ||||
remark | 200 | O | SKU备注 |
请求样例
| 代码块 |
|---|
[
{
"shipperAddress": {
"country": "CN",
"postCode": "200210",
"state": "上海市",
"city": "市辖区",
"district": "黄浦区",
"addressLine1": "大连路",
"addressLine2": "900号",
"addressLine3": "20楼"
},
"shipperContactName": "testzhang",
"shipperBizName": "testcompany",
"shipperPhone": "18856789348",
"shipperEmail": "testshipperemail@123.com",
"referenceNo": "test030747",
"warehouseCode": "Australian warehouse",
"shipperWarehouseCode": "",
"packingDetails": [
{
"boxNo": 1,
"lengthDeclared": 100.0,
"heightDeclared": 100.0,
"widthDeclared": 100.0,
"weightDeclared": 100.0,
"boxQty": 1,
"sku": "TESTcommodity",
"productQty": 20,
"remark": "",
"declaredWeightUnit": "KG",
"declareDimensionUnit": "CM"
},
{
"boxNo": 2,
"lengthDeclared": 100.0,
"heightDeclared": 100.0,
"widthDeclared": 100.0,
"weightDeclared": 100.0,
"boxQty": 1,
"sku": "SKG",
"productQty": 20,
"remark": "",
"declaredWeightUnit": "KG",
"declareDimensionUnit": "CM"
}
],
"remark": "备注",
"useShipperBoxNo": false,
"tallyRule": 1
},
{
"shipperAddress": {
"country": "CN",
"postCode": "200210",
"state": "上海市",
"city": "市辖区",
"district": "黄浦区",
"addressLine1": "大连路",
"addressLine2": "900号",
"addressLine3": "20楼"
},
"shipperContactName": "testzhang",
"shipperBizName": "testcompany",
"shipperPhone": "18856789348",
"shipperEmail": "testshipperemail@123.com",
"referenceNo": "test030748",
"warehouseCode": "Australian warehouse",
"shipperWarehouseCode": "",
"packingDetails": [
{
"boxNo": 1,
"lengthDeclared": 100.0,
"heightDeclared": 100.0,
"widthDeclared": 100.0,
"weightDeclared": 100.0,
"boxQty": 1,
"sku": "TESTcommodity",
"productQty": 20,
"remark": "",
"declaredWeightUnit": "KG",
"declareDimensionUnit": "CM"
},
{
"boxNo": 2,
"lengthDeclared": 100.0,
"heightDeclared": 100.0,
"widthDeclared": 100.0,
"weightDeclared": 100.0,
"boxQty": 1,
"sku": "SKG",
"productQty": 20,
"remark": "",
"declaredWeightUnit": "KG",
"declareDimensionUnit": "CM"
},
{
"boxNo": 2,
"lengthDeclared": 100.0,
"heightDeclared": 100.0,
"widthDeclared": 100.0,
"weightDeclared": 100.0,
"boxQty": 1,
"sku": "electric fan",
"productQty": 20,
"remark": "",
"declaredWeightUnit": "KG",
"declareDimensionUnit": "CM"
}
],
"remark": "备注",
"useShipperBoxNo": false,
"tallyRule": 1
}
] |
...