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
tokenstring
required
Opaque token from an offerPrice response
Length ≥ 1, ≤ 1024 · Example
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9paymentpayment · 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
typestring enum
required
Payment method type discriminator
Values
balancespreedly (spreedly_payment) spreedly_payment
typestring enum
required
Payment method type discriminator
Values
spreedlytokenstring
required
Payment method token issued by the Spreedly vault.
Length ≥ 1
servicesarray of selected_service
Ancillary services to include in the booking
Show fields
Array of selected_service · Ancillary services to include in the booking
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 2Used by
Example
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"payment": {
"type": "balance"
},
"services": [
{
"id": "svc_bag_checked",
"passenger_ids": [
"pas_0"
],
"segment_ids": [
"string"
],
"quantity": 2
}
]
}