API reference

HTS APIs

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

Schema

quote_response

Response payload containing a detailed quote breakdown for the lodging reservation.

Fields

payment_schedule
payment_schedule
required

Pricing breakdown of a rate. Includes the amounts owed at book time and the amounts owed at check-in.

Show fields
owed_now
object
required

Amounts due at time of booking

Show fields
base
object
required

The base price of the lodging (product price excluding taxes and fees)

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
taxes
array of tax
required

List of taxes

Show fields
Array of tax · List of taxes
category
string enum
required

Reason for the tax. This is a non-exhaustive list of enum values, which will be extended in the future.

Values tax_recovery_chargessales_taxcity_tax · Example city_tax
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
name
string

Free form name of the tax in the property manager specified language

description
string

Free form detailed description of the tax in the property manager specified language

fees
array of fee
required

List of fees

Show fields
Array of fee · List of fees
category
string enum
required

Fee category. This is a non-exhaustive list of enum values, which will be extended in the future.

Values property_feehotel_feeresort_feetraveler_service_feecleaning_feepet_fee · Example hotel_fee
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
name
string

Free form name of the fee in the property manager specified language

description
string

Free form detailed description of the fee in the property manager specified language

total
object
required

Total price including base, taxes, and fees

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
owed_at_check_in
object
required

Amounts due at check-in (e.g. resort fees, remaining balance, local taxes).

These charges are collected at the property and may be denominated in the property's local currency, which can differ from the currency of owed_now (for example, a rate sold in USD with a city tax collected at the hotel in EUR). Read the currency on each amount/tax/fee rather than assuming it matches owed_now.

For pay-later rates (only returned by shop to partners enabled for them), the stay itself is paid at the property: owed_at_check_in.base holds the room price, owed_at_check_in.total includes every tax and fee, and owed_now is zero. Taxes and fees without an API category are counted in the total but not itemized in the taxes or fees lists. /quote does not return this split yet, and booking pay-later rates is not supported yet: /book returns rate_unavailable (409).

Show fields
base
object
required

The base price of the lodging (product price excluding taxes and fees)

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
taxes
array of tax
required

List of taxes

Show fields
Array of tax · List of taxes
category
string enum
required

Reason for the tax. This is a non-exhaustive list of enum values, which will be extended in the future.

Values tax_recovery_chargessales_taxcity_tax · Example city_tax
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
name
string

Free form name of the tax in the property manager specified language

description
string

Free form detailed description of the tax in the property manager specified language

fees
array of fee
required

List of fees

Show fields
Array of fee · List of fees
category
string enum
required

Fee category. This is a non-exhaustive list of enum values, which will be extended in the future.

Values property_feehotel_feeresort_feetraveler_service_feecleaning_feepet_fee · Example hotel_fee
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
name
string

Free form name of the fee in the property manager specified language

description
string

Free form detailed description of the fee in the property manager specified language

total
object
required

Total price including base, taxes, and fees

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
merchandising
merchandising
required

Merchandising information for promotional badging and marketing displays.

Show fields
promotional_tags
array of promotional_tag
required

List of promotional tags that can be displayed to highlight special offers or rate characteristics. May be empty if no promotional tags apply.

Note: New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.

Show fields
Array of promotional_tag · List of promotional tags that can be displayed to highlight special offers or rate characteristics. May be empty if no promotional tags apply. **Note:** New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.
type
string enum
required

The type of promotional tag:

  • GENERIC: General promotional offer
  • SEASONAL_DEAL: Seasonal promotional offer or deal
  • LIMITED_TIME_OFFER: Limited time promotional offer
  • MOBILE_RATE: Mobile-exclusive rate
  • CUG_RATE: Closed user group rate
  • PACKAGE_RATE: Package rate
  • CORPORATE_RATE: Corporate rate
  • LAST_MINUTE: Last minute booking discount. Currently only applicable to Homes.
  • EARLY_BIRD: Early booking discount. Currently only applicable to Homes.
  • LENGTH_OF_STAY: Weekly, monthly, or long stay discount. Currently only applicable to Homes.

