How it works
- The agent builds the trip and receives its
trip_id. - The agent calls
checkout(orPOST /v1/checkout) with thattrip_id. - Checkout returns a
checkout_url. - The agent sends or opens the link for the traveler.
- The traveler reviews the trip and pays on the hosted page.
booking_ref.
After the traveler pays
Jinko starts the booking as soon as the payment succeeds. You do not call anything to confirm the payment. Read the trip (get_trip, or GET /v1/trip/{trip_id}) to follow booking_state and to get the Jinko booking reference booking_ref once it exists.
Keep the link current
Send the traveler thecheckout_url from the latest checkout. If the travelers or the selected ancillaries change, call checkout again: it prices a new quote and returns a new checkout_url for it.