Zenith API‎ > ‎1. Hotels‎ > ‎

2. Push Rates

Once you have all the rooms from the first method, it's time to push the rates.

Request

<OTA_HotelRateAmountNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" TimeStamp="2015-11-11T11:11:11+00:00" Version="1.0" EchoToken="12345678">
  <RateAmountMessages HotelCode="HOTEL1">
    <RateAmountMessage>
      <StatusApplicationControl InvTypeCode="A1K" RatePlanCode="BAR" Start="2016-01-01" End="2016-02-01"/>
      <Rates>
        <Rate>
          <BaseByGuestAmts>
            <BaseByGuestAmt AgeQualifyingCode="10" AmountAfterTax="97.00"/>
            <BaseByGuestAmt AgeQualifyingCode="8" AmountAfterTax="69.00"/>
          </BaseByGuestAmts>
          <AdditionalGuestAmounts>
            <AdditionalGuestAmount AgeQualifyingCode="10" Amount="20"/>
            <AdditionalGuestAmount AgeQualifyingCode="8" Amount="10"/>
          </AdditionalGuestAmounts>
        </Rate>
        ...
        ...
      </Rates>
    </RateAmountMessage>
  </RateAmountMessages>
</OTA_HotelRateAmountNotifRQ>

 ItemType Description 
 RateAmountMessages @HotelCodeStringThe hotel code for which the rates applies to
 StatusApplicationControl @InvTypeCodeString The room type for which the rates applies to 
 StatusApplicationControl @RatePlanCodeString The rateplan for which the rates applies to 
 StatusApplicationControl @StartDate     YYYY-MM-DD format for the rate start date 
 StatusApplicationControl @End Date YYYY-MM-DD format for the rate end date 
 BaseByGuestAmt @AgeQualifyingCodeCodeSee code lookup below
 BaseByGuestAmt @AmountAfterTaxFloatThe price for each  @AgeQualifyingCode
 AdditionalGuestAmountsNodeNot mandatory, used in case there are additional guests fees 
 AdditionalGuestAmount @AgeQualifyingCodeCodesee code lookup below
 AdditionalGuestAmount @AmountFloat The extra price for  an additional guests with the relevant type

AgeQualifyingCode Lookup:
10 - adult
8 - Child
7 - Infant

Response
<OTA_HotelRateAmountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2015-11-11T11:11:12+00:00" EchoToken="12345678">
  <Success/>
</OTA_HotelRateAmountNotifRS>

Error
<OTA_HotelRateAmountNotifRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="1.0" TimeStamp="2015-11-11T11:11:12+00:00" EchoToken="12345678">
  <Errors>
    <Error Type="6" Code="392">Cannot find hotelier with code HOTEL1</Error>
  </Errors>
</OTA_HotelRateAmountNotifRS>



Comments