Triggered when a referred friend 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.referral.v1.referred_friend
.
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.referred_friend_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.referred_friend",
"slug": "created",
"entityId": "aaf51c30-a61c-473e-96be-a42dfa5064c0",
"eventTime": "2024-08-12T08:12:17.813Z",
"createdEvent": {
"entity": {
"id": "3857d039-b129-4393-b983-947078b6a007",
"contactId": "661f5bb3-0723-4aa4-87d7-a21ebd1d0fa3",
"referringCustomerId": "07a3306c-b311-466e-92dd-c635c4145d1c",
"status": "ACTIONS_COMPLETED",
"revision": "2",
"createdDate": "2024-08-12T08:12:17.813Z",
"updatedDate": "2024-08-12T08:13:27.708Z"
}
}
}