Triggered when the points of a loyalty account are adjusted, earned, or redeemed.
Unique event ID. Allows clients to ignore duplicate webhooks.
Fully qualified domain name of the entity associated with the event. Expected wix.loyalty.v1.account
.
Event name. Expected points_updated
.
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.account_points_updated",
"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": "48b171b8-e2c1-46da-92ff-5ce4b173c751",
"entityFqdn": "wix.loyalty.v1.account",
"slug": "points_updated",
"entityId": "2bdbac7d-b121-4191-84bf-a359b20bc8c6",
"actionEvent": {
"body": {
"account": {
"rewardAvailable": false,
"revision": "3",
"points": {
"balance": 1,
"earned": 0,
"adjusted": 1,
"redeemed": 0
},
"id": "fe0ca230-61a6-4ebf-9199-9c0d238619aa",
"contactId": "87bbd811-f753-4de4-994d-69b24d22cb56",
"memberId": "87bbd811-f753-4de4-994d-69b24d22cb56",
"updatedDate": "2021-12-29T14:06:50.092Z",
"createdDate": "2021-12-29T13:55:32.505Z",
"tier": {
"id": "1415f107-640c-4e04-870f-149cdd562093",
"updatedDate": "2021-12-07T07:30:23.749Z",
"recalculationDate": null,
"points": 15
},
"lastActivityDate": "2021-12-07T07:30:23.749Z",
"contact": {
"id": "7728152f-7deb-45f8-913f-7fdff4abbebe",
"name": "Johna Linskey",
"picture": null,
"email": "johna.linskey@yopmail.com",
"displayName": "Johna Linskey"
}
}
}
},
"eventTime": "2021-12-29T14:06:50.106622Z",
"triggeredByAnonymizeRequest": false
}