You are viewing an old version of this content. View the current version.
Compare with Current
View Version History
« Previous
Version 5
Next »
In Hotel Charges Response you will get information about cancellation cost and cancellation rules for the requested offer.
There could be several ranges in response depending on how late the booking is canceled. If the booking is canceled before the start date of the earliest range from the response, then it will be canceled for free.
OTA_HotelChargesRS*:
*mandatory
OTA_HotelChargesRS/RoomStay*:
Element | Attribute | Type | Description | Min…Max occurs |
---|
| RoomStayCandidateRPH | integer | ID of room requested. Must be equal to RoomStayCandidateRPH from Hotel Availability Response. | 1...1 |
CancelPenalties/CancelPenalty | | | Describes penalties on booking cancellation. | 1...* |
Total* | | | The total price of the offer (after discount, if any has been applied). | 1...1 |
Hotel Charges Response Sample XML
<OTA_HotelChargesRS Version="2.00" EchoToken="tok1">
<Success/>
<HotelCharges>
<RoomStay RoomStayCandidateRPH="1">
<CancelPenalties>
<CancelPenalty Start="2020-10-17T00:00:00+02:00" End="2020-10-20T00:00:00+02:00">
<AmountPercent Amount="99.00" CurrencyCode="EUR"/>
</CancelPenalty>
<CancelPenalty Start="2020-10-20T00:00:00+02:00" PolicyCode="NoShow" End="2020-09-25T00:00:00+02:00">
<AmountPercent Amount="99.00" CurrencyCode="EUR"/>
</CancelPenalty>
</CancelPenalties>
<Total AmountAfterTax="660.00" CurrencyCode="EUR"/>
</RoomStay>
</HotelCharges>
</OTA_HotelChargesRS>
Hotel Charges Response With Additional Text Sample XML
<OTA_HotelChargesRS Version="2.00" EchoToken="tok1">
<Success/>
<HotelCharges>
<RoomStay RoomStayCandidateRPH="1">
<CancelPenalties>
<CancelPenalty End="2020-11-01T23:59:59" Start="2020-10-27T00:00:00">
<AmountPercent Amount="143.53" CurrencyCode="EUR"/>
<PenaltyDescription>
<Text>Cancellation charges are 100.00 percents for the first night.</Text>
</PenaltyDescription>
</CancelPenalty>
</CancelPenalties>
<Total AmountAfterTax="717.60" CurrencyCode="EUR"/>
</RoomStay>
</HotelCharges>
</OTA_HotelChargesRS>