API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

Schema

penalty1

Fields

Exactly one of the following, selected by type:
fixed (fixed1) fixed1
type
string
required

value: fixed

start_date_time
string
required

The time at which the penalty will take effect, in the property's timezone.

amount
string
required

A fixed amount charged as the penalty upon cancellation

number_of_nights (number_of_nights1) number_of_nights1
type
string
required

value: number_of_nights

start_date_time
string
required

The time at which the penalty will take effect, in the property's timezone.

num_nights
integer · 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
percentage_nightly (percentage_nightly1) percentage_nightly1
type
string
required

value: percentage_nightly

start_date_time
string
required

The time at which the penalty will take effect, in the property's timezone.

nightly_percentage
integer · int32
required

The 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_total1) percentage_total1
type
string
required

value: percentage_total

start_date_time
string
required

The time at which the penalty will take effect, in the property's timezone.

total_percentage
integer · int32
required

The 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
Example
{
  "type": "string",
  "start_date_time": "2025-07-12T16:00:00",
  "amount": "3.91"
}