API reference

HTS APIs

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

Schema

book_response

Response payload confirming the lodging reservation with detailed booking information.

Fields

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
order_id
string
required

Unique Hopper-generated order id corresponding to the booking order

Example L2J982VT3J28
booking_warnings
array of booking_warning

Non-fatal issues encountered while creating this booking. The reservation is confirmed regardless; an empty or absent list means no issues. Warnings describe what happened at booking time and are not repeated on the order.

Show fields
Array of booking_warning · Non-fatal issues encountered while creating this booking. The reservation is confirmed regardless; an empty or absent list means no issues. Warnings describe what happened at booking time and are not repeated on the order.
type
string enum
required

Which warning this is, and therefore which sub-field below is populated.

  • loyalty_not_applied: a loyalty membership supplied on the book request was rejected.
Values loyalty_not_applied · Example loyalty_not_applied
loyalty_not_applied
loyalty_not_applied

A loyalty membership supplied on the book request was rejected. The reservation is confirmed; the stay will not be credited to that membership.

This warning is only emitted where the outcome is known. Pass-through is best effort: most supply sources never confirm either way, and silence produces no warning — so the absence of one means we sent what we could and have nothing to report, not that the stay was credited.

Show fields
reason
string enum
required

Why the membership was rejected. This is a non-exhaustive list of enum values, which will be extended in the future.

  • not_supported_for_rate: the booking path for this rate cannot transmit a loyalty membership. Known in advance when loyalty.loyalty_transmission on the quote was ineligible; where it was unknown this may be the first confirmation.
  • id_not_found: the membership number was not recognised.
  • invalid_format: the membership number was malformed for this program.
  • unspecified: rejected for a reason that does not map to the values above.
Values not_supported_for_rateid_not_foundinvalid_formatunspecified · Example id_not_found

Used by

POST/api/lodging/v1/bookBook a lodging
Example
{
  "response_id": "123e4567-e89b-12d3-a456-426614174000",
  "order_id": "L2J982VT3J28",
  "booking_warnings": [
    {
      "type": "loyalty_not_applied",
      "loyalty_not_applied": {
        "reason": "id_not_found"
      }
    }
  ]
}