Preview what cancelling a booked flight (every ticket on the item) would return to the customer
Quote what the customer would get back for this flight item, every ticket on it, right now: the refund, the penalty in force, and every document the operation would cover. NOTHING is sent to the airline. refund is what the customer paid less the penalty. All amounts are customer-facing only. The platform decides WHICH operation this is and reports it as operation_kind: a ticket still inside its void window is void — the entire charge is reversed, penalty-free — and anything else is cancel, a refund under the fare rules. You cannot ask for one; read what you are given, because the void window closes with time. commitable: false with support_level: MANUAL_REQUIRED is not a dead end: the commit takes manual_ok: true and hands the operation to a Jinko agent. The handle this returns is named quote: it is what POST /v1/flight_refund_commit consumes, and it stops binding at expires_at. Every call here needs API authentication; this is about which mode identifies the booking. Call get_booking first, then send booking_ref and the selected booked_item_id. Guests must send last_name; owning credentials may omit it. The deprecated provider, order_id, provider_reference and provider_booking_id are accepted until 2027-04-30 where the request declares them; a request that sends one is answered with Deprecation and Sunset headers.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/flight_refund_preview
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe"
}Response
What cancelling the flight item would return
Example response
{
"seat_refunds": [
{
"seat_number": "12B",
"traveler_ref": "pax_1",
"pax_ref_id": "pax_1",
"amount": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"carrier": "United",
"message": "Your paid seat will be refunded once United refunds Jinko."
}
],
"quote_id": "svq_01J7ZR3M8FKX2P9C",
"quote": "svq_01J7ZR3M8FKX2P9C",
"state": "completed",
"commitable": true,
"manual_reason": "fare rules require agent review",
"settlement_basis": "sell_minus_penalty",
"expires_at": "2026-09-03T12:15:00Z",
"booked_item_id": "itm_7f2c9a4e8b1d",
"item": "itm_7f2c9a4e8b1d",
"refund": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50",
"amount_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"basis": "sell_minus_penalty"
},
"penalty": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50",
"amount_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"fee_known": true,
"breakdown": {
"airline_fee": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"non_refundable_taxes": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"used_fare": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
}
}
},
"documents": [
{
"number": "0012345678901",
"state": "ACTIVE"
}
],
"ancillary_recoverable": true,
"not_commitable_reason": "manual_required"
}Changes
No recorded changes to this operation across all 1 revision of this API.