Search.../

onBookingRescheduled( )

Developer Preview

An event that's triggered when a booking is rescheduled.

Description

The onBookingRescheduled() event handler runs when a booking is rescheduled. The received BookingRescheduledEvent object contains information about the booking that was rescheduled and metadata for the event.

Note: Backend events don't work when previewing your site.

Syntax

function wixBookings_onBookingRescheduled(event: BookingRescheduledEvent): void

onBookingRescheduled Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BookingRescheduledEvent

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

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBookingRescheduled example

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