Skip to content

OTA_GetHotelRQ

This is not an official OTA message!

The method can only be called via REST-API using GET and is only enabled for individual OTA partners.

Attributes used:

  • @AgentDutyCode (optional if IP WhiteList or HTTP Basic Auth is used)
  • @HotelCode (mandatory)

Example:

GET /ota/api/GetHotel?AgentDutyCode=1&HotelCode=4

No OTA standard attributes are used in the response.

Example GetHotel (Response)

<?xml version="1.0" encoding="UTF-8"?>
<message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
EchoToken="a2fedc369574cb135ea911be213b264d" 
PrimaryLangID="de" TimeStamp="2021-11-04T16:06:37+01:00" 
Target="Production" Version="1.000">
  <rooms hotelId="7730" hotelName="Testhotel availpro Channelmangager" priceModel="PerPerson">
    <room code="32108" name="Einzelzimmer (16m², ID:32108, 1E/0K)" minOccupancy="1" maxOccupancy="1">
      <rate code="358651" name="Testangebot  3 Nächte availpro OTA - bitte nicht buchen!" regime="n/a"/>
    </room>
    <room code="32109" name="Doppelzimmer (20m², ID:32109, 2E/2K)" minOccupancy="1" maxOccupancy="2">
      <rate code="358651" name="Testangebot  3 Nächte availpro OTA - bitte nicht buchen!" regime="n/a"/>
    </room>
  </rooms>
</message>