OTA_HotelAvailNotifRS

OTA_HotelAvailNotifRS

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

OTA_HotelAvailNotifRS Specification

Element

Number

Type

Description

OTA_HotelAvailNotifRS

1


Root node

@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_HotelAvailNotifRS / Success0..1
only present if it was a successful response. The Errors node will not be present if the Success node is present.
OTA_HotelAvailNotifRS / Errors0..1
Contains a list of errors in the event of a failed request.
Errors / Error1..n
Mandatory if Errors present.
@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

Example responses

Success Response

\<OTA_HotelAvailNotifRS xmlns="<http://www.opentravel.org/OTA/2003/05"> TimeStamp="2017-05-31T11:45:47+07:00" Target="Production" Version="1.000" EchoToken="abc123">
\</OTA_HotelAvailNotifRS>

Failure Response (2013A)

\<OTA_HotelAvailNotifRS xmlns="<http://www.opentravel.org/OTA/2003/05"> TimeStamp="2017-05-31T12:37:04+07:00" Target="Production" Version="1.0" EchoToken="abc123">  
  <Errors>  
    <Error Type="3" Code="9006">EndDate can't be in past</Error>  
  </Errors>  
\</OTA_HotelAvailNotifRS>

Failure Response (2015B)

\<OTA_HotelAvailNotifRS 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="9006" RecordID="123" Status="" ShortText="EndDate can't be in past"/>  
  </Errors>  
\</OTA_HotelAvailNotifRS>