Search...
onBookingCreated( )
Developer Preview
Triggered when a booking is created.
Syntax
function wixBookings_onBookingCreated(event: BookingCreated): void
onBookingCreated Parameters
NAME
TYPE
DESCRIPTION
event
Optional
BookingCreated
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onBookingCreated example
Copy Code
12 export function wixBookings_onBookingCreated(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67