> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Package: ticketing # Namespace: orders # Webhook link: https://dev.wix.com/docs/api-reference/business-solutions/events/registration/ticketing/orders/order-deleted.md ## Introduction This event is triggered when an order is deleted via a GDPR request. --- ## REST API ### Schema ``` Webhook: Order Deleted Description: This event is triggered when an order is deleted via a GDPR request. Payload: OrderDeleted - name: timestamp | type: string | description: Date and time the order was deleted. - name: eventId | type: string | description: Event GUID to which the order belongs. - name: orderNumber | type: string | description: Unique order number. - name: contactId | type: string | description: Contact GUID associated with the order. - name: memberId | type: string | description: Member GUID associated with the order. - name: created | type: string | description: Date and time the order was created. - name: updated | type: string | description: Date and time the order was updated. - name: anonymized | type: boolean | description: Whether the order was anonymized by GDPR delete. - name: orderType | type: OrderType | description: Order type. - enum: - UNASSIGNED_TICKETS: Buyer form is used for all tickets. - ASSIGNED_TICKETS: Each order ticket has its own form. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered by GDPR delete request. - name: tickets | type: array | description: Tickets generated after payment. - name: ticketNumber | type: string | description: Unique issued ticket number. - name: ticketDefinitionId | type: string | description: Ticket definition GUID. - name: checkIn | type: CheckIn | description: Ticket check-in. - name: created | type: string | description: Time of a ticket's check-in. - name: price | type: Money | description: Ticket price. - name: currency | type: string | description: 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`. - name: value | type: string | description: Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative. - name: archived | type: boolean | description: Whether ticket is archived. - name: firstName | type: string | description: Guest first name. - name: lastName | type: string | description: Guest last name. - name: email | type: string | description: Guest email. - name: contactId | type: string | description: Contact GUID associated with this ticket. - name: confirmed | type: boolean | description: Whether ticket is confirmed - name: memberId | type: string | description: Member GUID associated with this ticket. - name: form | type: FormResponse | description: Ticket form response (only assigned tickets contain separate forms). - name: inputValues | type: array | description: Form field inputs. - name: inputName | type: string | description: Form field input name. - name: value | type: string | description: Form field value. - name: values | type: array | description: Form field values. - name: ticketName | type: string | description: Ticket name. - name: anonymized | type: boolean | description: Anonymized tickets no longer contain personally identifiable information (PII). - name: onlineConferencingLogin | type: OnlineConferencingLogin | description: URL and password to online conference - name: link | type: string | description: Link URL to the online conference. - name: password | type: string | description: Password for the online conference. - name: seatId | type: string | description: Seat GUID associated with this ticket. - name: canceled | type: boolean | description: Whether ticket is canceled. ``` ### Examples ```curl { "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" } ``` --- ## JavaScript SDK ### Schema ``` Webhook: onOrderDeleted Description: This event is triggered when an order is deleted via a GDPR request. Payload: OrderDeletedEnvelope - name: data | type: OrderDeleted | description: none - name: timestamp | type: Date | description: Date and time the order was deleted. - name: eventId | type: string | description: Event GUID to which the order belongs. - name: orderNumber | type: string | description: Unique order number. - name: contactId | type: string | description: Contact GUID associated with the order. - name: memberId | type: string | description: Member GUID associated with the order. - name: created | type: Date | description: Date and time the order was created. - name: updated | type: Date | description: Date and time the order was updated. - name: anonymized | type: boolean | description: Whether the order was anonymized by GDPR delete. - name: orderType | type: OrderType | description: Order type. - enum: - UNASSIGNED_TICKETS: Buyer form is used for all tickets. - ASSIGNED_TICKETS: Each order ticket has its own form. - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered by GDPR delete request. - name: tickets | type: array | description: Tickets generated after payment. - name: ticketNumber | type: string | description: Unique issued ticket number. - name: ticketDefinitionId | type: string | description: Ticket definition GUID. - name: checkIn | type: CheckIn | description: Ticket check-in. - name: created | type: Date | description: Time of a ticket's check-in. - name: price | type: Money | description: Ticket price. - name: currency | type: string | description: 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`. - name: value | type: string | description: Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative. - name: archived | type: boolean | description: Whether ticket is archived. - name: firstName | type: string | description: Guest first name. - name: lastName | type: string | description: Guest last name. - name: email | type: string | description: Guest email. - name: contactId | type: string | description: Contact GUID associated with this ticket. - name: confirmed | type: boolean | description: Whether ticket is confirmed - name: memberId | type: string | description: Member GUID associated with this ticket. - name: form | type: FormResponse | description: Ticket form response (only assigned tickets contain separate forms). - name: inputValues | type: array | description: Form field inputs. - name: inputName | type: string | description: Form field input name. - name: value | type: string | description: Form field value. - name: values | type: array | description: Form field values. - name: ticketName | type: string | description: Ticket name. - name: anonymized | type: boolean | description: Anonymized tickets no longer contain personally identifiable information (PII). - name: onlineConferencingLogin | type: OnlineConferencingLogin | description: URL and password to online conference - name: link | type: string | description: Link URL to the online conference. - name: password | type: string | description: Password for the online conference. - name: seatId | type: string | description: Seat GUID associated with this ticket. - name: canceled | type: boolean | description: Whether ticket is canceled. - name: metadata | type: BaseEventMetadata | description: none - name: instanceId | type: string | description: App instance GUID. - name: eventType | type: string | description: Event type. - name: identity | type: IdentificationData | description: The identification type and identity data. - ONE-OF: - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site. - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site. - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.). - name: appId | type: string | description: GUID of an app. - name: identityType | type: WebhookIdentityType | description: - enum: UNKNOWN, ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP - name: accountInfo | type: AccountInfo | description: Details related to the account - name: accountId | type: string | description: GUID of the Wix account associated with the event. - name: parentAccountId | type: string | description: GUID of the parent Wix account. Only included when accountId belongs to a child account. - name: siteId | type: string | description: GUID of the Wix site associated with the event. Only included when the event is tied to a specific site. ``` ### Examples ```javascript import { orders } from '@wix/events'; orders.onOrderDeleted((event) => { // handle your event here }); ``` ```javascript import { createClient, AppStrategy } from '@wix/sdk'; import { orders } from '@wix/events'; const wixClient = createClient({ auth: AppStrategy({ appId: 'MY-APP-ID', publicKey: 'YOUR_APP_PUBLIC_KEY', }), modules: { orders, }, }); wixClient.orders.onOrderDeleted((event) => { // handle your event here }); ``` ---