Triggered when an earning rule is created.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.loyalty.v1.loyalty_earning_rule
.
Event name. Expected created
.
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.loyalty.v1.loyalty_earning_rule_created",
"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
}
}
}
{
"id": "79e98s2a-d8j4-4a3b-a62f-7393757bab84",
"entityFqdn": "wix.loyalty.v1.loyalty_earning_rule",
"slug": "created",
"entityId": "5bf5cb44-87rt-4933-1234-1d8423636a74",
"createdEvent": {
"entity": {
"id": "b690f925-8527-4d5e-b358-4b0adcb275b5",
"sourceAppId": "553c79f3-5625-4f38-b14b-ef7c0d1e87df",
"triggerAppId": "1380b703-ce81-ff05-f115-39571d94dfcd",
"triggerActivityType": "stores/OrderPaid",
"title": "Purchase a product",
"conversionRate": {
"moneyAmount": 1,
"points": 20,
"configs": [
{
"moneyAmount": 1,
"points": 20
}
]
},
"status": "ACTIVE",
"revision": "1",
"createdDate": "2024-09-16T12:06:39.294Z",
"updatedDate": "2024-09-16T12:06:39.294Z",
"metadata": {
"canBeDeleted": true
}
}
},
"eventTime": "2023-09-11T14:58:22.481838Z",
"triggeredByAnonymizeRequest": false,
"entityEventSequence": "1"
}