Cancel Booking

There are certain circumstances when passengers need to cancel the booking. This guide will help you understand the NDC API workflow for cancelling your booking. The following endpoint is used in the workflow:

  1. AirOrderCancel

Before you proceed with the cancellation, you need to know the booking process. To understand the process of booking, refer to:

What do you need to start?

To get started with cancellation, you’ll require various payload data to process other requests. For completing the workflow, we recommend that you collect relevant information from the responses.

Step 1. Air Order Cancel

You can use this endpoint to cancel the booking. The Order ID and GDS Booking Reference (where GDS stands for Global Distribution System) are all required to complete the process.

Core Query
curl --location --request POST 'http://newapi.tltid.com/AirOrderCancel' \
--header 'Content-Type: application/json' \
--header 'Authorization: <$auth_token>' \
--data-raw '{
    "OrderCancelRQ": {
        "Query": {
            "OrderID": "1OD2K1VS",
            "GdsBookingReference": "LWMGRE"
        }
    }
}'

As a result of this request, you will get the status of your order cancellation.

{
        "Response": [
            {
                "Status": "SUCCESS",
                "Msg": "",
                "BookingStatus": "CANCELED",
                "OrderID": "1OD2K1VS",
                "GdsBookingReference": "LWMGRE"
            }
        ]
}'        

To see all the parameters in this request and its response, refer to AirOrderCancel

Congratulations! You have successfully cancelled the booking.