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>
Item | Type | Description | RateAmountMessages @HotelCode | String | The hotel code for which the rates applies to | StatusApplicationControl @InvTypeCode | String | The room type for which the rates applies to | StatusApplicationControl @RatePlanCode | String | The rateplan for which the rates applies to | StatusApplicationControl @Start | Date | YYYY-MM-DD format for the rate start date | StatusApplicationControl @End | Date | YYYY-MM-DD format for the rate end date | BaseByGuestAmt @AgeQualifyingCode | Code | See code lookup below | BaseByGuestAmt @AmountAfterTax | Float | The price for each @AgeQualifyingCode | AdditionalGuestAmounts | Node | Not mandatory, used in case there are additional guests fees | AdditionalGuestAmount @AgeQualifyingCode | Code | see code lookup below | AdditionalGuestAmount @Amount | Float | 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>
|