Skip to main content
Inspect the current state of a trip without modifying it. Reach for it when you need to confirm what items are on the trip, verify the travelers attached to a booking, or check whether a checkout has finalized after the user paid. The response covers items, traveler details, quote status, and any booking references that have been issued.

Parameters

Examples

Inspect a trip’s lifecycle state: Use the trip_id returned by trip or checkout; "1128" below is an example.
Abbreviated structuredContent for an empty draft trip:
structuredContent.status reports whether the lookup succeeded. Read the trip’s lifecycle state from structuredContent.trip.status and, once payment starts, the booking’s progress from structuredContent.trip.booking_state, and its items and travelers from structuredContent.trip.items and structuredContent.trip.travelers. Quote, fulfillment, and booking details, when present, are also inside structuredContent.trip. Use structuredContent.trip.booking_ref (Jinko reference) for lookup and servicing. It can appear before payment completes. Within structuredContent.trip.bookings[], supplier_references lists each item’s supplier confirmations, [] when none is known. Failed items can also appear in that array, and an entry carries no outcome of its own: read structuredContent.trip.booking_state for the outcome.