Skip to main content
Build one trip with every part of the journey, then let the traveler pay once. A trip holds the selected travel items, traveler information, and ancillaries until checkout.

How a trip works

Add a flight, hotel, car rental, or any combination of the three. Every selected item stays in the same trip and contributes to the combined total.

What goes in the trip

  1. Travel items: the flight fares, hotel rates, and car rental offers selected by the traveler.
  2. Traveler information: the passenger, guest, driver, and booking contact details required by the selected items.
  3. Ancillaries: the seats, bags, and other supported extras attached to the relevant item.
Special meal and assistance requests are free ancillaries of the flight item. Select them like bags. They add nothing to the total. See Special meals and assistance. The trip keeps this information together. You do not need to create a separate trip or checkout for each travel product.

Traveler names

Send every name as it is printed on the passport, in Latin letters. On every trip (flights, hotels and car rentals), each traveler, hotel room guest and contact name can hold:
  • Latin letters, with or without accents: é, ñ, ü, ș, and letters such as ß, æ, ø and ł.
  • Spaces, hyphens and apostrophes (' or ’).
Each name needs at least one letter. Any other character is refused: other scripts (Hebrew, Cyrillic, Arabic, Greek, Chinese and so on), digits, emoji and other punctuation. Hotels and airlines cannot take those names. A refused name gets a 400 and Jinko stores nothing:
  • REST API and CLI: BAD_REQUEST, with error.field naming the traveler and the field, for example upsert_travelers.travelers[0].last_name. For a hotel room guest it reads hotel_room_guests.<item_id>[0].first_name.
  • MCP: the trip tool answers error_code: "INVALID_TRAVELER_NAME" and names the field to correct.
  • Checkout: a trip that already holds such a name is refused the same way, before any payment.
Jinko does not transliterate names. Ask the traveler for the Latin spelling printed on their passport, then send upsert_travelers again. Airlines and hotels receive accented letters as plain A to Z, the way airlines print names on tickets: José García reaches them as Jose Garcia. Your trip and booking keep the name exactly as you sent it. Flights add three limits: a last name of at most 29 characters, at most 63 characters for first, middle and last name together, and no two travelers with the same full name.

One checkout, one payment

When the trip is ready, Jinko checks out every item together. The traveler sees one combined total and pays once for the full trip. See Payments for the available payment paths.
  1. Search for live travel offers.
  2. Add the selected offers to the trip.
  3. Add traveler information and ancillaries.
  4. Create one checkout and collect one payment.
A special request added after ticketing goes in a trip of its own. Its checkout returns payment_type: "none" and status: "fulfilling". There is nothing to pay. See After ticketing.

Your own reference for the booking

Send client_reference_id with checkout to tie the booking to a user, order or session in your own systems:
Every webhook event about the booking carries the same value back, unchanged, so you can route a cancellation or a refund to the right user without looking the booking up. The value is 1 to 200 printable ASCII characters; anything else is refused with 422 BAD_REQUEST. Do not put personal or payment data in it. You can change the value until payment starts: a later checkout with another value replaces it, and a checkout without the field keeps the value already sent. Once payment has started, the value is fixed: a checkout that sends a different value, or a first value, is refused with 409 TRIP_STATE_CONFLICT. While the payment is still in progress, a checkout that sends the same value again is accepted, so you can send it on every checkout call. Once the booking is complete, checkout refuses any call on that trip with 409 TRIP_STATE_CONFLICT, as before. Responses do not return the value; only webhook events do.

When the trip changes after checkout

A quote prices the items the trip held when checkout ran. Adding an item to the trip or removing one afterwards leaves that quote unpayable:
  • GET /v1/trip/{trip_id} shows quote.invalid_reason: "items_changed".
  • A payment of that quote is refused with 410 QUOTE_EXPIRED and reason: "items_changed", and nothing is charged.
To continue, call checkout again. It prices the items the trip holds now and returns a new quote_id and a new total. Show the traveler the new total and get their approval before paying the new quote. A change of travelers after checkout is reported the same way, with travelers_changed.

When an item cannot be priced

Checkout prices every item in the trip. When some items are priced and others are not, checkout answers status: "partial" instead of "ready":
  • Each item carries quote_status: completed when it is priced, failed when it could not be priced. A failed item has no price and is not in the total. When the cause is known it carries failure_reason: offer_expired or offer_unavailable (search again and replace the item), or provider_error (a technical failure; call checkout again).
  • The trip cannot be paid. The response carries no checkout_url, no agent_spt_params, no accepted_payment_types entries and no expires_at. A payment of that quote is refused with 410 QUOTE_EXPIRED and reason: "partial_quote", and nothing is charged.
  • GET /v1/trip/{trip_id} shows quote.status: "partial" and the same quote_status and failure_reason on each item.
To continue, remove the failed items, or search again and add a new offer in their place, then call checkout again. After provider_error, calling checkout again on the unchanged trip prices the item again. When no item can be priced, checkout answers with an error instead, such as 410 OFFER_EXPIRED. See Errors.