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.
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’).
400 and Jinko stores nothing:
- REST API and CLI:
BAD_REQUEST, witherror.fieldnaming the traveler and the field, for exampleupsert_travelers.travelers[0].last_name. For a hotel room guest it readshotel_room_guests.<item_id>[0].first_name. - MCP: the
triptool answerserror_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.
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.- Search for live travel offers.
- Add the selected offers to the trip.
- Add traveler information and ancillaries.
- Create one checkout and collect one payment.
payment_type: "none" and status: "fulfilling". There is nothing to pay. See After ticketing.
Your own reference for the booking
Sendclient_reference_id with checkout to tie the booking to a user, order or session in your own systems:
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}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.