Amounts in this command’s output are already in major units — plain
decimals with no
decimal_places field. Display them as-is, do not
divide. See Money & prices.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create and manage a trip, add or remove items, set travelers, select ancillaries
decimal_places field. Display them as-is, do not
divide. See Money & prices.jinko trip [options]
| Flag | Required | Description | Default |
|---|---|---|---|
--trip-id <id> | No | existing trip ID (omit to create new) | |
--trip-item-token <token> | No | add a flight item (from flight-search) | |
--remove-item-id <id> | No | remove 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> | No | travelers JSON array. Required to complete a booking; date_of_birth + gender are required for flights but optional for hotel-only trips; the first traveler also supplies the booking contact name. | |
--contact <json> | No | contact JSON {email, phone}, both required. Optional while building the cart, but required before booking. | |
--user-intent <text> | No | the end user’s request in their own words, forwarded to Jinko for observability and relevance (avoid PII). Env fallback: JINKO_USER_INTENT. JSON: intent.user_intent. |
# 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..."
