{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Canceling an air booking","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"canceling-an-air-booking","__idx":0},"children":["Canceling an air booking"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Step"},"children":["Step"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Name"},"children":["Name"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Details"},"children":["Details"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/tripapi#operation/getCancellationDetails"},"children":["Get cancellation details"]}," (Trips API)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/trips/{tripId}/pnrs/{pnrId}/cancellation-details"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Before canceling a ticket, use this endpoint to retrieve the cancellation details of the relevant ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]},". ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]}," from ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/air_booking_workflow"},"children":["Making an Air Booking workflow"]},". ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["optionId"]},", traveler details, and cancellation details. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Other APIs will use:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["optionId"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["2."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/airapi#operation/airCancelPnr"},"children":["Cancel air pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/air/cancel-pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancel the selected air booking (if cancellation is allowed for the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]},"). ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," from Step 10 of ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/air_booking_workflow"},"children":["Making an Air Booking workflow"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["optionId"]}," from Step 1. ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sourcePnrId"]},", and cancelation state."]}]}]}]}]}]},"headings":[{"value":"Canceling an air booking","id":"canceling-an-air-booking","depth":1}],"frontmatter":{"seo":{"title":"Canceling an air booking"}},"lastModified":"2025-01-30T14:19:48.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/spotnana/air_cancellation_workflow","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}