Note: New promotional tags may be added at any time. API clients should handle unknown tag values gracefully to maintain forward compatibility.

Values GENERICSEASONAL_DEALCUG_RATEPACKAGE_RATEMOBILE_RATELIMITED_TIME_OFFERCORPORATE_RATELAST_MINUTEEARLY_BIRDLENGTH_OF_STAY · Example SEASONAL_DEAL
book_token
string
required

An opaque token used to finalize the booking process via the /book endpoint. Important: This token is unique to this specific quote and booking flow. Each unique booking requires a new quote and therefore a new book_token. Never reuse a book_token from a different booking, even for the same hotel, dates, and room type. The token may be safely reused only when retrying the same booking request (same guest, same partner_reference_id) due to network failures or timeouts.

Example string
valid_until
string · date-time
required

ISO 8601 timestamp until which the quote remains valid.

Example 2024-01-01T12:00:00Z
cancellation_policy
cancellation_penalty
required

Cancellation penalty for a lodging.

This object will contain an ordered sequence of gapless penalty ranges starting from the booking time and ending at the check-in time.

The penalty amount will be withheld if the cancellation time falls within the range of the start time (inclusive) and end time (exclusive).

A penalty range with 0 amount indicates that the rate if fully refundable on that range. On the other hand, if the penalty amount equals the booking amount, the rate is non-refundable on that range.

Show fields
penalty_ranges
array of PenaltyRange
required

Ordered sequence of gapless penalty ranges from booking time to check-in

Items ≥ 1
Show fields
Array of PenaltyRange · Ordered sequence of gapless penalty ranges from booking time to check-in
Items ≥ 1
start_time
string · date-time
required

Start time of the penalty range (Inclusive), in ISO 8601 format

Example 2020-01-01T00:00:00Z
end_time
string · date-time
required

End time of the penalty range (Exclusive), in ISO 8601 format

Example 2020-01-02T00:00:00Z
penalty
object
required

Monetary amount withheld from the client if cancellation falls within this range

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
response_id
string · uuid
required

Unique identifier of the specific response. Use this identifier when you need to refer to a specific response, when requiring technical support.

Example 123e4567-e89b-12d3-a456-426614174000
payment_clauses
array of payment_clause

List of payment clauses associated with the rate

Show fields
Array of payment_clause · one of 2 · List of payment clauses associated with the rate

Provides information about payments restrictions, constraints, or requirements.

Exactly one of the following, selected by type:
card_on_file (payment_clause_card_on_file) payment_clause_card_on_file
type
string enum
required

Discriminator value for card-on-file payment clause

Values card_on_file · Example card_on_file
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
card_on_file_description
string

Describes the modalities of the card on file payment clause.

text (payment_clause_text) payment_clause_text
type
string enum
required

Discriminator value for text payment clause

Values text · Example text
description
string
required

Describes the modalities of the payment clause.

recommended_sell
recommended_sell_price

The recommended tax inclusive sell price for this rate.

If the payment schedule include amounts to be paid both at booking and at check-in, this recommended sell price only includes the taxes and fees paid at booking.

Availability of this field depends on configuration and is not guaranteed.

Hopper provides this field to allow partners to display pricing in a variety of ways. Ultimately, however, each partner using Hopper’s API is responsible for ensuring that the way it displays Hopper travel information and pricing complies with the law.

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
commission
commission

The estimated commission amount included in the base price. If not specified, there is no commission on this rate.

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
initial_price
object

Initial sell price of a lodging before any price reductions were applied.

Show fields
base
monetary_amount
required

A currency qualified monetary amount

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
total
monetary_amount
required

A currency qualified monetary amount

Show fields
currency
string
required

Currency code, in ISO 4217 format.

Pattern ^[A-Z]{3}$ · Example USD
amount
string
required

Monetary amount value Serialized BigDecimal value

Example 123.45
loyalty
quoted_loyalty

Whether the quoted rate may participate in the property's loyalty program, and whether this booking can transmit the guest's loyalty number to the supplier.

Extends the shop-time loyalty object with loyalty_transmission, which is only meaningful once a rate is quoted: the booking path is settled at that point, and collecting a loyalty number is a decision the caller faces on the way to book rather than while rendering search results.

