This document outlines the process to cancel a booking performed via CargoCONNECT API.

put/bookings/{flightUUID}

Request

  • Base URL
    https://api.cargoai.co/solutions
  • URL
    https://api.cargoai.co/solutions/bookings/{flightUUID}
  • Auth
    API key in header x-api-key

Path parameters

flightUUIDstring required

Flight UUID used for booking creation

Headers

x-api-keystring required

Request body

flightUUIDstring required

Flight UUID used for booking creation

actionstring required

Set to "CANCEL"

cancelledReasonsstring

Reasons for the cancellation to be forwarded to the airline

Response

200

OR
OR

Example response

{
  "status": "CANCELLED",
  "flightUUID": "test-59c7-11ec-9afe-5aa5c611cbcb"
}

Changes