...
Element | Number | Description |
---|---|---|
OTA_HotelAvailNotifRQ | 1 | Root node |
@EchoToken | 1 | Globally unique identifier for the request, the value will be returned in the response EchoToken. |
@TimeStamp | 1 | Time of the transaction in xml schema dateTime format. Format like yyyy-MM-dd'T'HH:mm:ssZZ, (i.e '2021-03-09T20:05:52+08:00') |
@Version | 1 | Always 1 |
OTA_HotelAvailNotifRQ / POS / Source / RequestorID | 1 | This identifies the system which is sending the update for Availability/Restrictions. This element must appear in the first Source element. |
@Type | 1 | Fixed at 22 (ESRP) |
@ID | 1 | The ID used will be agreed by the trading partners and remain the same throughout the messages. |
OTA_HotelAvailNotifRQ / AvailStatusMessages | 1 | Contains the availability messages |
@HotelCode | 1 | The code for the property whose availability is being updated |
AvailStatusMessages / AvailStatusMessage | 1..n | Contains the availability messages. If there is more than one room type to update, there should be one AvailStatusMessage per room type. |
@BookingLimit | 0..1 | The number of rooms available. This value must account for number rooms already booked/reserved in your PMS. The value of @BookingLimit should be an integer value greater than or equal to 0. Negative values are not acceptable. |
AvailStatusMessage / StatusApplicationControl | 1 | Contains specific info about the room availability |
@Start | 1 | The start date for which the availability update is being set |
@End | 1 | The end date for which the availability update is being set. The end date is inclusive. |
@RatePlanCode | 0..1 | This is the rate plan whose availability is being updated. Must enter RatePlanCode and/or InvTypeCode to identify room |
@InvTypeCode | 0..1 | Identifies the room type for which the availability is being updated. Must enter RatePlanCode and/or InvTypeCode to identify room |
@Mon, Tue, Weds, Thur, Fri, Sat, Sun | 0..1 | "0" or "1". Optional, if not set all are assumed to be set to true |
StatusApplicationControl / DestinationSystemCodes | 0..1 | Contains a list of BookingAgent/Channel codes that you want to change the stop sell, minimum stay, CTA or CTD for. This is optional, by default if it is not present the rate update is assumed to be for all BookingAgents / Channels mapped to the hotel. It is not possible to update availability per channel. |
DestinationSystemCodes / DestinationSystemCode | 1..n | Required if DestinationSystemCodes is present. This is the BookingAgent/Channel code. Please refer to the code table provided. If an update is sent for a BookingAgent/Channel that is not mapped to the hotel, it will return a validation error. |
LengthsOfStay | 0..1 | Optional. Used to update minimum and maximum stays. |
LengthsOfStay / LengthOfStay | 1..2 | Mandatory if LengthsOfStay present. One LengthOfStay can be included for each of "SetMinLOS" and "SetMaxLOS". |
@MinMaxMessageType | 1 | Mandatory if LengthsOfStay present. Possible values are "SetMinLOS" or "SetMaxLOS". |
@Time | 1 | Mandatory if LengthsOfStay present. Sets the minimum or maximum number of days allowed for a stay. Time must be a value above 0. Set Time to 1 to indicate that there is no MinStay requirement, or 999 to indicate no MaxStay requirement. |
AvailStatusMessage / RestrictionStatus | 0..1 | Delfines restrictions like Stop Sell, Close To Arrival (CTA), Close To Departure (CTD) |
@Status | 1 | "Open" OR "Close" |
@Restriction | 0..1 | "Arrival" OR "Departure". If not present the Stop Sell value if updated |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<OTA_HotelAvailNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2005-08-01T09:30:47+08:00" EchoToken="echo-abc123"> <Errors> <Error Type="3" Code="392">Cannot finderfind hotelier ABC</Error> </Errors> </OTA_HotelAvailNotifRS> |
...