Kindly note that the static data works on the below mentioned flow;
Country List > City List >TBO Hotel Code List / Hotel Code List> Hotel Details
You need to call country list using get method and in the response , you'll receive the list of countries along with their codes
In the city list, you'll then pass the desired country code and you'll receive the city name and code corresponding to that city.
You'll then call TBO Hotel code list with the city code for which you want to proceed and in the response you'll receive the hotel code, name with short description.
Finally when you have chosen a particular hotel for which you want to proceed for the booking you'll call hotel details by passing the hotel codes in the request, corresponding to which you'll receive all the possible details including images, latitude, longitude , star rating etc in the response.
Note- Hotel Code List is used to fetch all the hotels from the API whereas TBO Hotel Code List is used to fetch city wise hotel codes.
We would suggest you to kindly call the static data API's i.e. country list, city list, tho hotel code list and hotel details to be downloaded at your end and must be refreshed in every 15 days. On staging you can do the same for only two cities i.e. Delhi from domestic and Dubai from international for testing purpose instead of downloading the entire data. Once you're on production you can segregate the data as per your top destinations and then you can download the same accordingly from your end.
Request
| Level |
Parameter |
Type |
Description |
| 1 |
Hotel Code |
Integer |
Unique TBO Hotel code. |
| 2 |
Language |
String |
Code of preferred language to retrieve response. EN English |
1 |
IsRoomDetailRequired |
String |
If Room wise details are required |
Response
| Level |
Parameter |
Type |
Description |
| 1 | Status | Object | |
| 2 | Code | Integer | Internal code to denote response status |
| 3 | Description | String | Descriptive message. |
| 4 | HotelDetails | Object | |
| 5 | HotelCode | Integer | Unique TBOH hotel codes |
| 6 | HotelName | String | Hotel name against TBOH hotel code |
| 7 | Description | String | A short description about the requested hotel |
| 8 | HotelFacilities | String | Display all available hotel facilities |
| 9 | Attractions | String | It shows the nearby locations, and the attractions point |
| 10 | Images | String | All Hotel images link |
| 11 | Address | String | Address first line of the hotel booked |
| 12 | PinCode | Integer | Pin code of hotel city |
| 13 | CityId | Integer | Code of the city |
| 14 | CountryName | String | Name of the Country |
| 15 | PhoneNumber | String | Phone number of the Hotel booked |
| 16 | FaxNumber | Integer | Fax number of the hotel |
| 17 | HotelRating | Enumeration | Star Rating of the hotel booked |
| 18 | Map | String | Contains latitude, longitude information |
| 19 | CityName | String | Name of City |
| 20 | CountryCode | Integer | Code of the country |
| 21 | CheckInTime | String | Check-In time of the stay. |
| 22 | CheckOutTime | String | Check-Out time of the stay. |