Skip to content

OTA_TestRQ

This is not an official OTA message!

This method can be called for testing purposes via REST-API using GET or via POST.

OTA_TestRQ - Request per GET - REST-API

Parameters used:

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

Example:

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

OTA_TestRQ - Request per POST

Attributes used:

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

Example OTA_TestRQ (Request)

<?xml version="1.0" encoding="UTF-8"?>
<OTA_TestRQ EchoToken="1" PrimaryLangID="de" Target="Production" TimeStamp="" Version="1.0">
    <POS>
        <Source AgentDutyCode="1">
            <RequestorID ID="4" Type="4"/>
        </Source>
    </POS>
    <EchoData>Are you there and receiving this?</EchoData>
</OTA_TestRQ>

OTA_TestRS - Response

No OTA standard attributes are used in the response.

There should always be a <Success/> in the response.

Example OTA_TestRS (Response)

<?xml version="1.0" encoding="UTF-8"?>
<OTA_TestRS xmlns="http://www.opentravel.org/OTA/2003/05" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    EchoToken="7736596b32724c96482ab6958f7e7986" 
    PrimaryLangID="de" 
    TimeStamp="2022-01-26T11:34:41+01:00" 
    Target="Production" 
    Version="1.000">
  <Success/>
  <EchoData>test message</EchoData>
  <TestDateRange dateFrom="2022-01-26" dateTo="2022-01-27">
    <text>OTA test response - using date range (dateFrom - dateTo) from config params</text>
  </TestDateRange>
</OTA_TestRS>

OTA_TestRS - Error Response

Any problems are displayed in the response in the ErrorCode and ErrorMessage.

This can also be used to test the correct AgentDutyCode and HotelCode settings.

Example:

GET /ota/api/Test?AgentDutyCode=1&HotelCode=12345

Produces the error:

HotelNotLinked - Hotel (HotelCode 12345) linked to another channel manager (your AgentDutyCode is 1)

Example OTA_TestRS (Error Response)

<?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="9ead72018c5f2f2cb5de7a5c9d77b2d2" 
             PrimaryLangID="de" 
             TimeStamp="2025-01-16T12:54:43+01:00" 
             Target="Production" 
             Version="2.000" 
             ErrorCode="375" 
             ErrorMessage="HotelNotLinked - Hotel (HotelCode 12345) linked to another channel manager (your AgentDutyCode is 1)"/>