# Hotel API Version: v2 ## Servers Sandbox URL ``` https://api-ext-sboxmeta.partners.spotnana.com ``` ## Security ### Bearer Type: http Scheme: bearer ## Download OpenAPI description [Hotel API](https://developer.spotnana.com/_bundle/openapi/HotelApi.yaml) ## Hotel These endpoints provide comprehensive functionality for managing hotel bookings. They enable users to search for hotels, check room rates and availability, create and modify bookings, and handle cancellations and rebooking. ### Get hotel search results - [POST /v2/hotel/search](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelsearch.md): Get all available hotels for the requested search parameters. ### Get hotel details - [POST /v2/hotel/details](https://developer.spotnana.com/openapi/hotelapi/hotel/hoteldetails.md): Get details for a specific hotel. ### Verify hotel price - [POST /v2/hotel/price-check](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelpricecheck.md): Checks if the previously selected hotel price has been modified. To indicate the change in hotel price, the priceChange field in the response will be set to true and the price object will contain the latest hotel price. If the price remains unchanged, the priceChange field will be set as false and the price object will contain the original price. ### Validate rebooking for price optimization - [POST /v2/hotel/validate-rebooking](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelvalidaterebooking.md): Validates if a hotel rebooking can be performed for price optimization purpose. The Source PNR ID provided in the request will be checked if it's eligible for rebooking. In the response, if isValid is true then users can proceed to checkout flow, which cancels the existing Source PNR and creates a new PNR to save booking cost. ### Create a new hotel booking - [POST /v2/hotel/create-pnr](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelcreatepnr.md): Creates a new hotel booking for the given request parameters. ### Cancel hotel pnr - [POST /v2/hotel/pnrs/{pnrId}/cancel-pnr](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelcancelpnr.md): This endpoint deletes a pnr by pnrID. ### Modify hotel details - [POST /v2/hotel/pnrs/{pnrId}/modify-details](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelmodifydetails.md): Modify the details of an existing hotel booking. This API displays the list of modifications available for the same hotel. Currently, the details such as occupancy date and room type can be modified. To confirm the selected changes, use the Modify hotel booking API. ### Modify hotel booking - [POST /v2/hotel/pnrs/{pnrId}/modify-book](https://developer.spotnana.com/openapi/hotelapi/hotel/hotelmodifybooking.md): Modify an existing hotel booking based on the request parameters. This API is used to confirm the requested changes for the booking. ## Autocomplete ### Hotel Supplier Autocomplete - [GET /v2/hotel-supplier-autocomplete](https://developer.spotnana.com/openapi/hotelapi/autocomplete/hotelsupplierautocomplete.md): This endpoint provides autocomplete suggestions for hotels based on the query provided.