Tool description (what the LLM sees)
Tool description (what the LLM sees)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | enum ("check" | "commit" | "status") | Yes | Action to perform: “check” to check refund eligibility, “commit” to confirm the refund, “status” to poll refund 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 refund (for partial refunds). Omit for full booking refund. |
refund_reference | string | No | Refund reference ID returned from a previous commit action. Required for status checks. |
Examples
Check refund eligibility (authenticated path):refund_reference. Poll refund_status until terminal:
succeeded, failed, cancelled. Poll every ~15-30 seconds.
check is read-only and never triggers a refund. Always show eligibility + refundable_amount to the user and get explicit confirmation before calling commit.