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
- Travel items: the flight fares, hotel rates, and car rental offers selected by the traveler.
- Traveler information: the passenger, guest, driver, and booking contact details required by the selected items.
- Ancillaries: the seats, bags, and other supported extras attached to the relevant item.
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.- Search for live travel offers.
- Add the selected offers to the trip.
- Add traveler information and ancillaries.
- 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}showsquote.invalid_reason: "items_changed".- A payment of that quote is refused with
410 QUOTE_EXPIREDandreason: "items_changed", and nothing is charged.
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 answersstatus: "partial" instead of "ready":
- Each item carries
quote_status:completedwhen it is priced,failedwhen it could not be priced. A failed item has no price and is not in the total. When the cause is known it carriesfailure_reason:offer_expiredoroffer_unavailable(search again and replace the item), orprovider_error(a technical failure; call checkout again). - The trip cannot be paid. The response carries no
checkout_url, noagent_spt_params, noaccepted_payment_typesentries and noexpires_at. A payment of that quote is refused with410 QUOTE_EXPIREDandreason: "partial_quote", and nothing is charged. GET /v1/trip/{trip_id}showsquote.status: "partial"and the samequote_statusandfailure_reasonon each item.
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.