OTA_HotelAvailNotifRQ - request sent by PMS with the real-time availability and restrictions.
OTA_HotelAvailNotifRS - response sent by pmsXchange to acknowledge receipt.
Request
Examples
To set the Availability of a room type, use the AvailStatusMessage/@BookingLimit attribute.
Availability is set at the 'Room Type/Category' level (InvTypeCode). For example, if the room type is 'Superior' with 'SUP' as the InvTypeCode, all rates linked to this category will share the same availability pool. Updates will apply to the 'SUP' InvTypeCode.
To update the Stop Sell restriction, use the RestrictionStatus node.
Each restriction type is managed independently, meaning updates for one restriction (e.g., stop sell) do not affect the status of others (e.g., closed to arrival or departure). For example, sending a stop sell update will not modify the closed to arrival or closed to departure settings.
SUP / GLD room rate is stop sold for the specified date range.
To update the Closed to Arrival (CTA) restriction, use the RestrictionStatus node.
Each restriction type is managed independently, meaning updates for one restriction (e.g., stop sell) do not affect the status of others (e.g., closed to arrival or departure). For example, sending a stop sell update will not modify the closed to arrival or closed to departure settings.
SUP / GLD room rate is closed for arrival (check-in)on2025-03-01.
To update the Closed to Departure (CTD) restriction, use the RestrictionStatus node.
Each restriction type is managed independently, meaning updates for one restriction (e.g., stop sell) do not affect the status of others (e.g., closed to arrival or departure). For example, sending a stop sell update will not modify the closed to arrival or closed to departure settings.
SUP / GLD room rate is closed for departure (check-out)on2025-03-05.
Minimum Length of Stay is the minimum number of nights the guest must stay if this date is the requested arrival date.
To set a Minimum Stay, use the LengthsOfStay element, which contains a single LengthOfStay element with two mandatory attributes:
@MinMaxMessageType: Must be set to "SetMinLOS".
@Time: The minimum stay duration in days.
Ensure there is no conflict between MinLOS and MaxLOS values. The system should not allow a minimum stay (MinLOS) to be greater than the maximum stay (MaxLOS) for the same date.
Maximum Length of Stay is the maximum number of nights the guest can stay after the requested arrival date.
To set a Maximum Stay, use the LengthsOfStay element, which includes a single LengthOfStay element with two mandatory attributes:
@MinMaxMessageType: Must be set to "SetMaxLOS".
@Time: The maximum stay duration in days.
Ensure there is no conflicting logic between MaxLOS and MinLOS. The system must prevent hotels from setting a maximum stay (MaxLOS) that is less than the minimum stay (MinLOS) for the same date.
Each AvailStatusMessage can be used to set Availability, Minimum/Maximum Stays, CTA/CTD and Stop Sells either individually or in combination. Each attribute—such as BookingLimit for availability, LengthOfStay for minimum/maximum stays, and RestrictionStatus for stop sells and CTA/CTD—can be updated independently within the same request.
Here is an example of an OTA_HotelAvailNotifRQ that updates Closed to Arrival (CTA), Closed to Departure (CTD), and sets a Stop Sell for a room in a single request:
<OTA_HotelAvailNotifRSxmlns="http://www.opentravel.org/OTA/2003/05"Version="1.0"TimeStamp="2025-08-01T09:30:47+08:00"EchoToken="echo-abc123"> <Errors> <ErrorType="6">PMS is not authorized to access hotel with HotelCode=XXXX</Error> </Errors></OTA_HotelAvailNotifRS>
<OTA_HotelAvailNotifRSxmlns="http://www.opentravel.org/OTA/2003/05"Version="1.0"TimeStamp="2025-08-01T09:30:47+08:00"EchoToken="echo-abc123"> <Errors> <ErrorType="10">Status should be "Close" or "Open"</Error> </Errors></OTA_HotelAvailNotifRS>
<OTA_HotelAvailNotifRSxmlns="http://www.opentravel.org/OTA/2003/05"Version="1.0"TimeStamp="2025-08-01T09:30:47+08:00"EchoToken="echo-abc123"> <Errors> <ErrorType="10">Time should be a number between 1 and 9999</Error> </Errors></OTA_HotelAvailNotifRS>
Specification
Element / @Attribute
Type
M
Description
OTA_HotelAvailNotifRS
Element
1
Root element for the response.
@xmlns
String
1
Defines the XML namespace for the request. Will be set to http://www.opentravel.org/OTA/2003/05
@EchoToken
String
1
Unique identifier for the request, used to match requests and responses.
@TimeStamp
DateTime
1
Time when the response was generated.
@Version
String
1
Specifies the API version. Must be set to 1.0.
Success
Element
0..1
Indicates successful processing of the request.
Errors
Element
0..1
Indicates an error occurred during the processing of the request.