Skip to main content
POST
Create and manage a trip — add or remove items, set travelers, select ancillaries
Assemble and edit a trip before sending it to checkout. Use it to add a flight or hotel offer, set traveler details, swap one item for another, or attach ancillaries like bags and seats. Flights and hotels can sit side by side in the same trip and settle through a single checkout. Unified trip management endpoint. In a single call you can add_item (by trip_item_token), remove_item (by item_id), and upsert_travelers (travelers + contact). Omit trip_id to create a new trip; include it to update an existing one. Returns the resulting trip state. Ancillaries are selected on a separate endpoint. See select-ancillaries.

Authorizations

X-API-Key
string
header
required

Body

application/json
trip_id
string
add_item
object
remove_item
object
upsert_travelers
object
intent
object

Response

The trip

trip_id
string
required
Example:

"trip_1048576"

status
enum<string>

Where the trip is in its lifecycle. expired is the 24-hour lapse: it is evaluated LAZILY, on the read that first observes it, so this call is where a dead trip becomes visible. Once a trip is expired, adding items, setting travelers and checkout are refused with TRIP_EXPIRED; any other state that refuses a write answers TRIP_STATE_CONFLICT and names the state here. Start a new trip — a lapsed one cannot be revived.

Available options:
draft,
quoting,
quoted,
fulfillment_prepared,
fulfilling,
fulfilled,
partially_fulfilled,
failed,
cancelled,
expired
Example:

"draft"

actions_performed
string[]
Example:
items
object[]
travelers
object[]
contact
object
totals
object
Example: