Cancel a hotel booking against a quote the customer accepted
Start the cancellation the preview described. The body is the quote handle and the acknowledged figure PLUS the same booking_ref, item_id and last_name the preview took: ownership is re-checked here rather than carried by the handle, so they have 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 cancelled. If the supplier’s policy moved since the quote, quote_drift has no retry_quote_id; preview again. The other refusals are 409 QUOTE_EXPIRED (run hotel_cancel_preview again), active_operation_exists (poll the active_operation when present instead of starting a second one), not_cancellable and funds_unavailable. Success does NOT mean the money has moved: cancelling at the supplier and refunding the customer are separate steps, so the answer is an operation handle to poll with POST /v1/hotel_cancel_status.
Request
- Base URLhttps://api.gojinko.com
- URLhttps://api.gojinko.com/v1/hotel_cancel_commit
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"booking_ref": "JNK-H1ZK90",
"last_name": "Doe",
"quote_id": "svq_01J7ZR3M8FKX2P9C",
"acknowledged": {
"value": 25000,
"currency": "USD",
"decimal_places": 2
}
}Response
The cancellation was accepted and is running
Example response
{
"operation": "svc_01J7ZR5Q2KME8V4T"
}Changes
No recorded changes to this operation across all 1 revision of this API.