Last updated

Canceling an Air Booking

This section describes how to cancel an existing air booking for a traveler. The steps described in this section must be executed in the order specified.

StepNameEndpointDetails
1.Get cancellation details (Trips API)/v2/trips/{tripId}/pnrs/{pnrId}/cancellation-detailsBefore canceling a ticket, use this endpoint to retrieve the cancellation details of the relevant pnrId.

Request body requires:
pnrId and tripId from Making an Air Booking workflow.

Response will contain:
optionId, traveler details, and cancellation details.

Other APIs will use: optionId
2.Cancel air pnr/v2/air/cancel-pnrCancel the selected air booking (if cancellation is allowed for the pnrId).

Request body requires:
pnrId from Step 10 of Making an Air Booking workflow and optionId from Step 1.

Response will contain:
pnrId, sourcePnrId, and cancellation state.