{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Rebooking an existing hotel PNR for price optimization","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":"rebooking-an-existing-hotel-pnr-for-price-optimization","__idx":0},"children":["Rebooking an existing hotel PNR for price optimization"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Hotel prices tend to change often based on demand and various other factors such as competitor pricing,"," ","market conditions, festival/holiday seasons, and so on."," ","Some hotels provide the option to rebook their existing PNR if the original price of the hotel has changed."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For example, a traveler may consider rebooking an existing PNR after noticing a drop in price for the room they already booked."," ","Some hotels provide the option to rebook a PNR (so that travelers can get better prices for their stay)."]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note:"]}," The rebooking workflow will cancel the existing booking and create a new PNR with the same hotel preferences as the canceled one."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The steps below explain how to rebook an existing PNR for price optimization."]},{"$$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/hotelapi#operation/hotelValidateRebooking"},"children":["Validate rebooking for price optimization"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/hotel/validate-rebooking"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Validate a PNR to check if it's valid for rebooking.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," Traveler details, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tripId"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelSourcePnrId"]}," (also referred to as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["externalPnrId"]}," in step 4 of ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_booking_workflow"},"children":["creating a hotel booking"]}," workflow and step 3 of ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_modify_workflow"},"children":["modifying a hotel booking"]}," workflow)."]}]},{"$$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/hotelapi#operation/hotelPriceCheck"},"children":["Verify hotel price"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/hotel/price-check"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Verify the hotel room price.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["priceValidateKey"]}," from step 2 of ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_booking_workflow"},"children":["creating a hotel booking"]}," workflow. If the booking has been modified earlier, then use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["priceValidateKey"]}," from step 1 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":["Response will contain:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingKey"]},{"$$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":["bookingKey"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["3."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/openapi/hotelapi#operation/hotelCreatePnr"},"children":["Create a hotel booking"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/v2/hotel/create-pnr"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create a new PNR and cancel the existing one.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body requires:"]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bookingKey"]}," from step 2, and other parameters such as traveler details, occupancy information, payment information, and custom field questions. The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cancelSourcePnrId"]}," field should be populated with the value of the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["externalPnrId"]}," retrieved from step 4 of the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/hotel_booking_workflow"},"children":["create a hotel booking"]}," workflow.",{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"br","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response will contain:"]}," The new ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrId"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["pnrStatus"]},", and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["externalPnrId"]}," to hold the new ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/docs/spotnana/basic_trip_concepts#source-pnr"},"children":["source PNR ID"]},"."]}]}]}]}]}]},"headings":[{"value":"Rebooking an existing hotel PNR for price optimization","id":"rebooking-an-existing-hotel-pnr-for-price-optimization","depth":1}],"frontmatter":{"seo":{"title":"Rebooking an existing hotel PNR for price optimization"}},"lastModified":"2024-11-06T13:52:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/spotnana/hotel_rebooking_workflow","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}