Price Check
šø Price Check API
Hotel prices are dynamic and can change at any time. To prevent booking failures due to price fluctuations, it's essential to pass the correct price during the booking process.
The Price Check API verifies whether the price for a given recommendationId is still valid or has changed.
š Why Use This API?
- Ensures the price is up-to-date before booking
- Helps avoid failed bookings due to outdated pricing
- Promotes transparency with end-users by allowing confirmation on price change
Price Check: Response Keys
| Key | Description |
|---|---|
| priceChangeData | Details of any price change found when the rate was repriced. It tells you whether the price differs from the one shown in Rooms and Rates, and by how much. Show this to the customer before they continue with /book. |
| isPriceChanged | true if the repriced price differs from the price the customer selected, false if it is unchanged. |
| oldPrice | Price of the rate when it was returned in Rooms and Rates, in the response currency. |
| newPrice | Current price of the rate after reprice, in the response currency. |
If there's a price change, itās recommended to:
- Notify the user
- Proceed with booking only after obtaining their consent
Attempting to book with an outdated price will result in booking failure.
Usage:
If the price is unchanged, you can go ahead with /book.
If the price has changed, show the new price to the customer and get their approval first. Do not continue with the old price.
Use the new price and the latest cancellation policy from the Price Check response for the rest of the flow, not the values from Rooms and Rates.
š API Reference: Price Check API Documentation
Updated 21 days ago
