Update rates and restrictions – OTA_HotelRatePlanRQ and OTA_HotelAvailNotifRQ

98 views November 8, 2021 July 4, 2022 korzhkov 0

In case when you need to update rates or restrictions on specific dates you can use following OTA_HotelRatePlanRQ and OTA_HotelAvailNotifRQ requests.

Update rates request sample

<OTA_HotelRatePlanNotifRQ>
 <RatePlans HotelCode="111">
  <RatePlan RatePlanCode="222">
   <Rates>
    <Rate Start="2023-11-23" End="2023-11-23" InvTypeCode="C_333">
     <BaseByGuestAmts>
<!-- "per room" -->
      <BaseByGuestAmt NumberOfGuests="1" AmountBeforeTax="149.50" />
      <BaseByGuestAmt NumberOfGuests="2" AmountBeforeTax="149.50" />
      <BaseByGuestAmt NumberOfGuests="3" AmountBeforeTax="149.50" />
<!-- OR "per pers" -->
      <BaseByGuestAmt NumberOfGuests="1" AmountBeforeTax="125.50" />
      <BaseByGuestAmt NumberOfGuests="2" AmountBeforeTax="223.00" />
      <BaseByGuestAmt NumberOfGuests="3" AmountBeforeTax="320.50" />
<!-- OR "per guest type" -->
      <BaseByGuestAmt AgeQualifyingCode="101" AmountBeforeTax="25.50" />
      <BaseByGuestAmt AgeQualifyingCode="105" AmountBeforeTax="155.50" />
      <BaseByGuestAmt AgeQualifyingCode="108" AmountBeforeTax="205.50" />
<!-- Pricing Model -->
     </BaseByGuestAmts>
    </Rate>
    <Rate Start="2023-11-24" End="2023-11-27" InvTypeCode="C_333">
     <BaseByGuestAmts>
<!-- "per room" -->
      <BaseByGuestAmt NumberOfGuests="1" AmountBeforeTax="139.50" />
      <BaseByGuestAmt NumberOfGuests="2" AmountBeforeTax="139.50" />
      <BaseByGuestAmt NumberOfGuests="3" AmountBeforeTax="139.50" />
<!-- OR "per pers" -->
      <BaseByGuestAmt NumberOfGuests="1" AmountBeforeTax="135.50" />
      <BaseByGuestAmt NumberOfGuests="2" AmountBeforeTax="253.00" />
      <BaseByGuestAmt NumberOfGuests="3" AmountBeforeTax="350.50" />
<!-- OR "per guest type" -->
      <BaseByGuestAmt AgeQualifyingCode="101" AmountBeforeTax="125.50" />
      <BaseByGuestAmt AgeQualifyingCode="105" AmountBeforeTax="255.50" />
      <BaseByGuestAmt AgeQualifyingCode="108" AmountBeforeTax="305.50" />
<!-- Pricing Model -->
     </BaseByGuestAmts>
    </Rate>
   </Rates>
  </RatePlan>
 </RatePlans>
</OTA_HotelRatePlanNotifRQ>

Required fields:
Version – OTA requires it

Update restrictions request sample

<OTA_HotelAvailNotifRQ>
    <AvailStatusMessages HotelCode="111">
        <AvailStatusMessage LocatorID="1">
            <StatusApplicationControl Start="2021-12-25" End="2022-01-03" RatePlanCode="333" InvTypeCode="C_555" Mon="false" Tue="false" Weds="false" Thur="false" Fri="true" Sat="true" Sun="false" />
            <RestrictionStatus Restriction="Arrival | Departure | Master" />
        </AvailStatusMessage>
    </AvailStatusMessages>
</OTA_HotelAvailNotifRQ>
<OTA_HotelAvailNotifRS>
    <Success/>
</OTA_HotelAvailNotifRS>

Response sample

<OTA_RateAmountNotifRS>
    <Success/>
</OTA_RateAmountNotifRS>

Was this helpful?