API reference

HTS APIs

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

Schema

get_booking_response

Recommended response structure for the partner get_booking endpoint.

Fields

reservation_id
string
required

ID of the reservation in the partner's system.

customer_confirmation_id
string
required

Customer-facing confirmation ID (locator) for the hotel.

reservation_status
string
required

Current status of the reservation. Partners may use their own status values; HTS will accept and translate them.

check_in_date
string · date
required

Check-in date in ISO 8601 local date format.

check_out_date
string · date
required

Check-out date in ISO 8601 local date format.

created_at
string · date-time
required

ISO 8601 timestamp when the reservation was created.

reservation_price
price
required

Full reservation cost split into base, taxes, and fees.

Show fields
base
string
required

Base price amount.

Range ≥ 0
taxes
string
required

Tax amount.

Range ≥ 0
fees
string
required

Fee amount.

Range ≥ 0
booking_currency
string
required

ISO 4217 currency code for all monetary amounts in the response.

property_id
string
required

ID of the property in the partner's system.

unit_id
string
required

ID of the booked unit in the partner's system.

rate_id
string
required

ID of the booked rate in the partner's system.

property_name
string
required

Display name of the property.

last_modified_at
string · date-time

ISO 8601 timestamp when the reservation was last modified.

check_in_time
string

Local check-in time at the property.

chain_name
string

Name of the hotel chain. Not required for independent properties.

payment_transactions
array of payment_transaction

Record of payment transactions associated with this booking.

Show fields
Array of payment_transaction · Record of payment transactions associated with this booking.
amount
string
required

Monetary amount of the transaction.

Range ≥ 0
date_time
string · date-time
required

ISO 8601 timestamp when the transaction occurred.

transaction_type
string enum
required

Whether this transaction is a charge or refund.

Values user_chargeuser_refund
payment_type
string enum
required

The payment method used for this transaction.

Values payment_cardnot_provided
cfar_order_id
string

HTS CFAR order ID, if a CFAR contract is associated with this booking.

cancel_url
string

URL for the customer to initiate a cancellation.

Used by

GET/get_bookingGet Booking
GET/search_bookingsSearch Bookings
Example
{
  "reservation_id": "string",
  "customer_confirmation_id": "string",
  "reservation_status": "string",
  "check_in_date": "2024-06-15",
  "check_out_date": "2024-06-18",
  "created_at": "2024-06-15T10:30:00Z",
  "last_modified_at": "2026-12-10T15:00:00Z",
  "reservation_price": {
    "base": "200.00",
    "taxes": "30.00",
    "fees": "20.00"
  },
  "booking_currency": "USD",
  "property_id": "string",
  "unit_id": "string",
  "rate_id": "string",
  "property_name": "string",
  "check_in_time": "15:00",
  "chain_name": "string",
  "payment_transactions": [
    {
      "amount": "150.00",
      "date_time": "2024-06-15T10:30:00Z",
      "transaction_type": "user_charge",
      "payment_type": "payment_card"
    }
  ],
  "cfar_order_id": "string",
  "cancel_url": "string"
}