Tool description (what the LLM sees)
Tool description (what the LLM sees)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | enum ("shop" | "price" | "commit" | "status") | Yes | Action to perform: “shop” to browse exchange alternatives, “price” to get exact pricing for an offer, “commit” to execute the exchange, “status” to poll exchange progress |
booking_ref | string | Yes | 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. |
order_id | string | No | Provider order ID. Optional — provided only by authenticated DevPlatform callers who already resolved it. |
provider | string | No | Provider code (e.g., “travelfusion”, “sabre”). Usually auto-detected from the booking. |
ticket_numbers | array<string> | No | Specific ticket numbers to exchange (for partial exchanges). Omit for full booking. |
offer_id | string | No | Exchange offer ID returned from a previous shop action (canonical name). Required for price and commit actions. Preferred over exchange_offer_id. |
exchange_offer_id | string | No | Deprecated alias for offer_id. Use offer_id instead. |
session_reference | string | No | Session reference returned from a previous price action. Required for commit action. |
preferred_departure_date | string | No | Preferred departure date for the new flight (YYYY-MM-DD format). Used with shop action. |
Examples
Shop for exchange options (guest path):offer_id per option.
Price a specific offer:
price_delta (can be positive or negative), airline_penalty, service_fee, and a session_reference to commit against.
Commit the exchange:
The 4-step flow is serial, each step produces the token/reference the next needs. Always surface the priced delta (step 2) to the user for confirmation before calling
commit (step 3).