OTA_HotelBookingRuleNotifRS
The OTA_HotelBookingRuleNotifRS is the response Agoda will return for every OTA_HotelBookingRuleNotifRQ. There are 2 types of response which are Success and Failure. The error codes and their descriptions are available in API Validation section.
Example of the message
Success Response
<OTA_HotelBookingRuleNotifRS 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_HotelBookingRuleNotifRS>
Failure Response (2013A)
<OTA_HotelBookingRuleNotifRS 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_HotelBookingRuleNotifRS>
Failure Response (2015B)
<OTA_HotelBookingRuleNotifRS 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_HotelBookingRuleNotifRS>
OTA_HotelBookingRuleNotifRS Specification
Element | Number | Type | Description |
|---|---|---|---|
OTA_HotelBookingRuleNotifRS | 1 | Root node | |
@EchoToken | 1 | String | Return the EchoToken from the request message. |
| @Version | 1 | Decimal | Current version is 1.0 |
| @TimeStamp | 1 | DateTime | Time of the transaction. |
| @Target | 1 | String | Target which can be either Production or Sandbox |
| OTA_HotelBookingRuleNotifRS / Success | 0..1 | Is only present if it was a successful response. The Errors node will not be present if the Success node is present. | |
| OTA_HotelBookingRuleNotifRS / Errors | 0..1 | Contains a list of errors in the event of a failed request | |
| Errors / Error | 1..n | Mandatory if Errors present | |
| @Type | 1 | String | Mandatory if Error present. Identifies the type of error |
| @Code | 0..1 | String | Mandatory if Error is present. Identifies the specific error in the given type |
| @RecordID | 1 | String | Reference record ID |
| @Status | 1 | String | Reference status |
| @ShortText | 1 | String | Short description of the error |
