API reference

HTS APIs

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

Schema

booking_rate

A booked rate and the unit it was booked for. A multi-room booking has one per room.

Fields

id
string
required

The ID of the booked rate in the partner's system, as sent at offer creation.

unit_id
string
required

The ID of the booked unit in the partner's system, as sent at offer creation.

price
pricing
required

The price breakdown for this rate.

Show fields
base_amount
string
required

The base amount, this includes the provider's base charge and any markup.

Range ≥ 0
taxes_amount
string
required

The amount of taxes.

Range ≥ 0
fees_amount
string
required

The amount of fees.

Range ≥ 0
payment_schedule
array of payment_schedule1

The payment schedule for when the payments will be collected from the user. The sum of amounts must sum up to the full price of the reservation.

Show fields
Array of payment_schedule1 · The payment schedule for when the payments will be collected from the user. The sum of amounts must sum up to the full price of the reservation.
amount
string
required

Amount that the user will be charged.

Range ≥ 0
schedule
schedule1 · one of 3
required

The schedule for when this payment will be collected. Use:

  • pay_now: for payments collected during booking
  • pay_at_check_in: for payments collected directly by the property at or after check-in time
  • pay_later: for anything in between
Show fields

The schedule for when this payment will be collected. Use:

  • pay_now: for payments collected during booking
  • pay_at_check_in: for payments collected directly by the property at or after check-in time
  • pay_later: for anything in between
Exactly one of the following, selected by type:
pay_at_check_in (pay_at_check_in1) pay_at_check_in1
type
string
required

value: pay_at_check_in

pay_later (pay_later1) pay_later1
type
string
required

value: pay_later

due
string · date
required

Date at which the user will be charged, in the timezone of the property.

pay_now (pay_now1) pay_now1
type
string
required

value: pay_now

cancellation_penalty
cancellation_penalty · one of 2
required

The cancellation penalty for this rate. Use:

  • non_refundable if the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)
  • refundable for anything else
Show fields

The cancellation penalty for this rate. Use:

  • non_refundable if the rate is not refundable starting from booking time (i.e., if the user cancels right after booking, they won't get any refund)
  • refundable for anything else
Exactly one of the following, selected by type:
non_refundable (non_refundable1) non_refundable1
type
string
required

value: non_refundable

refundable (refundable1) refundable1
type
string
required

value: refundable

penalties
array of penalty1

The 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
Array of penalty1 · one of 4 · The 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)
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
{
  "id": "rate-bar-flex",
  "unit_id": "unit-king-lux",
  "price": {
    "base_amount": "100.24",
    "taxes_amount": "23.91",
    "fees_amount": "10.00",
    "payment_schedule": [
      {
        "amount": "1.23",
        "schedule": {
          "type": "string"
        }
      }
    ]
  },
  "cancellation_penalty": {
    "type": "string"
  }
}