Search...
onBookingDeclined( )
Developer Preview
An event that's triggered when a booking is declined.
Description
The onBookingDeclined()
event handler runs when a booking is declined. The received BookingDeclinedEvent
object contains information about the booking that was declined and metadata for the event.
Note: Backend events don't work when previewing your site.
Syntax
function wixBookingsV2_onBookingDeclined(event: BookingDeclinedEvent): void
onBookingDeclined Parameters
NAME
TYPE
DESCRIPTION
event
Optional
BookingDeclinedEvent
Information about the booking that was declined and metadata for the event.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onBookingDeclined example
Copy Code
12 export function wixBookingsV2_onBookingDeclined(event) {3 const eventId = event.metadata.id4 const entityId = event.data.booking._id;5 }67