onEventCanceled( )


A backend event that fires when a Wix event is canceled.

The onEventCanceled() event handler runs when an existing Wix event is canceled. The received CanceledEvent object contains information about the event that was canceled.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
function onEventCanceled(event: CanceledEvent): void;
Method Parameters
eventCanceledEventRequired

Information about the event that was canceled.

A backend event that occurs when an existing Wix event is canceled
JavaScript
// Place this code in the events.js file // of your site's Backend section. // Add the file if it doesn't exist. export function wixEvents_onEventCanceled(event) { let eventId = event.eventId; let title = event.title; } /* Full event object: * { * "timestamp": "2020-04-26T13:57:50.699Z", * "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b", * "title": "My event", * "userId": "01cb99e2-e969-421a-b65f-43bea2a66fa1" * } */
Did this help?

onEventCreated( )


A backend event that fires when a Wix event is created or copied.

The onEventCreated() event handler runs when a Wix event is created or copied in your site. The received CreatedEvent object contains information about the new Wix event that was created/copied.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventCreatedEventRequired

Information about the event that was created.

A backend event that occurs when a new Wix event is created
JavaScript
Did this help?

onEventDeleted( )


A backend event that fires when a Wix event is deleted.

The onEventDeleted() event handler runs when an existing event is deleted. The received DeletedEvent object contains information about the event that was deleted.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventDeletedEventRequired

Information about the event that was deleted.

A backend event that occurs when an existing Wix event is deleted
JavaScript
Did this help?

onEventEnded( )


A backend event that fires when a Wix event ends.

The onEventEnded() event handler runs when a Wix event ends. The received EndedEvent object contains information about the ended event.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventEndedEventRequired

Information about the event that has ended.

A backend event that occurs when a Wix event ends
JavaScript
Did this help?

onEventReminder( )


A backend event that fires when a Wix event's reminders are sent.

The onEventReminder() event handler runs when a Wix event is set to have a reminder and the time of the reminder arrives. The received EventReminder object contains information about the event.

Configure when the reminder is sent in the site dashboard.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventEventReminderRequired

Information about the event that the reminder was sent for.

A backend event that occurs when a Wix event's reminders are sent
JavaScript
Did this help?

onEventStarted( )


A backend event that fires when a Wix event starts.

The onEventStarted() event handler runs when a Wix event starts. The received StartedEvent object contains information about the started event.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventStartedEventRequired

Information about the event that has started.

A backend event that occurs when a Wix event starts
JavaScript
Did this help?

onEventUpdated( )


A backend event that fires when an existing Wix event is updated.

The onEventUpdated() event handler runs when an existing Wix event is updated. The received UpdatedEvent object contains information about the event that was updated.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventUpdatedEventRequired

Information about the event that was updated.

A backend event that occurs when an existing Wix event is updated
JavaScript
Did this help?

onOrderConfirmed( )


A backend event that fires when a ticket order is confirmed.

The onOrderConfirmed() event handler runs when a ticket order is confirmed. The received OrderConfirmedEvent object contains information about the confirmed ticket order.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventOrderConfirmedEventRequired

Information about the ticket order that was confirmed.

A backend event that occurs when a ticket order is confirmed
JavaScript
Did this help?

onOrderDeleted( )


A backend event that fires when a ticket order is deleted.

The onOrderDeleted() event handler runs when a ticket order is deleted. The received OrderDeletedEvent object contains information about the deleted order.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventOrderDeletedEventRequired

Information about the ticket order that was deleted.

A backend event that occurs when a ticket order is deleted
JavaScript
Did this help?

onOrderInitiated( )


A backend event that fires when a ticket order is initiated.

The onOrderInitiated() event handler runs when a ticket order is initiated. The received OrderInitiatedEvent object contains information about the initiated ticket order.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventOrderInitiatedEventRequired

Information about the ticket order that was initiated.

A backend event that occurs when a ticket order is initiated
JavaScript
Did this help?

onOrderUpdated( )


A backend event that fires when a ticket order is updated.

The onOrderUpdated() event handler runs when a ticket order is updated. The received OrderUpdatedEvent object contains information about the updated ticket order.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventOrderUpdatedEventRequired

Information about the ticket order that was updated.

JavaScript
Did this help?

onReservationCreated( )


A backend event that fires when a ticket reservation is created.

The onReservationCreated() event handler runs when a ticket reservation is created. The received ReservationCreatedEvent object contains information about the created reservation.

Note: Backend events are not fired when previewing your site.

Method Declaration
Copy
Method Parameters
eventReservationCreatedEventRequired

Information about the ticket reservation that was created.

A backend event that occurs when tickets are reserved
JavaScript
Did this help?