menu

GetHotelInfo

  • This method is used to request for hotel descriptive content information based on TraceId, ResultIndex and HotelCode. HotelDetailsResponse consist of the Hotel images, facilities, attractions, amenities and other basic details of the hotel.
  • Hence, the user is strongly advised to call GetHotelInfo method on either passenger detail page or review page to get the exact hotel detail information related to room being booked and not rely solely on the static data content.
  • User should send the CategoryId of the De-dupe result in GetHotelInfo request to receive Information and details of the concerned suppliers property. The GetHotelInfo response will not contain HotelCode in case of de-dupe results.

Service URL (REST) to be used:

http://api.tektravels.com/BookingEngineService_Hotel/hotelservice.svc/rest/GetHotelInfo

GetHotelInfo Request
Level Element Format Comments Mandatory/ Optional
1 EndUserIp String IP Address of the end user Mandatory
2 TokenId String Token ID Mandatory (Token Id to be echoed back from Authenticate response)
3 TraceId String Trace Id Mandatory (Trace Id to be echoed back from search response. This can be used to trace particular search/ book at TBO’s end)
4 ResultIndex Integer ResultIndex Mandatory Index of the hotel for which details are to be fetched
5 HotelCode String Unique hotel code Mandatory Hotel Code for which details are to be fetched
6 CategoryId String Unique Supplier RatePlan Mandatory
GetHotelInfo Response
Level Element Format Comments Mandatory/ Optional
1 HotelInfoResult Mandatory
1.1 HotelDetails Mandatory
1.1.1 HotelCode String Unique hotel code Mandatory
1.1.2 HotelName String Unique hotel name Mandatory
1.1.3 StarRating Enumeration Star Rating of the hotel Mandatory - StarRating All = 0, OneStar = 1, TwoStar = 2, ThreeStar = 3, FourStar = 4, FiveStar = 5
1.1.4 HotelURL String Website url of the hotel Optional
1.1.5 Description String Description of the hotel Mandatory
1.1.6 Attractions StringArray Array of the attractions associated with the hotel Optional
1.1.7 HotelFacilities StringList List of hotel facilities Optional
1.1.8 HotelPolicy String Hotel policy details Optional
1.1.9 SpecialInstructions String Special Instructions Optional
1.1.10 HotelPicture String Url of hotel image Optional
1.1.11 Images StringList Url of images of the hotel Mandatory
1.1.12 Address String Address of the hotel Optional
1.1.13 CountryName String Destination country name Optional
1.1.14 PinCode String Pin code of the hotel Optional
1.1.15 HotelContactNo String Contact Number of the hotel Optional
1.1.16 FaxNumber String Fax Number of the hotel Optional
1.1.17 Email String Email address of the hotel Optional
1.1.18 Latitude String Latitude information of the hotel Optional
1.1.19 Longitude String Longitude information of the hotel Optional
1.1.20 RoomData String Room Data Optional
1.1.21 RoomFacilities StringList List of hotel facilities Optional
1.1.22 Services String Services of the hotel Optional
1.2 ResponseStatus Enumeration Response status Mandatory NotSet = 0, Successfull = 1, Failed = 2, InValidRequest = 3, InValidSession = 4, InValidCredentials = 5
1.3 Error Mandatory
1.3.1 ErrorCode Integer Code corresponding to the Error Mandatory
1.3.2 ErrorMessage String Contains error message Mandatory (Will contain error description corresponding to ErrorCode. Error Message would be blank in case ErrorCode=0)