API reference

HTS APIs

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

Schema

order_create_request

Fields

token
string
required

Opaque token from an offerPrice response

Length ≥ 1, ≤ 1024 · Example eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
payment
payment · one of 2
required

Payment details for the booking.

Show fields

Payment details for the booking.

Exactly one of the following, selected by type:
balance (balance_payment) balance_payment
type
string enum
required

Payment method type discriminator

Values balance
spreedly (spreedly_payment) spreedly_payment
type
string enum
required

Payment method type discriminator

Values spreedly
token
string
required

Payment method token issued by the Spreedly vault.

Length ≥ 1
services
array of selected_service

Ancillary services to include in the booking

Show fields
Array of selected_service · Ancillary services to include in the booking
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

Used by

POST/orderCreateCreate a booking and trigger ticketing
Example
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
  "payment": {
    "type": "balance"
  },
  "services": [
    {
      "id": "svc_bag_checked",
      "passenger_ids": [
        "pas_0"
      ],
      "segment_ids": [
        "string"
      ],
      "quantity": 2
    }
  ]
}