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.

Syntax

function wixBookingsV2_onBookingConfirmed(event: BookingConfirmedEvent): void

onBookingConfirmed Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BookingConfirmedEvent

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

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBookingConfirmed example

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