This endpoint allows you to cancel an existing booking. Cancellations can occur for reasons such as customer requests, operational constraints, or overbooking.
PUT https://partner-domain.com/v1/mozrest/booking/{bookingId}/cancel
| Parameter | Status | Description |
|---|---|---|
| bookingId | Mandatory | Unique identifier for the booking to be canceled. |
| Parameter | Status | Description |
|---|---|---|
| cancelActor | Optional | Indicates who is canceling the booking (e.g., "guest", "venue"). |
| cancelReason | Optional | Reason for cancellation. |
curl PUT "https://partner-domain.com/v1/mozrest/booking/{bookingId}/cancel" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"cancelActor": "guest"
}'{
"id": "60e890aca5f07b6ee5b950b1"
}- id: Unique identifier for the canceled booking.