OTA_GetHotelInfoRQ
Die Methode OTA_GetHotelInfoRQ ist keine valide OTA Methode und dient nur dem Test der Verbindung und für die Ausgabe und Formatierung von Fehlermeldungen mit Fehlercodes und Fehlertext.
Test der gesendeten Antwort / Response
- Standard Fehlercodes
- Custom Fehlercodes
Die Methode kann nur per REST-API mittels GET aufgerufen werden.
Verwendete Parameter:
AgentDutyCode(optional, sofern IP WhiteList oder HTTP Basic Auth verwendet wird)HotelCode(mandatory)
Beispiel:
GET /ota/api/GetHotelInfo?AgentDutyCode=1&HotelCode=4
Hinweise: verwenden Sie ihre zugewiesenen IDs.
Beispiel Antwort / 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 Meldung für @ErrorMessage
ErrorMessage="InternalError - Requested Message OTA_GetHotelInfoRQ is not supported by agent OTA-Tester (AgentDutyCode 1)"
Beispiele für Fehlermeldungen und Formate
Beispiel einer Standard Response - OTA_ErrorRS
Antwort wird als <OTA_ErrorRS> gesendet mit Attributen
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)"/>
Beispiel einer Custom Response - OTA_xyzRS
Antwort wird baserend auf der Anfrage mit separatem <Error> Tag gesendet bspw.
mit Attributen
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>