API reference

HTS APIs

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

Schema

selected_service

A service selected for purchase in a booking

Fields

id
string
required

The service identifier to purchase

Example svc_bag_checked
passenger_ids
array of string
required

Which passengers to attach this service to

segment_ids
array of string

Which segments to attach this service to. When absent, applies to the entire journey.

quantity
integer

Number of units to purchase per passenger (default 1). Mainly useful for bags with tiered pricing.

Default 1 · Range ≥ 1 · Example 2
Example
{
  "id": "svc_bag_checked",
  "passenger_ids": [
    "pas_0"
  ],
  "segment_ids": [
    "string"
  ],
  "quantity": 2
}