Connect Bookingengine with API: Difference between revisions

Jump to navigation Jump to search
Line 28: Line 28:
Price is more difficult, especially when prices change based on occupancy or length of stay, in this case the exact price can only be shown once the stay dates and occupancy are known.
Price is more difficult, especially when prices change based on occupancy or length of stay, in this case the exact price can only be shown once the stay dates and occupancy are known.


If the property has a simple pricing structure using daily prices, these can be read with JSON getRoomDates
Daily prices can be read with JSON getRoomDates and their setup with JSON getDailyPriceSetup


Rates can be read with JSON getRates
These should be read approximately once per hour and stored on your server. Your server can use the data to respond to searches quickly without requiring API calls.
Only once a selection of room type, dates and occupancy has been made, make a live call to JSON getAvailabilities to check the data is still current.
In the unlikely event that it has changed or the room has been sold, you can display a "Sorry this selection has just been booked" message and offer another search


== Price and Availability on demand ==
== Price and Availability on demand ==