Search.../

onBookingNumberOfParticipantsUpdated( )

Developer Preview

An event that's triggered when the number of participants for a booking is updated.

Description

The onBookingNumberOfParticipantsUpdated() event handler runs when the number of participants for a booking is updated. The received BookingNumberOfParticipantsUpdatedEvent object contains information about the booking whose number of participants were updated 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?

onBookingNumberOfParticipantsUpdated example

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