Preview what cancelling a hotel booking would cost
Quote what cancelling would return to the customer right now: the refund, the penalty in force, and the policy behind them. NOTHING is cancelled. refund is the customer figure — what they paid for the item less the penalty. All amounts are customer-facing only. commitable: false means a commit would be refused and not_commitable_reason says why. The handle this returns is named quote: it is what POST /v1/hotel_cancel_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. An owning credential identifies the booking without last_name; guests must supply 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/hotel_cancel_preview
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"booking_ref": "JNK-H1ZK90",
"last_name": "Doe"
}Response
What cancelling would cost
Example response
{
"quote_id": "svq_01J7ZR3M8FKX2P9C",
"quote": "svq_01J7ZR3M8FKX2P9C",
"state": "completed",
"commitable": true,
"manual_reason": "the supplier's cancellation policy names no fee in force for this booking, so the fee could not be established",
"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
},
"policy": {
"free_cancel_until": "2026-09-01T00:00:00Z",
"is_refundable_now": true,
"tiers": [
{
"from": "2026-09-01T00:00:00Z",
"amount": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"fraction": 0.5
}
]
},
"not_commitable_reason": "penalty_exceeds_sell"
}Changes
No recorded changes to this operation across all 1 revision of this API.