API reference

HTS APIs

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

Schema

shop_response

Request for the shop operation

Fields

lodgings
array of shopped_lodging
required

List of lodgings with room rates

Items ≥ 1, ≤ 200
Show fields
Array of shopped_lodging · List of lodgings with room rates
Items ≥ 1, ≤ 200
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
room_rates
array of room_rate
required

List of rooms with its available rates

Show fields
Array of room_rate · List of rooms with its available rates
room_id
string
required

Unique identifier for the room

Example 123e4567-e89b-12d3-a456-426614174000
name
string
required

Name of the room

Example Standard Room
rates
array of rate
required

List of available rates for the room

Show fields
Array of rate · List of available rates for the room
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
merchandising
merchandising
required

Merchandising information for promotional badging and marketing displays.

Show fields
product
product
required

Describes a bookable rate. Differentiates between two rates for the same room.

Show fields
cancellation_penalty
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
quote_token
string
required

Token to pass in the quote request. Only returned in shop responses.

Example string
valid_until
string · date-time
required

ISO 8601 timestamp until which the quote token remains valid. Only returned in shop responses.

Example 2025-01-13T13:45:15.523Z
payment_clauses
array of payment_clause

List of payment clauses associated with the rate

Show fields
…
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
commission
commission

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

Show fields
initial_price
object

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

Show fields
…
unavailability_reasons
array of unavailability_reason
required

List of reasons why the lodging is unavailable. This field is only present if there are no available room_rate. If room_rate is empty and unavailability_reasons is also empty it means that the lodging is unavailable but the reason for the unavailability is unknown.

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
Example
{
  "lodgings": [
    {
      "lodging_id": "123e4567-e89b-12d3-a456-426614174000",
      "room_rates": [
        {
          "room_id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Standard Room",
          "rates": [
            {
              "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": [],
              "recommended_sell": {},
              "commission": {},
              "initial_price": {
                "base": {
                  "currency": "USD",
                  "amount": "100.00"
                },
                "total": {
                  "currency": "USD",
                  "amount": "135.00"
                }
              },
              "merchandising": {},
              "product": {},
              "cancellation_penalty": {
                "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"
                    }
                  }
                ]
              },
              "quote_token": "string",
              "valid_until": "2025-01-13T13:45:15.523Z"
            }
          ]
        }
      ],
      "unavailability_reasons": [
        "min_stay_violation"
      ]
    }
  ],
  "response_id": "123e4567-e89b-12d3-a456-426614174000"
}