Changes

Jump to navigation Jump to search

Connect Bookingengine with API

692 bytes added, 9 January
no edit summary
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 Daily prices, these can be read with JSON getRoomDatesand their setup with JSON getDailyPriceSetup
Fixed Prices 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 ==
These functions are only suitable for looking up data for one particular booking condition in real time, they are not intended to read bulk data for caching.
Any strategy that requires more than a few API calls for a live request should use the caching strategy, otherwise you risk slow page times and possible failure due to API limiting.
== Bookings ==

Navigation menu