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.
The trip keeps this information together. You do not need to create a separate trip or checkout for each travel product.

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.

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.