Skip to main content
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.

Usage

jinko trip [options]

Options

FlagRequiredDescriptionDefault
--trip-id <id>Noexisting trip ID (omit to create new)
--trip-item-token <token>Noadd a flight item (from flight-search)
--remove-item-id <id>Noremove an existing item by item_id (from a prior trip response items[].item_id). Requires —trip-id. Can be combined with —trip-item-token to swap an item in one call.
--travelers <json>Notravelers JSON array. Required to complete a booking; the first traveler also supplies the booking contact name.
--contact <json>Nocontact JSON {email, phone} — both required. Optional while building the cart, but required before booking.

Examples

# Create a trip with an item + travelers in one call
jinko trip \
  --trip-item-token "$TRIP_ITEM_TOKEN" \
  --travelers '[{"first_name":"Jane","last_name":"Doe","date_of_birth":"1990-01-15","gender":"FEMALE","passenger_type":"ADULT","frequent_flyer":{"airline":"LH","number":"992100100"}}]' \
  --contact '{"email":"jane@example.com","phone":"+33612345678"}'

# Add another item to an existing trip
jinko trip --trip-id 42 --trip-item-token "htl_def..."