Create a draft purchase order (inbound order) in eTowerOne.
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2b/po |
POST /api/supplier-service/v1/b2b/po HTTP/1.1 Host: cfs-qa.etowertech.com Content-Type: application/json Accept: application/json X-WallTech-Date: Thu, 06 Aug 2020 06:01:26 GMT Authorization: WallTech testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE= |
Field | Data Type | Length | Mandatory | Description |
|---|---|---|---|---|
referenceNo | String | 50 | M | 订单唯一标识 |
warehouseCode | String | 20 | M | 目的仓代码 |
shipperWarehouseCode | String | 100 | O/M | 发货地址代码 |
shipperContactName | String | 20 | M | 发货人名称(填写发货地址代码时无需填写) |
addressLine1 | String | 50 | O/M | 发货人地址第一行(填写发货地址代码时无需填写) |
addressLine2 | String | 100 | O | 发货人地址第二行(填写发货地址代码时无需填写) |
addressLine3 | String | 100 | O | 发货人地址第三行(填写发货地址代码时无需填写) |
city | String | 20 | O | 发货人城市(填写发货地址代码时无需填写) |
state | String | 20 | O | 发货人州(填写发货地址代码时无需填写) |
postCode | String | 20 | O | 发货人邮编(填写发货地址代码时无需填写) |
district | String | 20 | O | 发货人区(填写发货地址代码时无需填写) |
country | String | 2 | O | 发货人国家(二字码,填写发货地址代码时无需填写) |
shipperPhone | String | 20 | O/M | 发货人电话(填写发货地址代码时无需填写) |
shipperEmail | String | 50 | O | 发货人邮箱(填写发货地址代码时无需填写) |
shipperBizName | String | 50 | O | 发货人公司名称 |
boxNo | String | 20 | M | 箱号 |
boxQty | Int | 5 | M | 箱数 |
lengthDeclared | BigDecimal | (8,1) | M | 箱子申报长度(CM) |
widthDeclared | BigDecimal | (8,1) | M | 箱子申报宽度(CM) |
heightDeclared | BigDecimal | (8,1) | M | 箱子申报高度(CM) |
weightDeclared | BigDecimal | (8,3) | M | 箱子申报重量(KG) |
sku | String | 20 | M | 商品编码 |
productQty | Int | 10 | M | 单箱商品数 |
Remark | String | 100 | O | 箱信息备注 |
orderNo | String | - | 返回值 | 系统订单号 |
code | String | - | - | 返回编码 |
errors | Object[] | - | - | 报错 |
message | String | - | - | 返回信息 |
messageId | String | - | - | 返回信息编码 |
success | Boolean | - | - | 成功响应 |
warnList | - | - | 废弃字段 |
[ { "shipperAddress": { "country": "CN", "postCode": "", "state": "上海市", "city": "市辖区", "district": "黄浦区", "addressLine1": "中国", "addressLine2": "上海市", "addressLine3": "黄浦区" }, "shipperContactName": "testzhang", "shipperBizName": "", "shipperPhone": "18856789348", "shipperEmail": "", "referenceNo": "CA-0001", "warehouseCode": "Canada Warehouse", "shipperWarehouseCode": "cnzhang", "packingDetails": [ { "boxNo": "1", "lengthDeclared": 20.00, "heightDeclared": 20.00, "widthDeclared": 20.00, "weightDeclared": 20.00, "boxQty": 1, "sku": "deli1498603", "productQty": 20, "remark": "" } ] } ] |
[ { "code": "0", "data": { "orderNo": "E12283221114000007O", "referenceNo": "CA-0008" }, "errors": "", "message": "", "messageId": "", "success": true, "warnList": "" } ] |
[ { "code": "0005", "data": "", "errors": [ { "code": "600904", "message": "referenceNo:CA-0001,Already exists in the system" } ], "message": "paramter error", "messageId": "", "success": false, "warnList": "" } ] |