OTA_HotelResRS

Example Success Response

<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelResRS TimeStamp="2013-08-28T13:40:00+01:00" Version="0.0" xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <POS>
        <Source>
            <RequestorID ID="13244" ID_Context="IATA" Type="18" URL="ChannelManager.com"/>
        </Source>
    </POS>
    <Success /> <!-- Appear when it successful -->
    <HotelReservations>
        <HotelReservation CreateDateTime="2013-08-28T13:40:00">
            <ResGlobalInfo>
                <!-- Booking ID from Destination Side -->
                <HotelReservationIDs>
                    <HotelReservationID ResID_Value="1234" ResID_Type="5" ResID_Source="ChannelManager"/>
                </HotelReservationIDs>
            </ResGlobalInfo>
            <TPA_Extensions></TPA_Extensions>
        </HotelReservation>
    </HotelReservations>
</OTA_HotelResRS>

Example Fail response

<OTA_HotelResRS xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2018-02-07T02:04:17+00:00" Version="0.2">
    <POS>
        <Source>
            <RequestorID ID="96637800" ID_Context="IATA" Type="18" URL="DerbySoft.com"/>
        </Source>
    </POS>
    <HotelReservations>
        <HotelReservation CreateDateTime="2018-02-06T17:00:00+00:00">
            <TPA_Extensions>
                <Error Code="1006" Description="Inconsistent rate of [LONLI] [D1|OGLWP1] at [2018-02-17|2018-02-19] for 2A, expect GBP [167.38] but actual GBP [141.43]"/>
            </TPA_Extensions>
        </HotelReservation>
    </HotelReservations>
</OTA_HotelResRS>

Elements and Attributes

OTA_HotelResRS
Element or @AttributeData TypeNo. of occurMandatoryExampleDescription
OTA_HotelResRSdatetime1Y2016-09-01T13 :25 :42+07:00Indicates the creation date and time of the message using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ss(+/-)hh:mm with time values using the 24 hour clock (e.g. 20 November 2016, 1:59:38 pm BKK becomes 2016-11-20T13:59:38+07:00).
@Timestamp
@ Versiondecimal, n.n1Y0.1For all OTA versioned messages, the version of the message is indicated by a decimal value.
@ xmlnsstring1Yhttp://www.opentravel.org/OTA/2003/05Namespace for the OTA payload message.
@ xmlns :xsistring1Yhttp://www.w3.org/2001/XMLSchema-instanceNamespace for XML schema-instance.
POSnumeric length 81Y123456Unique identifier of Supplier.
Source
RequestorID
@ ID
@ ID_Contextalpha length 41YIATAUsed to identify the source of the identifier
@ TypeOTA_CodeType1Y18Reference to the type of requestor. 18 = Other
@ URLString length 1 to 501YChannelManager.comUsed to identify the source url
Success[0..1]NSuccess element will appear in the response when the reservation confirmed and does not appear if the reservation fail.
HotelReservationsdatetime1Y2016-09-01T13 :25 :42+07:00Indicates the booking date and time using the following format specified by ISO 8601; YYYY-MM-DDThh:mm:ss(+/-)hh:mm with time values using the 24 hour clock (e.g. 20 November 2016, 1:59:38 pm BKK becomes 2016-11-20T13:59:38+07:00).
HotelReservation
@CreateDateTime
ResGlobalInfo[0..1]NResGlobalInfo is a container for various information that affects the Reservation as a whole. These include global comments, counts, reservation IDs, loyalty programs, and payment methods
HotelReservationIDs1YDetail of hotel reservation contains various unique (ReservationID) and non- unique (ConfirmationID, CancellationID) identifiers that the trading partners associate with a given reservation
HotelReservationID
@ResID_Valuestring1Y76104819Supplier’s booking ID
length
1 to 20
@ResID_TypeNumeric1Y5Reference to the type of requestor. 5 = Supplier booking ID
@ResID_Sourcestring1Y<supplier name>Source of booking, it is supplier name.
length
1 to 20
TPA_Extensions[0..1]NError element is an element for any fault occur and will be appear when reservation fail.
Error
@ Codestring1Y1001Generic Agoda Error Code.
lengthRefer to Appendix D
1 to 50
@ Descriptionstring1YRoom Type “1234” Not FoundGeneric Agoda Error Message.
lengthRefer to Appendix D
1 to 250