{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Canceling a hotel 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-a-hotel-booking","__idx":0},"children":["Canceling a hotel booking"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The steps below explain how to cancel a hotel booking."]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note:"]}," Be sure to check the hotel's cancellation policy before canceling a booking (i.e., step 1 of the workflow explained below)."," ","Also, visit the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/basic_hotel_concepts#hotel-cancellation"},"children":["hotel cancellation concepts and scenarios"]}," for more information."]}]},{"$$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":[{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/tripapi#operation/getPnrV3"},"children":["Get PNR"]}," (optional)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v3/trips/{tripId}/pnrs/{pnrId}"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Retrieve the hotel booking details (e.g., the cancellation policy) using its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]},"."," ","In the response, navigate to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["hotelPnr"]}," > ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["room"]}," > ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancellationPolicy"]}," field to view the cancellation policy of the booking."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL path requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," from step 4 of the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_booking_workflow"},"children":["creating a hotel booking"]}," workflow. If the original booking has been modified, then use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," from step 3 of the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_modify_workflow"},"children":["modifying a hotel booking"]}," workflow."," ",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note:"]}," Alternatively, you can also view the hotel booking details using the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/tripapi#operation/getTripDetailsV3"},"children":["Get trip details"]}," endpoint."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"ol","attributes":{"start":2},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/hotelapi#operation/hotelCancelPnr"},"children":["Cancel a hotel booking"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/hotel/pnrs/{pnrId}/cancel-pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Cancel a hotel booking.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["URL path requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," from step 4 of the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_booking_workflow"},"children":["creating a hotel booking"]}," workflow. If the original booking has been modified, then use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]}," from step 3 of the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_modify_workflow"},"children":["modifying a hotel booking"]}," workflow."]}]}]}]}]}]},"headings":[{"value":"Canceling a hotel booking","id":"canceling-a-hotel-booking","depth":1}],"frontmatter":{"seo":{"title":"Canceling a hotel booking"}},"lastModified":"2025-02-14T09:16:44.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/spotnana/hotel_cancel_workflow","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}