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
idstring
required
The service identifier to purchase
Example
svc_bag_checkedpassenger_idsarray of string
required
Which passengers to attach this service to
segment_idsarray of string
Which segments to attach this service to. When absent, applies to the entire journey.
quantityinteger
Number of units to purchase per passenger (default 1). Mainly useful for bags with tiered pricing.
Default
1 · Range ≥ 1 · Example 2Example
{
"id": "svc_bag_checked",
"passenger_ids": [
"pas_0"
],
"segment_ids": [
"string"
],
"quantity": 2
}