Search.../

onBookingDeclined( )

Developer Preview

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

Description

The onBookingDeclined() event handler runs when a booking is declined. The received BookingDeclinedEvent object contains information about the booking that was declined and metadata for the event.

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

Syntax

function wixBookings_onBookingDeclined(event: BookingDeclinedEvent): void

onBookingDeclined Parameters

NAME
TYPE
DESCRIPTION
event
Optional
BookingDeclinedEvent

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

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onBookingDeclined example

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