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.
Authorization
Request
This endpoint does not take any parameters
Response Object
Returns an empty object.
Status/Error Codes
Was this helpful?
onBookingDeclined example
Copy Code
12 export function wixBookingsV2_onBookingDeclined(event) {3 const eventId = event.metadata.id4 const entityId = event.data.booking._id;5 }67