OTA_HotelRateAmountNotifRS

OTA_HotelRateAmountNotifRS

The OTA_HotelRateAmountNotifRS is the response Agoda will return for every OTA_HotelRateAmountNotifRQ . There are 2 types of response which are Success and Failure. The error codes and their descriptions are available in API Validation section.

Example Responses

Success Reponse

<OTA_HotelRateAmountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Target="Production" Version="1.0" TimeStamp="2005-08-01T09:30:47+08:00" EchoToken="abc123">
<Success/>
</OTA_HotelRateAmountNotifRS>

Failure Response (2013A)

<OTA_HotelRateAmountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Target="Production" Version="1.0" TimeStamp="2005-08-01T09:30:47+08:00" EchoToken="abc123">
<Errors>
<Error Type="3" Code="9004">StartDate is greater than EndDate</Error>
</Errors>
</OTA_HotelRateAmountNotifRS>

Failure Response (2015B)

<OTA_HotelRateAmountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Target="Production" Version="1.0" TimeStamp="2005-08-01T09:30:47+08:00" EchoToken="abc123">
<Errors>
<Error Type="3" Code="9004" RecordID="" Status="" ShortText="StartDate is greater than EndDate"/>
</Errors>
</OTA_HotelRateAmountNotifRS>

Elements and Attributes

Element
Number
Type
Description
OTA_HotelRateAmountNotifRS1
Root element

@EchoToken

1StringReturn the EchoToken from the request message.
@Version1DecimalCurrent version is 1.0
@TimeStamp1DateTime

Time of the transaction.

@Target1StringTarget which can be either production or sandbox
OTA_HotelRateAmountNotifRS / Success0..1
Should only be present if the request processed successfully. The Errors node should not be present if the Success node is present
OTA_HotelRateAmountNotifRS / Errors0..1
Contains a list of errors if the request failed to process.
Errors / Error1..n
Should be at least one node if there is an Errors Node.
@Type1String

Mandatory if Error present. Identifies the type of error

@Code0..1String

Mandatory if Error is present. Identifies the specific error in the given type

@RecordID1StringReference record ID
@Status1StringReference status
@ShortText1StringShort description of the error