Skip to main content
POST
Checkout a trip — returns a checkout URL the user opens to pay, plus the Shared Payment Token params an agent can use to pay programmatically
Starts pricing when no valid quote exists and waits server-side for up to about 55 seconds. If the quote is still being priced, answers 503 QUOTE_PENDING with Retry-After; calling checkout again picks up the same quote. A successful response contains the quoted prices and checkout details; no GET trip polling is required first. An offer that ran out may be found again and priced, and price_changed on the item reports a moved price. 410 OFFER_EXPIRED means the product can no longer be found, even when no quote has ever succeeded. Search again and replace the item. QUOTE_EXPIRED instead describes an established quote that can no longer be used: its deadline passed, or the trip’s travelers changed after it was priced (reason: travelers_changed). Call checkout again to re-quote. status: partial means some items could not be priced: each carries quote_status: failed, and the trip cannot be paid until they are replaced or removed. For card payments, collector says who charges the card, and submit_url is the payment hostname endpoint to POST the card to; cards are refused on this API.

Authorizations

X-API-Key
string
header
required

Body

application/json
trip_id
string
required
Example:

"trip_1048576"

client_reference_id
string

Your own reference for this booking, such as your user, order or session id: 1 to 200 printable ASCII characters. Every webhook event about the booking carries it back unchanged as client_reference_id, so you can route the event in your own systems. Omit it on a later checkout to keep the value already sent; send another value to replace it until payment starts. Once payment has started the value is fixed: 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, with or without this field. Do not put personal or payment data in it.

Required string length: 1 - 200
Pattern: ^[\x20-\x7E]+$
Example:

"user_8412"

intent
object

Response

Checkout result: the priced trip and how to pay for it

quote_id
string
required

The quote this checkout priced. Pass it as quote_id to the typed agent payment, or to the MCP submit_agent_payment, to pay exactly this quote. A quote whose checkout answered status: partial cannot be paid: replace or remove the failed items and check out again.

Example:

"2097152"

quoted_cart_id
integer
required
deprecated

Deprecated: use quote_id instead. The same quote as an integer.

accepted_payment_types
object[]
required
session_id
string

The hosted payment page session behind checkout_url. Nothing on this API takes it; send the traveler to checkout_url.

Example:

"cs_1048576"

checkout_url
string

The Jinko page where the traveler pays. Absent when status is partial: the trip cannot be paid until the items that could not be priced are replaced or removed.

Example:

"https://app.gojinko.com/checkout?t=<signed token>"

status
string

Checkout state. ready — every item is priced and the trip can be paid. partial — some items could not be priced: each of them carries quote_status: failed and, when the cause is known, a failure_reason. The trip cannot be paid: the response carries no checkout_url, no agent_spt_params, no accepted_payment_types entries and no expires_at, and a payment is refused with 410 QUOTE_EXPIRED and reason: partial_quote. Replace or remove the failed items, then call checkout again; after provider_error, calling checkout again on the unchanged trip prices the item again. A trip that is still pricing, or whose pricing failed entirely, is answered with an error instead of a status. fulfilling — the trip holds only free products (special meals and assistance requested after ticketing) and is being fulfilled now: there is no checkout_url, nothing to pay, and no expires_at.

Example:

"ready"

expires_at
string

When the quote behind this checkout lapses (RFC 3339). At most one hour from the call, and earlier when an offer in the trip carries a shorter deadline of its own (some airline fares last twenty minutes from their search). It is NOT a price hold: the supplier guarantees neither the price nor availability for the window, so an offer can lapse inside it. Nor is it the lifetime of checkout_url, which works for 7 days, or until 48 hours after the trip's booking ended when that comes first; POST /v1/checkout on the same trip gives a new link. With payment_stays_open, a payment is taken after this instant and the price and the product are checked again after it. If both held, the booking goes ahead. If the price dropped, the lower price is booked and charged, and price_change on booking.completed says so. If the price rose or the product is gone, nothing is booked or charged, and booking.failed says why. Without it, a payment after this instant is refused: POST /v1/agent_payment/submit answers 410 QUOTE_EXPIRED and no payment object is created. To recover, call POST /v1/checkout again on the same trip, and pay against the new expires_at. The hosted page then shows the price as expired, and the customer has to be sent a fresh checkout. A quote can also stop being payable before this instant if the trip's travelers change after pricing: payment is then refused with 410 QUOTE_EXPIRED and reason: travelers_changed. The same holds when an item is added to the trip or removed from it after pricing (reason: items_changed). Absent when status is partial: that trip cannot be paid. Absent on a trip that holds only free products: it is fulfilled at checkout and has nothing to pay.

Example:

"2026-06-01T12:39:56Z"

payment_stays_open
boolean

True when a payment of any type is still taken after expires_at, because the price and the product are checked after payment. Absent means a payment after expires_at is refused with 410 QUOTE_EXPIRED.

Example:

true

payment_type
enum<string>

Which payment rail this trip is on. None of the values means payment has been collected: checkout only prices the trip, and you must still act to get it paid. intent — nothing has been charged or authorized yet; this is what a trip created through this API returns. Send the traveler to checkout_url to pay on the Jinko checkout page, or pay programmatically with POST /v1/agent_payment/submit using a type listed in accepted_payment_types. checkout — a payment page is already open for this trip; send the traveler to checkout_url to complete it. agent — a programmatic payment was already submitted for this quote through POST /v1/agent_payment/submit; check its outcome before submitting again. To choose how to pay, read accepted_payment_types and agent_spt_params, not this field. none — the trip holds only free products and is fulfilled at checkout; nothing is paid.

Available options:
intent,
checkout,
agent,
none
Example:

"intent"

total_amount
object
deprecated

Deprecated: use total_amount_money instead. The trip total in major currency units.

total_amount_money
object

The trip total the checkout is priced at.

items
object[]
agent_spt_params
object

Parameters to scope a Shared Payment Token to, so an agent can pay programmatically instead of opening checkout_url: mint the token against these, then call POST /v1/agent_payment/submit with trip_id and the token. The currency is the trip currency: USD or EUR, depending on the partner's Stripe account binding. Absent when the partner does not accept SPT for this trip currency; use the returned accepted_payment_types to select an available payment method, or pay through checkout_url. Also absent, together with checkout_url, when the checkout answered status: partial: that trip cannot be paid until the failed items are replaced or removed and checkout is called again. The human checkout path ignores this object.