Skip to content

Create Order(CN38)

Request Method

http
POST /api/order/create-order
FieldDescription
Content-Typeapplication/json
AuthorizationBearer <token>

Parameter

FieldMandatoryTypeDescriptionLength
ship_typeYNumericBag="1",
AKE="2",
Pallet="3"
=1 char
ship_routeYNumericDirect CN="1",
Master2CN="2",
Master2CN(T2T) ="3",
Master2CN(OA) ="4"
=1 char
is_ddpNStringDDP="Y",
DDU="N",
Default "N"
=1 char
departure_portYStringDeparture Port=3 char
destination_portYStringDestination Port=3 char
outbound_flight_noYStringFlight No.<=60 char
estimated_departure_datetimeYStringEstimated Local Date and Time of Departure at Origin
estimated_arrival_datetimeYStringEstimated Local Date and Time of Arrival at Destination
destinationYStringISO2 Character for Destination Country
Eg. SG for Singapore, TH for Thailand
=2 char
order_mawbOObjectMAWB details are required when "ship_route=2 or ship_route=3 or ship_route=4" is selected
ship_type_detailsYArrayParcels’ Tracking No. in each Bag/AKE/Pallet

order_mawb

FieldMandatoryTypeDescriptionLength
mawb_noYStringMAWB No.<=60 char
departure_airportYStringDeparture Airport=3 char
arrival_airportYStringArrival Airport=3 char
outbound_flight_noYStringFlight No.<=60 char
estimated_departure_datetimeYStringEstimated Local Date and Time of Departure at Origin
estimated_arrival_datetimeYStringEstimated 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": []
}