latestOpenAPI 3.0.02026-08-106054.4 KB
42536792b3f8
Cancel Booking
Cancel Booking
Cancel a policy booking when a customer no longer requires coverage. This endpoint supports two modes controlled by the preview field:
-
Preview mode (preview: true): Calculate the refund amount without cancelling. Returns a cancellation_id for use with the Confirm Cancellation endpoint.
-
Immediate cancellation (preview: false or omitted): Cancel the booking immediately and process any applicable refunds.
Use preview mode when you need customer confirmation before finalizing the cancellation.
post/partners/{partner_code}/bookings/{booking_id}/cancel
Request body
Response
OK - cancelled