Integration guide
To integrate the ETG API, use the suggested workflow:
-
Download the hotels’ static data:
-
Search a hotel with three steps:
-
Required. Search for an available hotel with geo, regions, or hotels. Is used for the initial search of hotels with available accommodations that match the given search.
-
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 prebook (B2B, Affiliate). Is used for 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 client should be notified about the price change before the booking step. Otherwise, it isn’t suggested to implement.
-
-
-
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.