API reference
HTS APIs
Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.
Schema
number_of_nights1
Fields
typestring
required
value: number_of_nights
start_date_timestring
required
The time at which the penalty will take effect, in the property's timezone.
num_nightsinteger · int32
required
The 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
Example
{
"type": "string",
"start_date_time": "2025-07-12T16:00:00",
"num_nights": 1
}