Appearance
Create Order(CN38)
Request Method
http
POST /api/order/create-order
Header
Field | Description |
---|---|
Content-Type | application/json |
Authorization | Bearer <token> |
Parameter
Field | Mandatory | Type | Description | Length |
---|---|---|---|---|
ship_type | Y | Numeric | Bag="1", AKE="2", Pallet="3" | =1 char |
ship_route | Y | Numeric | Direct CN="1", Master2CN="2", Master2CN(T2T) ="3", Master2CN(OA) ="4" | =1 char |
is_ddp | N | String | DDP="Y", DDU="N", Default "N" | =1 char |
departure_port | Y | String | Departure Port | =3 char |
destination_port | Y | String | Destination Port | =3 char |
outbound_flight_no | Y | String | Flight No. | <=60 char |
estimated_departure_datetime | Y | String | Estimated Local Date and Time of Departure at Origin | |
estimated_arrival_datetime | Y | String | Estimated Local Date and Time of Arrival at Destination | |
destination | Y | String | ISO2 Character for Destination Country Eg. SG for Singapore, TH for Thailand | =2 char |
order_mawb | O | Object | MAWB details are required when "ship_route=2 or ship_route=3 or ship_route=4" is selected | |
ship_type_details | Y | Array | Parcels’ Tracking No. in each Bag/AKE/Pallet |
order_mawb
Field | Mandatory | Type | Description | Length |
---|---|---|---|---|
mawb_no | Y | String | MAWB No. | <=60 char |
departure_airport | Y | String | Departure Airport | =3 char |
arrival_airport | Y | String | Arrival Airport | =3 char |
outbound_flight_no | Y | String | Flight No. | <=60 char |
estimated_departure_datetime | Y | String | Estimated Local Date and Time of Departure at Origin | |
estimated_arrival_datetime | Y | String | Estimated Local Date and Time of Arrival at Destination |
Request
json
{
"ship_type": 3,
"ship_route": 1,
"is_ddp": "Y",
"departure_port": "SIA",
"destination_port": "TPE",
"outbound_flight_no": "TQIK",
"estimated_departure_datetime": "1739944211",
"estimated_arrival_datetime": "1739944241",
"destination": "TH",
"order_mawb": {
"mawb_no": "12123224",
"departure_airport": "UJK",
"arrival_airport": "AHE",
"outbound_flight_no": "GTQ",
"estimated_departure_datetime": "1739944211",
"estimated_arrival_datetime": "1739944291"
},
"ship_type_details": [
[
"BX000000014CG",
"BX000000028CG"
],
[
"BX000000031CG"
]
]
}
Response(Success)
json
{
"Code": 0,
"Message": "Success",
"Data": {
"JobNo": "TXX1011.001" // CN38 No.
}
}
Response(Fail)
json
{
"Code": 1,
"Message": "WMG Tracking Num(A300000068SGA) not exists!",
"Data": []
}