HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
fast_cancellation_penalty
The cancellation penalty for this rate. Use:
non_refundableif the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)refundablefor anything else
Fields
The cancellation penalty for this rate. Use:
non_refundableif the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)refundablefor anything else
type:non_refundable (non_refundable) non_refundable
typevalue: non_refundable
refundable (refundable) refundable
typevalue: refundable
penaltiesThe cancellation penalties for this rate. If the rate is fully refundable until check-in, send an empty array. Otherwise, send a list of penalties that will be applied upon cancelling the reservation.
For a list of penalties, they represent a timeline and the latest active penalty will be applied. e.g. on a $900 booking for 4 nights, with penalties:
- PercentageNightly(01/01/2050, 25%)
- PercentageNightly(01/05/2050, 50%)
If the guest cancels on:
- 01/03/2050, penalty is: $900 / 4 * 0.25 = $56.25 (user is refunded $843.75)
- 01/05/2050, penalty is: $900 / 4 * 0.5 = $112.50 (user is refunded $787.50)
Show fields
type:fixed (fixed) fixed
typevalue: fixed
start_date_timeThe time at which the penalty will take effect, in the property's timezone.
amountA fixed amount charged as the penalty upon cancellation
number_of_nights (number_of_nights) number_of_nights
typevalue: number_of_nights
start_date_timeThe time at which the penalty will take effect, in the property's timezone.
num_nightsThe number of nights to charge the guest for cancelling. e.g. on a $900 booking for 4 nights, with NumberOfNights(3) and the guest cancels within the penalty period,
- penalty is: $900 / 4 * 3 = $675
- user is refunded $900 - $675 = $225
percentage_nightly (percentage_nightly) percentage_nightly
typevalue: percentage_nightly
start_date_timeThe time at which the penalty will take effect, in the property's timezone.
nightly_percentageThe percentage of a single night to charge the guest for cancelling. e.g. on a $900 booking for 4 nights, with PercentageNightly(90%) and the guest cancels within the penalty period,
- penalty is: $900 / 4 * 0.9 = $202.50
- user is refunded $900 - $202.50 = $697.50
percentage_total (percentage_total) percentage_total
typevalue: percentage_total
start_date_timeThe time at which the penalty will take effect, in the property's timezone.
total_percentageThe percentage of the booking amount to charge the guest for cancelling. e.g. on a $900 booking for 4nights, with PercentageTotal(70%) and the guest cancels within the penalty period,
- penalty is: $900 * 0.7 = $630
- user is refunded $900 - $630 = $270
{
"type": "string"
}