Skip to main content

Cancel Booking

This endpoint allows you to cancel an existing booking. Cancellations can occur for reasons such as customer requests, operational constraints, or overbooking.

Endpoint​

PUT https://partner-domain.com/v1/mozrest/booking/{bookingId}/cancel

URL Parameters​

ParameterStatusDescription
bookingIdMandatoryUnique identifier for the booking to be canceled.

Body Parameters​

ParameterStatusDescription
cancelActorOptionalIndicates who is canceling the booking (e.g., "guest", "venue").
cancelReasonOptionalReason for cancellation.

Example Request​

curl PUT "https://partner-domain.com/v1/mozrest/booking/{bookingId}/cancel" \
-H "Authorization: Bearer {{api_key}}" \
--data-raw '{
"cancelActor": "guest"
}'

Example Response​

{
"id": "60e890aca5f07b6ee5b950b1"
}

Response Definitions​

  • id: Unique identifier for the canceled booking.