Skip to main content
POST
Select ancillaries (baggage, seats, meals) for a trip item
Add baggage, seat selections, or meals to a flight item before checkout. Use it after the trip has a flight item and travelers attached but before checkout, for example when a user requests “two checked bags and a window seat for the outbound leg”. Selections use full-replacement semantics: include everything the user wants kept on the trip in a single call.

Authorizations

X-API-Key
string
header
required

Body

application/json
trip_id
string
required
item_id
string
required
selections
object[]
required
intent
object

Response

Updated ancillary selection

trip_id
string
Example:

"trip_1048576"

item_id
string

The trip item the selection applied to — items[].item_id on the trip.

Example:

"itm_4b91c2"

quoted_item_id
number
deprecated

Deprecated: use item_id instead. An internal number for the priced item.

Example:

8810231

selected_ancillaries
object[]
total_with_ancillaries
object

The item total including the selected ancillaries, in minor units: amount is an integer to divide by 10 ** decimal_places (e.g. {amount: 23959, currency: "EUR", decimal_places: 2} is EUR 239.59). display is the same figure to show.