API reference

HTS APIs

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

Schema

get_order_response

Order details by order id

Fields

booking_order
booking_order
required

Details about the hotel booking order

Show fields
order_id
string
required

Unique order id for this reservation record

Example L2J982VT3J28
lodging_id
string
required

Unique identifier for the lodging

Example 123e4567-e89b-12d3-a456-426614174000
check_in_date
string · date
required

Check-in date in hotel timezone for this reservation, in ISO 8601 format (YYYY-MM-DD).

Example 2022-01-01
check_out_date
string · date
required

Check-out date in hotel timezone for this reservation, in ISO 8601 format (YYYY-MM-DD).

Example 2022-01-01
order_status
order_status · one of 2
required

Describes the status of a order.

  • confirmed - order was booked successfully
  • cancelled - order was cancelled successfully

This is a non-exhaustive list of enum values, which may be extended in the future."

Show fields

Describes the status of a order.

  • confirmed - order was booked successfully
  • cancelled - order was cancelled successfully

This is a non-exhaustive list of enum values, which may be extended in the future."

Exactly one of the following, selected by type:
cancelled (order_status_cancelled) order_status_cancelled
type
string enum
required

Discriminator value for cancelled order status

Values cancelled · Example cancelled
cancellation_info
cancellation_info · one of 2
required

Information on a cancelled order

Show fields

Information on a cancelled order

Exactly one of the following, selected by type:
hotel (cancellation_info_hotel) cancellation_info_hotel
type
string enum
required

Discriminator value identifying this cancellation info type.

Values hotel
vacation_rental (cancellation_info_vacation_rental) cancellation_info_vacation_rental
type
string enum
required

Discriminator value identifying this cancellation info type.

Values vacation_rental
instigator
string enum
required

Indicates who initiated the cancellation.

Values guesthost · Example guest
guest_refund_amount
object

The amount refunded to the guest for the cancelled vacation rental

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
confirmed (order_status_confirmed) order_status_confirmed
type
string enum
required

Discriminator value for confirmed order status

Values confirmed · Example confirmed
booked_rooms
array of booked_room
required

The details about the room booked in the order.

Items ≥ 1, ≤ 1
Show fields
Array of booked_room · The details about the room booked in the order.
Items ≥ 1, ≤ 1
room_info
room_info
required

The details about a room including the id, the name, and allowed occupancy

Show fields
room_id
string
required

The Id for a room in a lodging.

Example 123456
name
string
required

Room name

Example Standard King room
max_adults
integer
required

The number adults that are able to stay in this room.

Example 2
max_children
integer
required

The number children that are able to stay in this room.

Example 2
media
array of room_media
required

List of media assets with their associated room media types

Show fields
Array of room_media · one of 2 · List of media assets with their associated room media types

Media asset with its associated room media type

Exactly one of the following, selected by type:
image (media_image) media_image
video (media_video) media_video
description
string

Room description

Example Comfortable room with king-size bed, city view, and modern amenities
size_sq_ft
integer

Room size in square feet

Example 350
bed_configurations
array of bed_configuration

List of bed configurations in the room

Show fields
Array of bed_configuration · List of bed configurations in the room
quantity
integer
required

Number of beds of this type

Range ≥ 1 · Example 2
bed_type
string enum
required

Type of bed available in a room

Values doublefutonkingmurphyqueensofatatamitwinsinglefullrun_of_the_housedormwaterbunkcribrollawaytrundleunspecified · Example king
room_amenities
array of room_amenity

List of amenities available in the room

Show fields
Array of room_amenity · List of amenities available in the room
amenity_type
string enum
required

Type of amenity available in a specific room

Values accessibilityair_conditioningbarchildcarecoffee_makercoffee_teafitness_centerfree_wifihair_dryerheatinghot_tubkitchen_essentialslaundryoutdoor_spacepoolroom_wifiworkspacebreakfast_includedprivate_open_air_bathsmokingwestern_stylejapanese_stylerollaway_or_extra_beds_available · Example free_wifi
name
string
required

Display name of the room amenity

Example Free WiFi
views
array of room_view

List of views available from the room (e.g. ocean, city, garden). Omitted or empty when the room's views are unknown.

smoking_policy
string enum

Smoking policy of a room. Omitted when unknown; absence does not mean non-smoking.

Values smokingnon_smokingsmoking_and_non_smoking · Example non_smoking
accessibility_features
array of room_accessibility_feature

Accessibility features available in the room. Omitted when unknown; absence does not mean the room is inaccessible.

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
fees
array of fee
required

List of fees

Show fields
Array of fee · List of fees
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
fees
array of fee
required

List of fees

Show fields
Array of fee · List of fees
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
occupancy
occupancy

Number of guests that want to stay in the lodging

Show fields
adults
integer
required

Number of adult guests

Range ≥ 1, ≤ 24 · Example 2
children
array of integer
required

List of children guest ages

pets
integer

Number of pets accompanying the guests

Range ≥ 0, ≤ 10 · Example 1
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
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
creation_datetime
string · date-time
required

The creation datetime of the booking in UTC of format ISO 8601 date-time string.

Example 2017-08-17T13:31:15.523Z
lodging_details
lodging_details

Lodging-type-specific details. Replaces the deprecated additional_information field. Only one of the sub-fields will be present per booking, corresponding to the lodging type.

Show fields
homes
homes_additional_information

Additional information about a homes lodging

