Changes

Jump to navigation Jump to search

Connect Bookingengine with API

846 bytes added, 9 January
no edit summary
== Introduction ==
 
The Beds24 API is available at https://api.beds24.com
Connecting a booking engine to Beds24 requires two functions.
1a) Price and availability can be read in advance and stored or cached on your server, this has the advantage that your server can respond quickly with it's local copy of the data.
1b) Price and availability can be read on demand in real time, this has the advantage of accuracy but may slow down your page. This option is not suitable for multiple properties or situations where many API calls will be needed.
2) The ability to save the resulting booking into Beds24 to adjust availability at all other channels.
== Price and Availability for caching on your server ==
Availability is easy to read a year at a time with JSON getRoomDates, this can be stored and used to create availability calendars etc. on demand.
== 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 Availability for caching on your server ==occupancy are known.
Daily prices can be read with JSON getRoomDates and their setup with JSON getDailyPriceSetup
Availability is easy to Fixed Prices can be read a year at a time with JSON getRoomDates, this can be stored and used to create availability calendars etc. on demand.getRates
Price is more difficult, especially when prices change based These should be read approximately once per hour and stored on occupancy or length of stay, in this case the exact price your server. Your server can only be shown once use the stay dates and occupancy are knowndata to respond to searches quickly without requiring API calls.
If the property Only once a selection of room type, dates and occupancy has been made, make a simple pricing structure using daily prices, these can be read with live call to JSON getRoomDatesgetAvailabilities 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