Search.../

onBookingCanceled( )

Developer Preview

An event that's triggered when a booking is canceled.

Description

The onBookingCanceled() event handler runs when a booking is canceled. The received BookingCanceledEvent object contains information about the booking that was canceled and metadata for the event.

Note: Backend events don't work when previewing your site.

Syntax

function wixBookings_onBookingCanceled(event: BookingCanceledEvent): void

onBookingCanceled Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BookingCanceledEvent

Information about the booking that was canceled and metadata for the event.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBookingCanceled example

Copy Code
1
2 export function wixBookings_onBookingCanceled(event) {
3 const eventId = event.metadata.id
4 const entityId = event.data.booking._id;
5 }
6
7