Integration guide
Integration guide
To integrate the ETG API, use the suggested workflow:
- Download the hotels’ static data.
- Search a hotel.
- Make a booking.
- Make the post-booking routine.
- Proceed with the certification and provide access to your test and production website where the ETG API is implemented.
Download hotels’ static data
- Required. Get a dump (B2B, Affiliate).
- Optional. Search for static hotel data (B2B, Affiliate). Is used only in case when an available hotel isn’t included in the downloaded hotel data dump. It can happen to new hotels in the ETG inventory.
Search hotel
-
Required. Search for an available hotel with geo, regions, or hotels. Is used for the initial dynamic search of hotels with available accommodations that match the given search.
-
Required. Make a pre-booking by one of the ways:
General pre-booking
ℹ️
Is required if you intend to use the Hotelpage call as a part of your flow.
-
Required. Get the hotel rates list (B2B, Affiliate). Use it only for the hotel the end-user wants to know about.
ℹ️The recommendations:
- Don’t use the call for every hotel found via the
region_id
field or its IDs. - Use the call only when the user selects it.
- During the call, display all rates for a specific hotel.
- The storage time for retrieved rates is 1 hour.
⚠️Don’t use this call to initiate the search automatically for all hotels returned by a region search. - Don’t use the call for every hotel found via the
-
Required. Make a pre-booking (B2B, Affiliate). Is used to getting the availability of the requested rate.
ℹ️The recommendations:
- If the original rate isn’t available, the call will try to find the same or similar rate.
- The
price_increase_percent
feature:- Provides the possibility to find the best alternative for the chosen rate within the selected price increase range.
- When implemented, the user should be notified about the price change before the booking step. Otherwise, it isn’t suggested to implement.
Simplified pre-booking
ℹ️
Is required if you don’t intend to use the Hotelpage call as a part of your flow.
- Required. Make a pre-booking (B2B, Affiliate). Is used to getting the availability of the requested rate.
Make booking
- Required. Start creating a booking (B2B, Affiliate).
- Required. Complete the booking creation (B2B, Affiliate).
- One of them is required. To get the booking status, use one of the calls: