hotel-api-price-and-availability

Hotel API 1.7

Price and Availability

This method is used to check price and availability based on the requestToken returned from the previous GetHotelListByHotelIdsAPI response.

Important points:

  • sessionId is mandatory for this request.
  • The sessionId is returned only when a single hotelId is searched in the previous API call.
  • This API call is mandatory before proceeding with the booking.
  • Kindly use the returned price and cancellation policy for the booking.

Recommended flow:

  1. Call GetHotelListByHotelIdsAPI with a single hotelId.
  2. Extract the requestToken and sessionId from the response.
  3. Call the price and availability API using these values.
  4. If the price and availability are confirmed, proceed with the booking using BookHotelAPI

Path: /api/HotelApi/GetPriceAndAvailability

Method Type :Post

Request samples:

PropertyDescription
hotelIdThe unique identifier for the hotel. Example: 39688272 represents the hotel for which availability is being checked.
sessionIdA unique identifier used to track the request across API interactions. Example: “67a2081977622f333215162f”. If the original search request associated with this sessionId is not found
checkInDateThe date on which the guest intends to check into the hotel. Example: 2025-04-24.
checkOutDateThe date on which the guest intends to check out of the hotel. Example: 2025-04-26.
requestTokenA unique request token returned from the GetHotelListByHotelIdsAPI, required to fetch room price and availability.

Request 1:


{
  "hotelId": 869759,
  "sessionId": "679c9fa6356535aaf81dac97",
  "checkInDate": "2025-04-24",
  "checkOutDate": "2025-04-26",
  "requestToken": "sd44554545455555555"
}

Request 2:


{
  "hotelId": 869759,
  "sessionId": "67a2e0c677622f3332151630",
  "checkInDate": "2025-04-24",
  "checkOutDate": "2025-04-26",
  "requestToken": "sd44554545455555555"
}

Response:

Here’s the description of each field in the response:

  • isPriceChanged (boolean) – Indicates whether the price has changed since the last
    request.
    • false: The price remains the same.
    • true: The price has changed, and the updated price should be considered.
  • totalPrice (decimal) – The total price for the selected room(s) in the specified currency, including applicable taxes and fees
  • roomCombinations(array) – Contains the available room combinations, including room details, cancellation policies, pricing, and meal plans. Kindly use the returned price and cancellation policy for the booking.
  • error (string or null) – Contains error details if any issue occurs during the request.
    • null: No error encountered.
    • If populated, it provides a description of the error encountered.