...
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= |
Fields
Field | Data Type | Length | Mandatory | Description |
|---|---|---|---|---|
referenceNo | String | 50 | M | Unique identification of PO |
warehouseCode | String | 20 | M | Destination warehouse code |
shipperWarehouseCode | String | 100 | O/M | Shipper address code |
shipperContactName | String | 20 | M | Contact name(No need to insert when you send field ”shipperWarehouseCode“) |
addressLine1 | String | 50 | O/M | Shipper address Line1(No need to insert when you send field ”shipperWarehouseCode“) |
addressLine2 | String | 100 | O | Shipper address Line2(No need to insert when you send field ”shipperWarehouseCode“) |
addressLine3 | String | 100 | O | Shipper address Line3(No need to insert when you send field ”shipperWarehouseCode“) |
city | String | 20 | O | Shipper city(No need to insert when you send field ”shipperWarehouseCode“) |
state | String | 20 | O | Shipper state(No need to insert when you send field ”shipperWarehouseCode“) |
postCode | String | 20 | O | Shipper postcode(No need to insert when you send field ”shipperWarehouseCode“) |
district | String | 20 | O | Shipper district(No need to insert when you send field ”shipperWarehouseCode“) |
country | String | 2 | O | Shipper country(Two-character,No need to insert when you send field ”shipperWarehouseCode“) |
shipperPhone | String | 20 | O/M | Shipper phone(No need to insert when you send field ”shipperWarehouseCode“) |
shipperEmail | String | 50 | O | Shipper email(No need to insert when you send field ”shipperWarehouseCode“) |
shipperBizName | String | 50 | O | Shipper company name |
boxNo | String | 20 | M | Box No |
boxQty | Int | 5 | M | Box Qty |
lengthDeclared | BigDecimal | (8,1) | M | Declare length of box(CM) |
widthDeclared | BigDecimal | (8,1) | M | Declare width of box(CM) |
heightDeclared | BigDecimal | (8,1) | M | Declare height of box(CM) |
weightDeclared | BigDecimal | (8,3) | M | Declare weight of box(KG) |
sku | String | 20 | M | SKU code |
productQty | Int | 10 | M | Product qty in simple box |
Remark | String | 100 | O | Remark of box |
orderNo | String | - | Response | Order No |
code | String | - | - | Response code |
errors | Object[] | - | - | Response error |
message | String | - | - | Response message |
messageId | String | - | - | Response message ID |
success | Boolean | - | - | Success |
warnList | - | - | No use |
Request Sample
[ { "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": "" } ] } ] |
...