Eligibility and transmission are independent. A rate may participate in the program with no way for us to transmit a number, and we can often transmit a number while having no eligibility claim for the rate.

Show fields
eligibility
string enum
required

Whether the supplier has indicated this rate plan may participate in the property's loyalty program.

  • eligible: the rate may participate in the property's loyalty program.
  • unknown: no claim either way. Never present this to a guest as "no points on this rate" — a supplier that says nothing is not saying the rate is ineligible.
Values eligibleunknown · Example eligible
loyalty_transmission
string enum
required

Whether a booking with this rate can transmit the guest's loyalty number to the supplier.

  • eligible: this booking can transmit the guest's loyalty number.
  • ineligible: this booking cannot. The guest should verify at check-in that their loyalty number has been added.
  • unknown: the supplier may not be able to receive the loyalty number at time of booking. The guest should verify at check-in that it has been added.

Independent of eligibility, which describes the rate rather than the booking path.

Advisory only: hotel_loyalty is always accepted on the book request whatever this says.

Values eligibleineligibleunknown · Example eligible
program_code
string

The program the quoted rate may earn points in. Present whenever eligibility is eligible. Supply the guest's membership for this program as primary_guest.hotel_loyalty on the book request.

Show fields
Object with no documented fields · The program the quoted rate may earn points in. Present whenever `eligibility` is `eligible`. Supply the guest's membership for this program as `primary_guest.hotel_loyalty` on the book request.

Used by

PUT/api/lodging/v1/quoteGenerate a detailed quote for a lodging
Example
{
  "payment_schedule": {
    "owed_now": {
      "base": {
        "currency": "USD",
        "amount": "100.00"
      },
      "taxes": [
        {
          "category": "tax_recovery_charges",
          "currency": "USD",
          "amount": "10.00"
        },
        {
          "category": "sales_tax",
          "currency": "USD",
          "amount": "5.00"
        }
      ],
      "fees": [],
      "total": {
        "currency": "USD",
        "amount": "115.00"
      }
    },
    "owed_at_check_in": {
      "base": {
        "currency": "EUR",
        "amount": "0.00"
      },
      "taxes": [
        {
          "category": "city_tax",
          "currency": "EUR",
          "amount": "18.00"
        }
      ],
      "fees": [],
      "total": {
        "currency": "EUR",
        "amount": "18.00"
      }
    }
  },
  "payment_clauses": [
    {
      "type": "card_on_file",
      "currency": "USD",
      "amount": "10.00",
      "card_on_file_description": "By providing your card details, you agree to allow us to charge your card for any cancellation fees that may apply according to the property's cancellation policy."
    }
  ],
  "recommended_sell": {
    "currency": "USD",
    "amount": "123.45"
  },
  "commission": {
    "currency": "USD",
    "amount": "123.45"
  },
  "initial_price": {
    "base": {
      "currency": "USD",
      "amount": "100.00"
    },
    "total": {
      "currency": "USD",
      "amount": "135.00"
    }
  },
  "merchandising": {
    "promotional_tags": [
      {
        "type": "SEASONAL_DEAL"
      }
    ]
  },
  "loyalty": {
    "eligibility": "eligible",
    "program_code": {},
    "loyalty_transmission": "eligible"
  },
  "book_token": "string",
  "valid_until": "2024-01-01T12:00:00Z",
  "cancellation_policy": {
    "penalty_ranges": [
      {
        "start_time": "2020-01-01T00:00:00Z",
        "end_time": "2020-01-02T00:00:00Z",
        "penalty": {
          "currency": "USD",
          "amount": "0.00"
        }
      },
      {
        "start_time": "2020-01-02T00:00:00Z",
        "end_time": "2020-01-03T00:00:00Z",
        "penalty": {
          "currency": "USD",
          "amount": "75.00"
        }
      },
      {
        "start_time": "2020-01-03T00:00:00Z",
        "end_time": "2020-01-05T00:00:00Z",
        "penalty": {
          "currency": "USD",
          "amount": "135.00"
        }
      }
    ]
  },
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}