Skip to content

OTA_GetHotelInfoRQ

The OTA_GetHotelInfoRQ method is not a valid OTA method and is only used to test the connection and to output and format error messages with error codes and error text.

Test of the sent answer / response

  • Standard error codes
  • Custom error codes

The method can be called only via REST API using GET.

Parameters used:

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

Example:

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

Notes: use your assigned IDs.

Example response (OTA_ErrorRS)

<?xml version="1.0" encoding="UTF-8"?>
<OTA_ErrorRS xmlns="http://www.opentravel.org/OTA/2003/05" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    EchoToken="c3fff85f8b0ffee203cd3666962056e9" 
    PrimaryLangID="de" 
    TimeStamp="2021-11-04T15:49:53+01:00" 
    Target="Production" 
    Version="1.000" 
    ErrorCode="110" 
    ErrorMessage="InternalError - Requested Message OTA_GetHotelInfo_RQ is not implemented yet"/>

Alternative message for @ErrorMessage

ErrorMessage="InternalError - Requested Message OTA_GetHotelInfoRQ is not supported by agent OTA-Tester (AgentDutyCode 1)"

Examples of error messages and formats

Example of a standard response - OTA_ErrorRS

Response is sent as <OTA_ErrorRS> with attributes

  • ErrorCode="210"
  • ErrorMessage="Our standard error message for this ErrorCode"
<?xml version="1.0" encoding="UTF-8"?>
<OTA_ErrorRS xmlns="http://www.opentravel.org/OTA/2003/05"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 EchoToken="c7169e3213eaaddd48bdd01649e438e3" 
 PrimaryLangID="de"
 TimeStamp="2022-01-26T10:31:42+01:00" 
 Target="Production" 
 Version="1.000"
 ErrorCode="210" 
 ErrorMessage="HotelNotLinked - Hotel (HotelCode 4) linked to another channel manager (your AgentDutyCode is 34)"/>

Example of a custom response - OTA_xyzRS

Response is sent based on the request with a separate <Error> tag, e.g. with attributes

  • Code="507"
  • Type="AuthenticationError"
  • ShortText="My custom error message for this custom code"
<?xml version="1.0" encoding="UTF-8"?>
<OTA_GetHotelInfoRS xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
EchoToken="4f6e05eb44600fb78dc44368a56f554b" 
PrimaryLangID="de" 
TimeStamp="2022-01-26T10:33:18+01:00" 
Target="Production" Version="2.0">
  <Errors>
    <Error 
        Code="507" 
        Type="Authentication error" 
        ShortText="Hotel (HotelCode 4) linked to another channel manager (your AgentDutyCode is 35)"/>
  </Errors>
</OTA_GetHotelInfoRS>