menu

GetHotelStaticData

  • Universal Hotel API provides method to download Hotel static data corresponding to City Id and or TBO Hotel Id. The hotel static dump can be downloaded at client end and used to show hotel information with search result. Hotel Static Data will be available only for properties that are mapped in TBO.
  • The purpose of providing static data is to serve your end customers more quickly by utilizing local data files on your own domain. However as the static data content is sourced from multiple aggregators and the process of populating the data in itself is a time taking exercise, the data may not be accurate and updated all the time.
  • It 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.

Service URL (REST) to be used:

http://api.tektravels.com/SharedServices/StaticData.svc/rest/GetHotelStaticData

GetHotelStaticDataRequest(City Wise)

Compressed Request

{
  "CityId": "130443",
  "ClientId": "ApiIntegrationNew",
  "EndUserIp": "49.206.33.42",
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649",
  "IsCompactData": "true"
}

Non Compressed Request

{
  "CityId": "130443",
  "ClientId": "ApiIntegrationNew",
  "EndUserIp": "49.206.33.42",
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}

GetHotelStaticDataResponse(City Wise)

{
  "Error": {
    "ErrorCode": 0,
    "ErrorMessage": ""
  },
  "HotelData": //XMLOFHOTELS,
  "Status": 1,
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}

GetHotelStaticDataRequest(Hotel Wise)

Compressed Request

{
  "CityId": "130443",
  "HotelId": "1011671",
  "ClientId": "ApiIntegrationNew",
  "EndUserIp": "49.206.33.42",
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649",
  "IsCompactData": "true"
}

Non Compressed Request

{
  "CityId": "130443",
  "HotelId": "1011671",
  "ClientId": "ApiIntegrationNew",
  "EndUserIp": "49.206.33.42",
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}

GetHotelStaticDataResponse(Hotel Wise)

{
  "Error": {
    "ErrorCode": 0,
    "ErrorMessage": ""
  },
  "HotelData": //XMLOFHOTELS,
  "Status": 1,
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}

GetTaggingStaticData

  • GetTaggingStaticData returns the TagIds and TagInfo of Nearby locations corresponding to the TBO mapped Hotels.

Service URL (REST) to be used:

http://api.tektravels.com/SharedServices/StaticData.svc/rest/GetTaggingStaticData

GetTaggingStaticDataRequest

{
  "ClientId": "ApiIntegrationNew",
  "EndUserIp": "49.206.33.42",
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}

GetTaggingStaticDataResponse

{
  "Error": {
    "ErrorCode": 0,
    "ErrorMessage": ""
  },
  "TaggingData": “”,
  //XMLOFTagswithIdsandInfoandNames,
  "Status": 1,
  "TokenId": "74be58fa-1feb-46d0-898b-2b56be187649"
}