Refund or void a booked flight (every ticket on the item) against a quote the customer accepted
Start the operation the preview described — a refund, or a void of the original charge, whichever the preview reported as operation_kind. The body is the quote handle and the acknowledged figure PLUS the same auth mode the preview took: ownership is re-checked here rather than carried by the handle, so the mode has to be sent again. acknowledged is the refund the customer was shown, copied from the preview as it arrived (value and decimal_places included): if your figure differs from the still-live quote’s refund, the call is refused with 409 quote_drift. retry_quote_id is that same quote’s handle and current.refund its figure. Show it to the customer, then commit again with that handle and figure. Nothing is sent to the airline. A MANUAL_REQUIRED quote needs manual_ok: true: the operation is then raised for a Jinko agent and answers attention_required with reason: manual_required, again without the airline being called. Committing one without the flag is refused 409 manual_required. That submission is also the one case where acknowledged may be left out: a MANUAL_REQUIRED quote whose penalty is unknown carries no refund to acknowledge, and there is nothing to compare against. Whenever the preview DID name a refund, send it. The other refusals are 409 QUOTE_EXPIRED (preview again), active_operation_exists (poll the active_operation when present instead of starting a second one), not_cancellable, funds_unavailable, superseded, and — when the preview already said commitable: false and you committed anyway — that quote’s own reason answered back as the code: penalty_exceeds_sell or multi_currency_basis. Success does NOT mean the money has moved: giving the tickets back at the airline and returning the money to the customer are separate steps, so the answer is an operation handle to poll with POST /v1/flight_refund_status.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/flight_refund_commit
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe",
"quote_id": "svq_01J7ZR3M8FKX2P9C",
"acknowledged": {
"value": 25000,
"currency": "USD",
"decimal_places": 2
}
}Response
The refund or void was accepted and is running
Example response
{
"operation": "svc_01J7ZR5Q2KME8V4T",
"reason": "manual_required"
}Changes
No recorded changes to this operation across all 1 revision of this API.