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.
function onOrderDeleted(event: OrderDeletedEvent): void;
Information about the ticket order that was deleted.
// 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_onOrderDeleted(event) {
let eventId = event.eventId;
let orderNumber = event.orderNumber;
}
/* Full event object:
* {
* "timestamp": "2020-04-28T12:24:29.768Z",
* "eventId": "566e7be9-1410-4095-ae7a-349a4ac95c6b",
* "orderNumber": "FMXC-BZG3-OT",
* "contactId": "eea3ac0f-f9e6-4ed3-a135-99743c8e90b8",
* "memberId": "b272b0bb-d013-415a-8461-e8a175fe8dc6",
* "anonymized": true,
* "orderType": "ASSIGNED_TICKETS"
* }
*/
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.
function onOrderInitiated(event: OrderInitiatedEvent): void;
Information about the ticket order that was initiated.
// 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_onOrderInitiated(event) {
let eventId = event.eventId;
let orderNumber = event.orderNumber;
let status = event.status;
let buyerFirstName = event.firstName;
let buyerLastName = event.lastName;
let buyerEmail = event.email;
let invoice = event.invoice;
let grandTotal = invoice.grandTotal;
}
/* Full event object:
* {
* "timestamp": "2020-04-28T12:23:51.523Z",
* "eventId": "566e7be9-1410-4095-ae7a-349a4ac95c6b",
* "orderNumber": "FMXC-BZG3-OT",
* "firstName": "John",
* "lastName": "Doe",
* "email": "john.doe@somedomain.com",
* "status": "INITIATED",
* "checkoutForm": {
* "inputValues": [
* {
* "inputName": "firstName",
* "value": "John",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "email",
* "value": "john.doe@somedomain.com",
* "values": []
* }
* ]
* },
* "invoice": {
* "items": [
* {
* "id": "d72874cb-012a-4ad2-afbb-57fe8cf1e308",
* "quantity": 1,
* "name": "VIP",
* "price": {
* "amount": "123.00",
* "currency": "USD"
* },
* "total": {
* "amount": "123.00",
* "currency": "USD"
* },
* "fees": [
* {
* "type": "FEE_INCLUDED",
* "rate": "2.5",
* "amount": {
* "amount": "3.08",
* "currency": "USD"
* }
* }
* ]
* },
* {
* "id": "9c3dc432-f1a6-408f-82d8-4f64c7ff581b",
* "quantity": 1,
* "name": "Free",
* "price": {
* "amount": "0.00",
* "currency": "USD"
* },
* "total": {
* "amount": "0.00",
* "currency": "USD"
* },
* "fees": [
* {
* "rate": "2.5",
* "amount": {
* "amount": "0.00",
* "currency": "USD"
* }
* }
* ]
* }
* ],
* "fees": [
* {
* "rate": "2.5",
* "amount": {
* "amount": "0.00",
* "currency": "USD"
* }
* },
* {
* "type": "FEE_INCLUDED",
* "rate": "2.5",
* "amount": {
* "amount": "3.08",
* "currency": "USD"
* }
* }
* ],
* "subTotal": {
* "amount": "123.00",
* "currency": "USD"
* },
* "grandTotal": {
* "amount": "123.00",
* "currency": "USD"
* },
* "revenue": {
* "amount": "119.92",
* "currency": "USD"
* }
* }
* }
*/
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.
function onOrderUpdated(event: OrderUpdatedEvent): void;
Information about the ticket order that was updated.
// 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_onOrderUpdated(event) {
let eventId = event.eventId;
let orderNumber = event.orderNumber;
let status = event.status;
let buyerFirstName = event.firstName;
let buyerLastName = event.lastName;
let buyerEmail = event.email;
let invoice = event.invoice;
let grandTotal = invoice.grandTotal;
let tickets = event.tickets;
let firstTicket = tickets[0];
let secondTicket = tickets[1];
}
/* Full event object:
* {
* "timestamp": "2020-04-28T12:24:29.768Z",
* "eventId": "566e7be9-1410-4095-ae7a-349a4ac95c6b",
* "orderNumber": "FMXC-BZG3-OT",
* "contactId": "eea3ac0f-f9e6-4ed3-a135-99743c8e90b8",
* "memberId": "b272b0bb-d013-415a-8461-e8a175fe8dc6",
* "created": "2020-04-28T12:23:51.523Z",
* "firstName": "John",
* "lastName": "Doe",
* "email": "john.doe@somedomain.com",
* "confirmed": true,
* "status": "PAID",
* "method": "payPal",
* "archived": false,
* "checkoutForm": {
* "inputValues": [
* {
* "inputName": "firstName",
* "value": "John",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "email",
* "value": "john.doe@somedomain.com",
* "values": []
* }
* ]
* },
* "tickets": [
* {
* "ticketNumber": "FMXC-BZG3-OT021",
* "ticketDefinitionId": "d72874cb-012a-4ad2-afbb-57fe8cf1e308",
* "checkIn": {
* "created": "2020-04-28T12:24:20.102Z"
* },
* "price": {
* "amount": "123.00",
* "currency": "USD"
* },
* "archived": false,
* "firstName": "John",
* "lastName": "Doe",
* "email": "john.doe@somedomain.com",
* "contactId": "eea3ac0f-f9e6-4ed3-a135-99743c8e90b8",
* "memberId": "b272b0bb-d013-415a-8461-e8a175fe8dc6",
* "confirmed": true,
* "form": {
* "inputValues": [
* {
* "inputName": "custom",
* "value": "Another comment",
* "values": []
* },
* {
* "inputName": "email",
* "value": "john.doe@somedomain.com",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "firstName",
* "value": "John",
* "values": []
* },
* {
* "inputName": "date",
* "value": "2020-04-28",
* "values": []
* },
* {
* "inputName": "comment",
* "value": "Comment",
* "values": []
* },
* {
* "inputName": "address",
* "value": "",
* "values": [
* "Wix Playground, 100 Gansevoort St",
* "New York City",
* "New York",
* "USA",
* "NY 10014"
* ]
* },
* {
* "inputName": "phone",
* "value": "(555) 555-1234",
* "values": []
* }
* ]
* }
* },
* {
* "ticketNumber": "FMXC-BZG3-OT041",
* "ticketDefinitionId": "9c3dc432-f1a6-408f-82d8-4f64c7ff581b",
* "price": {
* "amount": "0.00",
* "currency": "USD"
* },
* "archived": false,
* "firstName": "Jane",
* "lastName": "Doe",
* "email": "jane.doe@somedomain.com",
* "contactId": "e11af3d4-c205-4d3a-b687-58d4dda78a6c",
* "memberId": "62bc4004-548c-46ad-a699-55ef307273e3",
* "confirmed": true,
* "form": {
* "inputValues": [
* {
* "inputName": "custom",
* "value": "Another comment",
* "values": []
* },
* {
* "inputName": "email",
* "value": "jane.doe@somedomain.com",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "firstName",
* "value": "Jane",
* "values": []
* },
* {
* "inputName": "date",
* "value": "2020-04-28",
* "values": []
* },
* {
* "inputName": "comment",
* "value": "Comment",
* "values": []
* },
* {
* "inputName": "address",
* "value": "",
* "values": [
* "Wix Playground, 100 Gansevoort St",
* "New York City",
* "New York",
* "USA",
* "NY 10014"
* ]
* },
* {
* "inputName": "phone",
* "value": "(555) 555-1234",
* "values": []
* }
* ]
* }
* }
* ]
* }
*/
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.
function onReservationCreated(event: ReservationCreatedEvent): void;
Information about the ticket reservation that was created.
// 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_onReservationCreated(event) {
let eventId = event.eventId;
let reservationId = event.reservationId;
}
/* Full event object:
* {
* "timestamp": "2020-04-26T13:00:00.000Z",
* "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b",
* "reservationId": "d72874cb-012a-4ad2-afbb-57fe8cf1e308",
* "expires": "2020-04-26T13:20:00.000Z",
* "status": "RESERVATION_PENDING"
* }
*/
A backend event that fires when a ticket reservation is updated.
The onReservationUpdated()
event handler runs when a ticket reservation is updated.
The received ReservationUpdatedEvent
object contains information about the updated reservation.
Note: Backend events are not fired when previewing your site.
function onReservationUpdated(event: ReservationUpdatedEvent): void;
Information about the ticket reservation that was updated.
// 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_onReservationUpdated(event) {
let eventId = event.eventId;
let reservationId = event.reservationId;
}
/* Full event object:
* {
* "timestamp": "2020-04-26T13:00:00.000Z",
* "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b",
* "reservationId": "d72874cb-012a-4ad2-afbb-57fe8cf1e308",
* "status": "RESERVATION_CONFIRMED"
* }
*/
A backend event that fires when a guest registers to a Wix event.
The onRsvpCreated()
event handler runs when a guest registers to a Wix event.
The received RsvpCreatedEvent
object contains information about the created RSVP.
Note: Backend events are not fired when previewing your site.
function onRsvpCreated(event: RsvpCreatedEvent): void;
Information about the RSVP that was created.
// 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_onRsvpCreated(event) {
let eventId = event.eventId;
let rsvpId = event.rsvpId;
let status = event.status;
let firstName = event.firstName;
let lastName = event.lastName;
let email = event.email;
}
/* Full event object:
* {
* "timestamp": "2020-04-27T12:37:22.444Z",
* "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
* "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
* "status": "YES",
* "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
* "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
* "firstName": "John",
* "lastName": "Doe",
* "email": "john.doe@somedomain.com",
* "rsvpForm": {
* "inputValues": [
* {
* "inputName": "email",
* "value": "john.doe@somedomain.com",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "firstName",
* "value": "John",
* "values": []
* },
* {
* "inputName": "date",
* "value": "2020-04-27",
* "values": []
* },
* {
* "inputName": "additionalGuests",
* "value": "2",
* "values": []
* },
* {
* "inputName": "guestNames",
* "value": "",
* "values": [
* "Jane Doe",
* "Baby Doe"
* ]
* },
* {
* "inputName": "comment",
* "value": "A comment",
* "values": []
* },
* {
* "inputName": "custom",
* "value": "Another comment",
* "values": []
* },
* {
* "inputName": "address",
* "value": "",
* "values": [
* "Wix Playground, 100 Gansevoort St, New York, NY 10014, USA"
* ]
* },
* {
* "inputName": "phone",
* "value": "(555) 555-1234",
* "values": []
* }
* ]
* },
* "guests": [
* {
* "index": 0,
* "fullName": "John Doe",
* "id": 1
* },
* {
* "index": 1,
* "fullName": "Jane Doe",
* "id": 2
* },
* {
* "index": 2,
* "fullName": "Baby Doe",
* "id": 3
* }
* ]
* }
*/
A backend event that fires when an RSVP is deleted.
The onRsvpDeleted()
event handler runs when an RSVP is deleted.
The received RsvpDeletedEvent
object contains information about the deleted RSVP.
Note: Backend events are not fired when previewing your site.
function onRsvpDeleted(event: RsvpDeletedEvent): void;
Information about the RSVP that was deleted.
// 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_onRsvpDeleted(event) {
let eventId = event.eventId;
let rsvpId = event.rsvpId;
}
/* Full event object:
* {
* "timestamp": "2020-04-27T13:37:22.444Z",
* "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
* "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
* "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
* "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
* "anonymized": false
* }
*/
A backend event that fires when an RSVP is updated.
The onRsvpUpdated()
event handler runs when an RSVP is updated.
The received RsvpUpdatedEvent
object contains information about the updated RSVP.
Note: Backend events are not fired when previewing your site.
function onRsvpUpdated(event: RsvpUpdatedEvent): void;
Information about the RSVP that was updated.
// 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_onRsvpUpdated(event) {
let eventId = event.eventId;
let rsvpId = event.rsvpId;
let status = event.status;
let firstName = event.firstName;
let lastName = event.lastName;
let email = event.email;
}
/* Full event object:
* {
* "timestamp": "2020-04-27T13:37:22.444Z",
* "eventId": "0adc383d-db6b-4c4a-8fb8-5fe77c6569bb",
* "rsvpId": "4160c868-35b8-49f3-bff2-9d3912be9c0a",
* "status": "YES",
* "contactId": "2b1df22d-cfcf-447e-9afe-27b782aecd8c",
* "memberId": "c2b48f6f-5964-46ad-9888-1e9d3f81b83b",
* "created": "2020-04-27T12:37:22.444Z",
* "firstName": "John",
* "lastName": "Doe",
* "email": "john.doe@somedomain.com",
* "rsvpForm": {
* "inputValues": [
* {
* "inputName": "email",
* "value": "john.doe@somedomain.com",
* "values": []
* },
* {
* "inputName": "lastName",
* "value": "Doe",
* "values": []
* },
* {
* "inputName": "firstName",
* "value": "John",
* "values": []
* },
* {
* "inputName": "date",
* "value": "2020-04-27",
* "values": []
* },
* {
* "inputName": "additionalGuests",
* "value": "2",
* "values": []
* },
* {
* "inputName": "guestNames",
* "value": "",
* "values": [
* "Jane Doe",
* "Baby Doe"
* ]
* },
* {
* "inputName": "comment",
* "value": "A comment",
* "values": []
* },
* {
* "inputName": "custom",
* "value": "Another comment",
* "values": []
* },
* {
* "inputName": "address",
* "value": "",
* "values": [
* "Wix Playground, 100 Gansevoort St, New York, NY 10014, USA"
* ]
* },
* {
* "inputName": "phone",
* "value": "(555) 555-1234",
* "values": []
* }
* ]
* },
* "guests": [
* {
* "index": 0,
* "fullName": "John Doe",
* "id": 1
* },
* {
* "index": 1,
* "fullName": "Jane Doe",
* "id": 2
* },
* {
* "index": 2,
* "fullName": "Baby Doe",
* "id": 3
* }
* ]
* }
*/
A backend event that fires when a ticket definition is created.
The onTicketDefinitionCreated()
event handler runs when a ticket definition is created.
The received TicketDefinitionCreatedEvent
object contains information about the created ticket definition.
Note: Backend events are not fired when previewing your site.
function onTicketDefinitionCreated(event: TicketDefinitionCreatedEvent): void;
Information about the ticket definition that was created.
// 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_onTicketDefinitionCreated(event) {
let eventId = event.eventId;
let ticketDefinitionId = event.ticketDefinitionId;
}
/* Full event object:
* {
* "timestamp": "2020-04-26T13:57:50.699Z",
* "eventId": "46dc2337-d725-4f7e-a0ae-a94a9a1f0c0b",
* "ticketDefinitionId": "d72874cb-012a-4ad2-afbb-57fe8cf1e308"
* }
*/