Booking flow
Capabilities
AI search
Find destinations, better dates, and the right time to book.
Live search
Confirm accurate live prices for the traveler’s exact request.
Book
Add travelers, preferences, extras, loyalty details, and payment.
Manage
Support voluntary changes, cancellations, and refunds.
Build the flow
- AI search: help the traveler choose a destination, find dates, or decide when to book.
- Live search: confirm accurate live prices for the traveler’s exact request.
- Build trip: add the selected fare, travelers, contact details, preferences, and extras.
- Payment: create checkout, collect payment, and follow ticketing.
- Manage: retrieve the booking and handle changes and cancellations.
Test flights in sandbox
Use Jinko Airline (ZZ) to test the complete flight flow in sandbox. It is the only sandbox airline designed to support search, booking, ticketing, extra bags, refunds, voids, and exchanges end to end. It sells no seat selection: test seats on a real airline (see Seats).
Jinko Airline behaves predictably and each flight number triggers a documented success or failure scenario. Use flight ZZ101 for the normal flow. Search one of its supported routes, such as JFK to LHR, from tomorrow onwards and filter on carrier ZZ.
Real airlines can also appear in sandbox, but their test inventory is limited and can change without notice. Keep automated end-to-end tests on Jinko Airline, then use production to validate real airline content.
See MCP sandbox setup and Testing in sandbox for routes and scenarios.
AI search
Jinko provides a set of AI search tools that help the agent reason through and answer complex questions from its customers. Destination and date tools use cached fare data to explore many options quickly, before the traveler has chosen an exact flight.Find a destination
find_destination answers open-ended questions about where to go. It starts from one or more departure airports, then compares destinations by price within the traveler’s dates, trip length, cabin, stop preference, and budget.
Example questions
- “Where can I go from Paris for a long weekend under €250?”
- “Find a warm destination from London in March, direct flights only.”
- “What are the cheapest business-class destinations from New York next month?”
Find the best dates
find_dates is for travelers who know the route but can move their dates. It returns a varied shortlist of the cheapest date combinations across their travel window, instead of clustering every result around the same few days.
Example questions
- “When is the cheapest time to fly from Paris to New York in June?”
- “Find the best weekends for a four-day trip from London to Lisbon.”
- “Show me a few affordable dates for one week in Tokyo.”
Know when to book
flight_price_advice compares the current fare with typical prices for similar flights. It forecasts the price one day and three days ahead, estimates the probability of an increase, decrease, or no change, and recommends whether to buy now or wait.
Example questions
- “Is this a good price for this flight?”
- “Should I book now or wait?”
- “How likely is this fare to increase over the next three days?”
Price advice is available when the request has enough statistical coverage. Initial numeric coverage focuses on one adult, nonstop flights, and USD fares.
Destination and date results are cached fares for one adult. Use them to compare possibilities and build a shortlist, then run
flight_search with the full passenger counts to confirm the party’s live price and availability before quoting or booking.Live search
Turn the traveler’s exact request into live flight options.flight_search uses live supplier pricing rather than the AI search cache. It returns accurate prices and availability for the exact search at that moment, ready to continue into booking.
Jinko can combine route, dates, passengers, cabin, budget, airline, airport, schedule, baggage, fare conditions, and connection preferences in one search. The result is a set of live, bookable fares that respect those constraints.
Search preferences
- Exact dates, one-way trips, round trips, adults, children, and lap infants
- Economy, premium economy, business, or first class
- Direct flights or a maximum number of stops
- Preferred or excluded airlines
- Departure and arrival time windows for each direction
- Minimum and maximum connection times
- Preferred or excluded connection airports
- Same-airline itineraries and no cross-city airport changes
- Maximum journey time and total trip budget
- Refundable or changeable fares
- Fares that include checked baggage
- Nearby or alternate airports
- “Find two seats from Paris to New York next Friday, returning Sunday evening, direct only.”
- “I need a refundable business-class flight that arrives before 3 PM.”
- “Show me flights with one checked bag, no Heathrow connection, and no layover longer than two hours.”
- “Compare the cheapest option with the best schedule and explain the tradeoff.”
Book
Build the booking around the traveler, not just the flight.Travelers and contact details
Add the passenger information required for ticketing and one contact for booking updates. Jinko supports adults, children, and infants traveling on an adult’s lap.Fare and baggage
Let the traveler compare fare families and understand what each one includes. Before payment, Jinko can show cabin and checked baggage allowances and add extra bags when the airline offers them. See Bags for included allowances, selection, and booking outcomes.Seats
Show available seats by traveler and flight segment. The traveler can choose a seat number based on the listed characteristics, such as window, aisle, or extra legroom. The seat map can load after the trip is priced: a seat offer withseat_map_status: "pending" has no seats yet, so read the trip again until it is "ready".
In sandbox, test seats on a real airline: Jinko Airline sells no seat selection. See Testing in sandbox.
See Seats for the seat map page, selection flow, confirmation, charges, and refunds.
Meals
When the airline sells meals for the selected flight, the catalog lists them withtype: "meal", per traveler and per flight segment. Select them like bags. See Testing in sandbox for the meals of the test airline.
Special meals and assistance
The traveler can ask the airline for a special meal or for assistance, such as a wheelchair. The request is free. The airline accepts or refuses it after booking, and the flight is booked either way.Find the offers
Read the flight item’savailable_ancillaries on the trip or call GET /v1/trip/{trip_id}/ancillaries. Look alongside bags and seats for offers with an ssr_code, the airline’s standard request code. Show the traveler the display_label. Availability depends on the airline and the fare. If no request is listed, you cannot make one through Jinko for that flight.
Each offer is one request on one flight segment, and each selection of it is for one traveler. Its type is meal or assistance. A request is free: it has neither price_per_unit nor price_per_unit_money. If the airline sells a meal with the same code on that segment, only the paid meal appears.
applicable_pax_types before showing a request. If absent, any traveler can select it. It uses the same values as the trip’s traveler_type. The child meal lists ["child"]. The baby meal lists ["infant"], for an infant on a lap or in a seat.
Select a request
CallPOST /v1/select_ancillaries with the offer’s offer_id, the required traveler_ref, and quantity 1. You can omit segment_ref_ids. If you send it, use the offer’s segment. The call replaces the item’s whole selection. Include every request, bag, seat, and paid meal you want to keep.
You can select a request only once per traveler and segment. Each traveler can have one special meal per segment and cannot combine it with a paid meal there. A duplicate or conflicting selection returns 400 BAD_REQUEST with error.field naming the selection. An offer outside the item’s catalog points to the offer ID, for example selections[0].offer_id. An ineligible traveler points to selections[0].traveler_ref.
Before booking, the selected line has ssr_code and display_label and no status. The request adds nothing to total_with_ancillaries or the checkout total.
Read the airline’s answer
An airline that refuses a request does not stop the booking: the flight is still booked and ticketed, and that request readsfailed. Read get_booking and find the request in the flight item’s booked_ancillaries. Each booked request always has a status: it reads pending until the airline answers, then confirmed or failed. The airline often answers while the booking is made, so get_booking can show its answer at once.
pending with The airline has not answered. Contact the airline before travelling. Read get_booking for updates. No webhook event or email reports a later answer. Until the line reads confirmed, tell the traveler the request is subject to the airline’s confirmation.
After an exchange, a request on a changed flight reads failed with This request was for a flight that has changed. Ask the airline to add it to the new flight. See Special meals and assistance after an exchange.
Requests you can make
Other codes and free-text requests are unavailable through Jinko. Contact the airline for medical clearance, oxygen, a stretcher, or a powered wheelchair.
Example questions
- “Can I request a wheelchair to the aircraft door? I can climb stairs.”
- “Can I have a halal meal on both flights?”
- “Has the airline confirmed my vegan meal?”
After ticketing
Use the REST API to add a special request to a ticketed booking for a flight that has yet to depart. It is free and goes in a trip of its own:- Call
POST /v1/get_booking_ancillarieswithbooking_refandlast_name. To check one item, include itsbooked_item_id. For journeys not yet flown, each flight item’s catalog lists available requests alongside paid seats and bags: one offer per request and segment, for the whole booking. Choose the traveler it is for from the item’stravelers. Use itspba_token beforecatalog_expires_at. - Start a trip with
POST /v1/trip. Sendadd_item: {trip_item_token, traveler_ref}and omittrip_id. The trip takes its travelers and contact from the booking. You can add several requests to this trip. Keep paid seats and bags in a separate trip. Mixing them with a request in either order returns400 BAD_REQUESTwithSpecial requests are added in their own trip.anderror.fieldset toadd_item.trip_item_token. - Call
POST /v1/checkoutwith the newtrip_id. There is nothing to pay. Checkout returnsstatus: "fulfilling"andpayment_type: "none", with an emptycheckout_urland noexpires_at. Skip the payment step. - Read
get_bookingon the originalbooking_ref. Each request appears in the flight item’sbooked_ancillarieswithpurchase: "post_booking"andpurchase_booking_ref, the new trip’s booking reference. Follow itsstatusas above. The same airline checks and messages apply. No email is sent for a request added after ticketing.
traveler_ref. These answer 422 BAD_REQUEST, and nothing is added:
- a traveler of the wrong type for the request (
applicable_pax_types); - a traveler who already holds that request on the segment,
pendingorconfirmed; - a second special meal for a traveler on a segment.
RATE_LIMITED with a Retry-After header.
When the item reads purchasable: false, check not_purchasable_reason:
Other services
Other services, such as sports equipment, priority boarding, lounge access, and insurance, are not in the catalog and cannot be added to a Jinko booking.Loyalty program
Loyalty is a traveler detail, not an extra: it never appears in the ancillary catalog. Send each traveler’s membership asfrequent_flyer: {airline, number} on the traveler when you add travelers to the trip (upsert_travelers), before checkout. airline is the IATA code of the program issuer, such as LH for Lufthansa Miles & More, which can differ from the operating carrier. The trip returns it on the traveler.
Example questions
- “Book this fare for two adults and one child.”
- “Does this ticket include a checked bag? Add one if it does not.”
- “Can we sit together, with one window seat?”
- “Add a second checked bag for the child.”
- “Use my Air France loyalty number for this booking.”
Checkout and confirmation
Jinko presents the final itinerary, fare conditions, extras, and total before payment. After payment, Jinko follows fulfillment through ticketing and returns the Jinko booking reference and airline reference when available.Manage after booking
Keep supporting the traveler after the ticket is issued. Jinko starts by retrieving the booking and checking what each flight item allows. A guest can access the flow with the Jinko booking reference and the lead traveler’s last name.Voluntary exchange
When the traveler wants to change a flight, Jinko can search alternatives for one leg or the full journey, price the selected option, and show the new itinerary, fare conditions, airline fee, and exact amount to pay or receive. The change is only submitted after the traveler confirms. Example questions- “Move my return flight to Sunday evening.”
- “What would it cost to fly one day earlier?”
- “Change only the outbound flight and keep my return as booked.”
Voluntary cancellation
Before canceling, Jinko previews whether the ticket can be voided or refunded. It shows the penalty, the amount returned to the traveler, and any extras handled separately. Nothing is canceled until the traveler confirms the quoted amount. Example questions- “Can I cancel this ticket, and how much will I get back?”
- “Cancel my flight and track the refund.”
- “Was my paid seat refunded too?”
Changes made by the airline
Jinko does not detect a schedule change or a cancellation the airline makes after ticketing. No webhook reports one, andget_booking returns the itinerary as it was booked. See Webhooks.
