Booking Rule Notif
The Hotel Booking Rule Notification message communicates the rules and restrictions associated with the general availability or rates at a hotel to a booking source. The application of a booking rule may narrow the availability of inventory at a specific hotel property. For example, a hotel may be accepting reservations for a two-night or three-night stay, but will not accept a reservation for a one-night stay. This situation may be driven by the use of a yield management system that affects the availability of a specific rate at a given time.
Direction
- Levart will send requests to 3rd Party and expect a response.
Request
<OTA_HotelBookingRuleNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_HotelBookingRuleNotifRQ.xsd"
TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0">
<RuleMessages HotelCode="13353" HotelName="Luxury Apartments London">
<RuleMessage>
<StatusApplicationControl InvTypeCode="150" RatePlanCode="266" />
<BookingRules>
<BookingRule Start="2020-06-19" End="2020-12-05">
<LengthsOfStay>
<LengthOfStay MinMaxMessageType="SetMinLOS" TimeUnit="Day" Time="5" />
</LengthsOfStay>
<RestrictionStatus Restriction="Arrival" Status="Open" />
<RestrictionStatus Restriction="Departure" Status="Open" />
<RestrictionStatus Restriction="Master" Status="Open" />
</BookingRule>
</BookingRules>
</RuleMessage>
<RuleMessage>
<StatusApplicationControl InvTypeCode="142" RatePlanCode="265" />
<BookingRules>
<BookingRule Start="2020-06-19" End="2020-12-05">
<LengthsOfStay>
<LengthOfStay MinMaxMessageType="SetMinLOS" TimeUnit="Day" Time="1" />
</LengthsOfStay>
<RestrictionStatus Restriction="Arrival" Status="Open" />
<RestrictionStatus Restriction="Departure" Status="Open" />
<RestrictionStatus Restriction="Master" Status="Close" />
</BookingRule>
</BookingRules>
</RuleMessage>
<RuleMessage>
<StatusApplicationControl InvTypeCode="164" RatePlanCode="267" />
<BookingRules>
<BookingRule Start="2020-06-19" End="2020-12-05">
<LengthsOfStay>
<LengthOfStay MinMaxMessageType="SetMinLOS" TimeUnit="Day" Time="1" />
</LengthsOfStay>
<RestrictionStatus Restriction="Arrival" Status="Open" />
<RestrictionStatus Restriction="Departure" Status="Open" />
<RestrictionStatus Restriction="Master" Status="Open" />
</BookingRule>
</BookingRules>
</RuleMessage>
</RuleMessages>
</OTA_HotelBookingRuleNotifRQ>
Request Specification
Element | Num | Description |
---|---|---|
OTA_HotelBookingRuleNotifRQ | 1 | Root element |
@TimeStamp | 1 | Date and time of the transaction in ISO 8601 format. e.g. 2020-01-28T15:15:00+08:00 |
@Target | 1 | Target, either 'Development' or 'Production' |
@Version | 1 | Current Version 1.0 |
RuleMessages | 1 | |
RuleMessage | 1..n | |
RuleMessage > StatusApplicationControl | 1 | |
StatusApplicationControl > @InvTypeCode | 1 | Inventory Code |
StatusApplicationControl > @RatePlanCode | 1 | Rate Plan Code |
RuleMessage > BookingRules | 1 | Booking Rules |
BookingRules > BookingRule | 1..n | |
BookingRule > @Start | 1 | Start Date in YYYY-MM-DD format. |
BookingRule > @End | 1 | End Date in YYYY-MM-DD format (Inclusive) |
BookingRule > LengthsOfStay | 0..n | LengthsOfStay element. |
LengthsOfStay > LengthOfStay | 1 | |
LengthOfStay > @Time | 1 | The number of nights minimum required to stay for this particular time period. |
LengthOfStay > @TimeUnit | 1 | Always 'Day' |
LengthOfStay > @MinMaxMessageType | 1 | Always 'SetMinLOS' for Set Minimum Length of Stay. |
BookingRule > RestrictionStatus | 0..3 | Allow setting |
RestrictionStatus > @Restriction | 1 | Valid values: Master, Arrival, Departure. Master: Master restriction. No stays can occur on this date for the InvTypeCode/RatePlanCode combination if @Status = Close |
RestrictionStatus > @Status | 1 | Valid values: Close or Open. Restriction 'Arrival' with a 'Close' status will make the day closed to any Arrivals. |
Response (Success)
<OTA_HotelBookingRuleNotifRS xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_HotelBookingRuleNotifRS.xsd"
TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0">
<Success />
</OTA_HotelBookingRuleNotifRS>
Response (Error)
<OTA_HotelBookingRuleNotifRS xmlns="http://www.opentravel.org/OTA/2003/05"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opentravel.org/OTA/2003/05 https://secure.levartdistributionsystems.com.au/html/schema/OTA/2015B/OTA_HotelBookingRuleNotifRS.xsd"
TimeStamp="2020-06-19T22:21:23+08:00" Target="Production" Version="1.0">
<Errors>
<Error Type="1">Message Here</Error>
</Errors>
</OTA_HotelBookingRuleNotifRS>