This document outlines the process for booking with CargoCONNECT API.

post/book

Request

  • Base URL
    https://api.cargoai.co/solutions
  • URL
    https://api.cargoai.co/solutions/book
  • Auth
    API key in header x-api-key

Headers

x-api-keystring required

Request body

flightUUIDstring

Flight UUID selected from search (required for Classic Booking)

rateIdstring

Rate ID selected from search (required for Classic Booking)

awbstring

Air waybill prefix and number (required if "awbOptional" of associated flight is false)

commentstring

Remark about your booking or additional details about handling

handlingCodesstring[]

List of special handling codes for your booking

idstring

Direct Booking Request Id to add to params before repeating request to get updated results

allotmentCodestring

Identifier of your allotment in the airline's system (can be used in Direct booking)

Example request

{
  "itinerary": {
    "flightNumbers": [
      "00379",
      "00737"
    ]
  }
}

Response

200

flightUUIDstring
bookingStatusstring
awbstring
handlingCodesstring[]

Example response

{
  "flightUUID": "cea884fc-a000-11ee-9471-a61fc42e35dd",
  "bookingStatus": "PENDING_DELIVERY",
  "awb": "000-00042652",
  "handlingCodes": [
    "GCR"
  ]
}

Changes