Show fields
type
string enum
required

Discriminator value for homes lodging additional information

Values homes · Example homes
host_contact_details
array of contact_detail
required

List of property contact details

Show fields
Array of contact_detail · List of property contact details
contact_type
string enum
required

Type of contact (primary, emergency, or unspecified)

Values primaryemergencyunspecified · Example primary
name
string

Display name of the contact person

Example Jane Doe
phone_number
string

Phone number. Preferred key. For backward compatibility, the API accepts and returns the deprecated key phoneNumber (camelCase) as well; clients may use either.

Example 123-456-7890
email
string

Email address for the contact

Example abcd@xyz.com
hotels
hotels_additional_information

Additional information about a hotel booking

Show fields
type
string enum
required

Discriminator value for hotel lodging additional information

Values hotels · Example hotels
hotel_confirmation_number
string

Optional. The unique reservation identifier generated by the hotel's Property Management System (PMS) or Central Reservation System (CRS). When present, this is the primary reference number the guest should provide to the front desk upon check-in. This field may be omitted for some suppliers or bookings (for example, in pre-confirmation/on-request states or when the hotel has not yet issued a confirmation number), so clients MUST NOT assume it will always be returned.

Example MAR-889900X
additional_information
additional_information · one of 1

Additional information included about the hotel that depends on the lodging type

Show fields

Additional information included about the hotel that depends on the lodging type

Exactly one of the following, selected by type:
homes (homes_additional_information) homes_additional_information
type
string enum
required

Discriminator value for homes lodging additional information

Values homes · Example homes
host_contact_details
array of contact_detail
required

List of property contact details

Show fields
Array of contact_detail · List of property contact details
contact_type
string enum
required

Type of contact (primary, emergency, or unspecified)

Values primaryemergencyunspecified · Example primary
name
string

Display name of the contact person

Example Jane Doe
phone_number
string

Phone number. Preferred key. For backward compatibility, the API accepts and returns the deprecated key phoneNumber (camelCase) as well; clients may use either.

Example 123-456-7890
email
string

Email address for the contact

Example abcd@xyz.com
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
partner_reference_id
string

An client determined id for the given booking for potential reconciliation

Used by

PUT/api/lodging/v1/getOrderRetrieve a booking order
Example
{
  "booking_order": {
    "order_id": "L2J982VT3J28",
    "lodging_id": "123e4567-e89b-12d3-a456-426614174000",
    "check_in_date": "2022-01-01",
    "check_out_date": "2022-01-01",
    "order_status": {
      "type": "cancelled",
      "cancellation_info": {
        "type": "hotel",
        "cancellation_datetime": "2025-02-17T18:31:15.523Z"
      }
    },
    "booked_rooms": [
      {
        "room_info": {
          "room_id": "123456",
          "name": "Standard King room",
          "max_adults": 2,
          "max_children": 0,
          "size_sq_ft": 350,
          "bed_configurations": [
            {
              "quantity": 1,
              "bed_type": "king"
            }
          ],
          "room_amenities": [
            {
              "amenity_type": "free_wifi",
              "name": "Free WiFi"
            },
            {
              "amenity_type": "hair_dryer",
              "name": "Hair dryer"
            }
          ],
          "views": [
            "city",
            "partial_ocean"
          ],
          "smoking_policy": "non_smoking",
          "accessibility_features": [
            "wheelchair_accessible",
            "roll_in_shower"
          ],
          "media": [
            {
              "type": "image",
              "url": "https://example.com/images/standard-king-room.jpg",
              "links": {
                "1440px": {
                  "url": "https://i.travelapi.com/hotels/1000000/20000/15300/15237/bef1b976_t.jpg"
                }
              },
              "category": "guest_room",
              "caption": "Spacious king room with city view",
              "is_primary": true,
              "media_type": "exact_room"
            },
            {
              "type": "video",
              "url": "https://example.com/videos/standard-king-room-tour.mp4",
              "thumbnail_url": "https://example.com/videos/standard-king-room-tour-thumbnail.jpg",
              "media_type": "exact_room"
            }
          ]
        },
        "occupancy": {
          "adults": 2,
          "children": [
            3,
            5,
            9
          ],
          "pets": 1
        },
        "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"
            }
          }
        }
      }
    ],
    "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"
          }
        }
      ]
    },
    "creation_datetime": "2017-08-17T13:31:15.523Z",
    "lodging_details": {
      "homes": {
        "type": "homes",
        "host_contact_details": [
          {
            "contact_type": "primary",
            "name": "Jane Doe",
            "phone_number": "123-456-7890",
            "email": "abcd@xyz.com"
          },
          {
            "contact_type": "emergency",
            "name": "John Doe",
            "phone_number": "123-456-7890",
            "email": "abcd@xyz.com"
          }
        ]
      },
      "hotels": {
        "type": "hotels",
        "hotel_confirmation_number": "MAR-889900X"
      }
    },
    "additional_information": {
      "type": "homes",
      "host_contact_details": [
        {
          "contact_type": "primary",
          "name": "Jane Doe",
          "phone_number": "123-456-7890",
          "email": "abcd@xyz.com"
        },
        {
          "contact_type": "emergency",
          "name": "John Doe",
          "phone_number": "123-456-7890",
          "email": "abcd@xyz.com"
        }
      ]
    }
  },
  "response_id": "123e4567-e89b-12d3-a456-426614174000",
  "partner_reference_id": "string"
}