Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.loyalty.referral.v1.referral_event
.
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.referral.v1.referral_event_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": "9aca3895-8c58-48b7-84a5-35bcd431c125",
"entityFqdn": "wix.loyalty.referral.v1.referral_event",
"slug": "created",
"entityId": "aaf51c30-a61c-473e-96be-a42dfa5064c0",
"cratedEvent": {
"entity": {
"id": "017fad99-aa0f-47a9-8d4f-177fc6a07da3",
"revision": "1",
"createdDate": "2024-07-08T11:22:00.826Z",
"updatedDate": "2024-07-08T11:22:00.826Z",
"rewardEvent": {
"referralRewardId": "c8c732cf-2ca2-4025-9b1c-3be02f099cdb",
"rewardType": "COUPON",
"rewardedReferringCustomerId": "4fb41de4-da9c-4818-b54f-82c955ecc866"
}
}
}
}