Order Creat
Brief
Create tracking number by warehouse’s logistics account number;sku and stock are not necessary.
URL
/v1/order/createDirect
Method
post
Sample of Query
{
“orderNo”: “R0000012”,
“referenceNo”: “R0000012”,
“warehouseCode”: “WAREHOUSEUK”,
“logisticsServiceCode”: “BJS_GB_1”,
“saleChannelCode”: “amazon”,
“saleTime”: “2028-01-04”,
“isConfirm”: 1,
“details”: [
{
“sku”: “test_46a14550a963”,
“qty”: 2,
“length”: 65.61,
“width”: 86.68,
“height”: 85.38,
“weight”: 2000
}
],
“consignee”: {
“name”: “test_09f6ab16cd42”,
“countryCode”: “GB”,
“state”: “test_643eb2fb2dc1”,
“city”: “test_e9448fecfad8”,
“streetOne”: “test_38ca213f16a8”,
“streetTwo”: “”,
“postcode”: “A12 G1”,
“email”: “test_8d4301a56d67”,
“tel”: “95873897e617”,
“taxNo”: “”,
“companyName”: “”
},
“shipper”: {
“name”: “test1”,
“countryCode”: “GB”,
“state”: “”,
“city”: “landon”,
“streetOne”: “street1”,
“streetTwo”: “”,
“postcode”: “A12 G1”,
“email”: “e@e.com“,
“tel”: “”,
“timezone”: “1”
},
“parcelLength”: 64.1,
“parcelWidth”: 86.45,
“parcelHeight”: 38.82,
“parcelWeight”: 16.93,
“isRegistered”: 0,
“isInsured”: 0,
“insuranceAmount”: 32.21,
“itemId”: “”,
“transactionId”: “”,
“attachmentUrl”: “http://test_a302b27b7514.pdf",
“notes”: “test_5aa705faad18”
}
Request Parameter
| Parameter Name | Sample | Mandatory | Type | Instructions |
|---|---|---|---|---|
| orderNo | PO001 | YES | string | orderNo |
| referenceNo | TES001 | YES | string | referenceNo |
| warehouseCode | YES | string | warehouseCode | |
| logisticsServiceCode | YES | string | logistics Service Code | |
| saleChannelCode | AMAZON,OTHER | YES | string | saleChannelCode |
| saleTime | 2028-01-04 | YES | string | saleTime |
| isConfirm | 1 | YES | int | 1: order will be posted to WMS derectly |
| details | YES | array | details of SKU | |
| details.sku | YES | string | sku | |
| details.qty | YES | int | Qty of sku | |
| details.length | NO | number | length(Unit:cm) | |
| details.width | NO | number | width(Unit:cm) | |
| details.height | NO | number | height(Unit:cm) | |
| details.weight | NO | number | weight(Unit:g) | |
| consignee | YES | object | consignee | |
| consignee.name | YES | string | consignee name | |
| consignee.countryCode | gb,fr | YES | string | consignee countryCode:National two-character simplified code |
| consignee.state | YES | string | consignee state | |
| consignee.city | YES | string | consignee city | |
| consignee.streetOne | YES | string | consignee street One | |
| consignee.streetTwo | YES | string | consignee street Two | |
| consignee.postcode | YES | string | consignee postcode | |
| consignee.email | YES | string | consignee email | |
| consignee.tel | YES | string | consignee tel | |
| consignee.taxNo | NO | string | consignee taxNo | |
| consignee.companyName | NO | string | consignee company Name | |
| shipper | NO | string | warehouse’s address is default | |
| shipper.name | YES | string | shipper name | |
| shipper.countryCode | YES | string | shipper countryCode | |
| shipper.state | NO | string | shipper state | |
| shipper.city | YES | string | shipper city | |
| shipper.streetOne | YES | string | shipper street One | |
| shipper.streetTwo | NO | string | shipper street Two | |
| shipper.postcode | YES | string | shipper postcode | |
| shipper.email | NO | string | shipper email | |
| shipper.tel | NO | string | shipper tel | |
| shipper.timezone | NO | string | shipper timezone | |
| parcelLength | YES | number | parcel Length(Unit:cm) | |
| parcelWidth | YES | number | parcel Width(Unit:cm) | |
| parcelHeight | YES | number | parcel Height (Unit:cm) | |
| parcelWeight | YES | number | parcel Weight (Unit:g) | |
| isRegistered | YES | int | 0:NO,1:YES | |
| isInsured | YES | int | 0:NO,1:YES | |
| insuranceAmount | NO | number | It must be posted when insurance is needed | |
| itemId | NO | string | Item ID of sales channel | |
| transactionId | NO | string | transaction Id of sales channel | |
| attachmentUrl | NO | string | Attachment(Multiple need to be separated by English commas) | |
| notes | NO | string | notes |
Sample of sussess return
{
“msg”: “上传成功”,
“code”: 200,
“data”: {
“foNo”: “ZF2311160010-B9”,
“referenceNo”: “R0000002”
}
}
Instructions of sample of sussess return
| Parameter Name | Type | Instructions |
|---|---|---|
| msg | string | Message |
| code | number | success: 200; failure: other |
| data | object | no |
| foNo | string | foNo |
| referenceNo | string | referenceNo |
最后编辑:关冲 更新时间:2025-11-14 17:05