Skip to main content
POST
/
v1
/
select_ancillaries
Select ancillaries (baggage, seats, meals) for a trip item
curl --request POST \
  --url https://api.example.com/v1/select_ancillaries \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "trip_id": "trip_1048576",
  "item_id": "itm_4b91c2",
  "selections": [
    {
      "offer_id": "anc_bag_20kg",
      "category": "baggage",
      "quantity": 1
    }
  ]
}
'
{
  "trip_id": "trip_1048576",
  "quoted_item_id": 8810231,
  "selected_ancillaries": [
    null
  ],
  "total_with_ancillaries": {
    "amount": 318.4,
    "value": 123,
    "currency": "USD",
    "decimal_places": 2
  }
}
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 book, 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

Response

Updated ancillary selection

trip_id
string
Example:

"trip_1048576"

quoted_item_id
number
Example:

8810231

selected_ancillaries
null[]
total_with_ancillaries
object