Description
Create ASN (batch inbound order) and send ASN to 3rd party warehouse.
Path
HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/b2b/asn |
Header Sample
POST /api/supplier-service/v1/b2b/asn 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 testLvs2jdug2qIoRsJyuxs:2THPh5_j4OTYUGdinstTC4nYqDE=
Fields
Field | Data Type | Length | Mandatory | Description |
|---|---|---|---|---|
shipMethod | Int | 10 | M | Ship method to warehouse(Fixed send “1”) |
warehouseCode | String | 50 | M | Destination warehouse code |
poNoList | String[] | 50 | M | PO |
eta | DateTime | 20 | M | ETA info |
remark | String | 100 | O | Remark of ASN |
lastMailType | Int | 10 | M | Last Mile type |
expressNo | String | 50 | O/M | express No(The field is required When field lastMailType send “1” ) |
truckType | Int | 10 | O/M | Truck type(The field is required When field lastMailType send “2”) |
containerType | Int | 10 | O/M | Container type(The field is required When field truckType send “1”) |
quantity | Int | 10 | O/M | Container qty(The field is required When field truckType send “1”) |
volume | BigDecimal | 10 | O/M | Total volume(The field is required When field truckType send “2”) |
weight | BigDecimal | 10 | O/M | Total weight(The field is required When field truckType send “2”) |
palletCount | Int | 10 | O/M | Total Pallet amout(The field is required When field truckType send “2”) |
shippingPlanNo | String | - | Response | ASN reference No |
code | String | - | - | Response code |
errors | Object[] | - | - | Response error |
message | String | - | - | Response message |
messageId | String | - | - | Response message ID |
success | Boolean | - | - | Success |
warnList | - | - | - | No use |
Remark
Remark: Field shipmethod fixed send "1" Field LastMileType option is"1"(express)、"2"(Truck) The field "expressNo" is required When field lastMailType send "1" The field "truckType" is required When field lastMailType send "2" Field truckType option is"1"(FCL)、"2"(LCL) The field "containerType" and "quantity" is required When field truckType send "1" The field "volume" and "weight" "palletCount" is required When field truckType send "2" Field containerType option is"1"(20GP)、"2"(40GP)、"3"(40HQ)、"4"(45HQ)
Request Sample
{
"shipMethod": 1,
"warehouseCode": "Australian Warehouse",
"eta": "2023-02-03 09:37:48",
"poNoList": [
"AUTEST000002"
],
"remark": "",
"lastMailType": "1",
"truckType": "",
"palletCount": 0,
"weight": 0.00,
"volume": 0.00,
"expressNoList": [
"1"
],
"containerInfoList": [
{
"containerType": 0,
"quantity": 0
}
]
}
Response
{
"code": "0",
"data": {
"error": "",
"shippingPlanNo": "A12283230203000002S"
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
{
"code": "0005",
"data": "",
"errors": [
{
"code": "800010",
"message": "Po AUTEST000002, status can not create ASN"
}
],
"message": "paramter error",
"messageId": "",
"success": false,
"warnList": ""
}