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

ElementNumDescription
OTA_HotelBookingRuleNotifRQ1Root element
@TimeStamp1Date and time of the transaction in ISO 8601 format. e.g. 2020-01-28T15:15:00+08:00
@Target1Target, either 'Development' or 'Production'
@Version1Current Version 1.0
RuleMessages1
RuleMessage1..n
RuleMessage > StatusApplicationControl1
StatusApplicationControl > @InvTypeCode1Inventory Code
StatusApplicationControl > @RatePlanCode1Rate Plan Code
RuleMessage > BookingRules1Booking Rules
BookingRules > BookingRule1..n
BookingRule > @Start1Start Date in YYYY-MM-DD format.
BookingRule > @End1End Date in YYYY-MM-DD format (Inclusive)
BookingRule > LengthsOfStay0..nLengthsOfStay element.
LengthsOfStay > LengthOfStay1
LengthOfStay > @Time1The number of nights minimum required to stay for this particular time period.
LengthOfStay > @TimeUnit1Always 'Day'
LengthOfStay > @MinMaxMessageType1Always 'SetMinLOS' for Set Minimum Length of Stay.
BookingRule > RestrictionStatus0..3Allow setting
RestrictionStatus > @Restriction1

Valid values: Master, Arrival, Departure.

Master: Master restriction. No stays can occur on this date for the InvTypeCode/RatePlanCode combination if @Status = Close
Arrival: Closed To Arrival for the InvTypeCode/RatePlanCode combination
Departure: Closed To Departure for the InvTypeCode/RatePlanCode combination.

RestrictionStatus > @Status1

Valid values: Close or Open.

Restriction 'Arrival' with a 'Close' status will make the day closed to any Arrivals.
Restriction 'Departure' with a 'Close' status will make the day closed to any Departures.


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>