Triggered when a discount rule is deleted.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.ecom.discounts.v1.discount_rule
.
Event name. Expected deleted
.
ID of the entity associated with the event.
Event timestamp.
Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
If present, indicates the action that triggered the event.
Event information.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "wix.ecom.discounts.v1.discount_rule_deleted",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"entityId": "18b3a857-131e-47b1-8748-3c4d362511f3",
"slug": "deleted",
"id": "14129e3b-30e9-496f-ab3f-90d1ca82899e",
"entityFqdn": "wix.ecom.discounts.v1.discount_rule",
"deletedEvent": {
"movedToTrash": true
},
"eventTime": "2023-06-28T12:53:01.736091Z",
"triggeredByAnonymizeRequest": false
}