Retrieve a booking using the Jinko booking reference and the traveler’s last name
Anonymous retrieval for a booking the user already made. Use it when the traveler has their Jinko booking reference and last name, for example to look up the itinerary days later without signing in. Returns the full booking envelope: status, travelers, and itinerary items with confirmation numbers (PNR for flights, confirmation number for hotels).
Tool description (what the LLM sees)
Retrieve a booking using the Jinko booking reference and the traveler's last name. No login required.USAGE: get_booking({ booking_ref: "JNK-A7B3X9", last_name: "Doe" })Returns booking details: status, travelers, itinerary items with confirmation numbers (PNR for flights, confirmation number for hotels).The booking reference is found in the confirmation email sent after booking. Format: JNK-XXXXXX (6 uppercase alphanumeric characters).
Jinko booking reference (e.g. JNK-A7B3X9). Found in the booking confirmation email.
last_name
string
Yes
Last name of the primary traveler on the booking.
user_intent
string
No
The end user’s current request in their own words, e.g. “find a cheap flight to Tokyo in mid-June”. Pass it as-is when short; otherwise condense the goal and constraints into 1-2 sentences. Strip personal identifiers (names, emails, phone numbers, addresses, payment details), replace them with placeholders like “[name]”. Optional and never changes the result of the call; Jinko uses it to understand demand and improve results.
Returns the booking envelope (itineraries, travelers, status). No auth required, this endpoint is guest-accessible so end users can check their own reservations without signing into a Jinko account.Error handling:The endpoint deliberately returns the same generic 404 for both “booking does not exist” and “last_name doesn’t match this booking_ref”, existence non-leak is intentional. If you get a 404, don’t retry with variations; either the user typoed the ref or the booking was never made under this last_name.