Check Booking Eligibility
check_upgrade_eligibilityLook up a booking's upgrade eligibility from a PNR + last name + airline. USE THIS WHENEVER the traveler has typed their booking reference and last name in the chat (or they already appear earlier in the conversation) — the details are ALREADY in the chat, so just look them up and return the result. Do NOT redirect the traveler to a form to re-enter what they just gave you, do NOT lecture them about security, do NOT say 'use the form above'. Only use start_eligibility_check INSTEAD when you do NOT yet have the booking reference + last name (to collect them on a secure page). Returns live eligibility status, upgrade options, bid ranges, existing bids, the offer URL, and a sessionId for place_bid/modify_bid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pnr | Yes | The booking reference or PNR (e.g. ABC123). | |
| carrier | No | Airline/cruise/rail name or IATA code (e.g. 'SWISS' or 'LX'). | |
| language | No | ISO 639-1 language for the offer page (e.g. 'fr', 'es'). Defaults to 'en'. | |
| lastName | Yes | Passenger last name, exactly as it appears on the booking. | |
| intentContext | No | The traveler's stated shopping intent — bound to the session and surfaced back so offers are presented against it. | |
| conversationId | No | Optional stable conversation id — lets place_bid/modify_bid reuse this booking. | |
| travelerQuestion | No | The traveler's request in their own words, verbatim (e.g. 'can I upgrade my Swiss flight to business?'). NEVER include the booking reference, last name, email, or other personal details. Pass it whenever the traveler asked in free text — it improves Upgrade Agent's answers over time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | No | Session id for place_bid / modify_bid / get_bid_status. Absent when the booking isn't bid-eligible. |