Search...
onBookingConfirmed( )
Developer Preview
An event that's triggered when a booking is confirmed.
Description
The onBookingConfirmed()
event handler runs when a booking is confirmed. The received BookingConfirmedEvent
object contains information about the booking that was confirmed and metadata for the event.
Note: Backend events don't work when previewing your site.
Authorization
Request
This endpoint does not take any parameters
Response Object
Returns an empty object.
Status/Error Codes
Was this helpful?
onBookingConfirmed example
Copy Code
12 export function wixBookingsV2_onBookingConfirmed(event) {3 const eventId = event.metadata.id4 const entityId = event.data.booking._id;5 }67