Cancel Booking
Cancel Booking
Cancels a booking previously pushed through the Booking APIs. The booking status becomes CANCELLED and the linked trip leg is released, so a new booking can be pushed for it. Only bookings created through these APIs can be cancelled (403 otherwise); cancelling an already cancelled booking returns 409. Optional refundAmount is saved on the booking; it must be between 0 and the booking amount (400 otherwise). If only cancellationCharges is sent, the refund is calculated as booking amount − charges. Optional cancellationCharges and creditNote are stored on the booking and returned under fields (refund_amount, cancellation_charges, credit_note_*); creditNote.creditNotePdf is attached under files as Credit Note. Negative amounts are rejected with 409.
Request Parameters
Headers
Request
Amount refunded for the cancellation. Saved on the booking. Must be between 0 and the booking amount. If omitted and cancellationCharges is sent, it is calculated as booking amount − cancellationCharges.
Cancellation charges deducted by the vendor / airline. Cannot be negative.
Response
Always true on HTTP 200.
Refund amount saved on the booking (0.0 when no refund was recorded).
Expense status code: 3 = booked / active, 7 = cancelled.
Booking date. Epoch time in milliseconds (UTC).
All captured booking attributes as key/value strings (PNR, airline, invoice fields, cancellation info, …).
Ticket / invoice attachments.
Structured ticket (flight / hotel / bus) as stored in Dice. Shape depends on service.
