# 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. | Step | Name | Endpoint | Details | | --- | --- | --- | --- | | 1. | [Get cancellation details](/openapi/tripapi#operation/getCancellationDetails) (Trips API) | `/v2/trips/{tripId}/pnrs/{pnrId}/cancellation-details` | Before 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](/spotnana/air_booking_workflow). **Response will contain:** `optionId`, traveler details, and cancellation details. **Other APIs will use:** `optionId` | | 2. | [Cancel air pnr](/openapi/airapi#operation/airCancelPnr) | `/v2/air/cancel-pnr` | Cancel the selected air booking (if cancellation is allowed for the `pnrId`). **Request body requires:** `pnrId` from Step 10 of [Making an Air Booking workflow](/spotnana/air_booking_workflow) and `optionId` from Step 1. **Response will contain:** `pnrId`, `sourcePnrId`, and cancelation state. |