Skip to main content

Parameters

Examples

Start with get_booking, then choose the flight’s booked_item_id. Use the same booking reference, item, and authentication throughout the operation. Preview the customer’s refund:
This example uses guest verification (booking_ref + last_name). An authenticated owner can omit last_name; the credential must own the booking. Choose one authentication mode and keep it for every action. Do not add order_id to these requests. Commit after the customer agrees to the preview: Copy the returned quote_id and the preview’s refund object into acknowledged, field for field. The values below are illustrative; use the actual preview values.
Poll the returned operation handle:
The operation’s state uses lowercase values: in_progress and attention_required are non-terminal; succeeded and failed are terminal. Keep polling when Jinko needs to resolve attention_required. Read the supplier outcome and money state before telling the customer the refund is complete.
preview cancels nothing. A legacy check call does not return a quote_id and cannot replace a preview. For a MANUAL_REQUIRED preview, follow the tool’s manual_ok instructions; omit acknowledged only when that preview carried no refund figure.