Skip to main content
All CollectionsManagement Console
[AirHost API] Overview of "Booking Engine (reservation site)" implementation
[AirHost API] Overview of "Booking Engine (reservation site)" implementation
J
Written by Joelly See Toh
Updated this week

[ overview ]

This article explains the implementation steps for developing your own booking engine (reservation site) by using AirHost API to obtain inventory and price information. 

[Details]

Implementation image

Please make sure to design your system so that a copy of the inventory and price data obtained from the AirHost API is stored in your in-house database. You cannot implement a system that retrieves real-time data via API each time.

Processing Steps

  1. Initial data acquisition

    1. Call GET /properties to get information for all properties and keep a copy in the local DB.

    2. Call GET /availabilities to get inventory and price information for each room type and rate plan, and store a copy in the local DB.

  2. Keeping data up to date

    1. In order to keep the facility and reservation information stored in the local DB up to date, a Push Webhook (POST /webhooks) call is received and the inventory and price updates of the availabilities.update Event are reflected in the local DB. A URL must be registered, so please let the AirHost development team know when you implement and test it.

  3. Full Scan

    1. You can ensure data consistency by retrieving the latest inventory and pricing information using GET /availabilities about once a day.

  4. Displaying information to booking engines

    1. Please use the data in the local DB to display facility information on your own reservation site and inventory and price information on the reservation calendar. If you design it to call the AirHost API every time, it will not work due to access restrictions.

  5. Creating reservation data

    1. By calling POST /stays, you can register the reservation confirmed on the booking site to AirHost via API.

    2. Reservations created via POST /stays can also be updated via PUT /room_reservations/{id}. *Other reservations, such as OTA reservations, cannot be updated.

API Documentation and Available Endpoints

*The only APIs available in the "Booking Engine API" package are listed below.

  • GET /properties

  • GET /availabilities

  • POST /webhooks (availabilities.update Event only)

  • POST /stays

  • PUT /room_reservations/{id} (only for reservations created with POST /stays)

  • GET /stays (only applies to reservations created with POST /stays)

Did this answer your question?