Triggered when a customer has earned points.

Topic

points/earned

Webhook Body

{
    "id": string,
    "customer": {
        "id": string,
        "externalId": string,
        "email": string,
        "name": string,
        "birthdayMonth": integer,
        "birthdayDay": integer,
        "referralUrl": string,
        "pointBalance": integer,
        "currentLoyaltyTier": {
            "id": string,
            "title": string
        },
        "createdAt": date,
        "updatedAt": date
    },
    "action": string,
    "points": integer,
    "type": string,
    "ruleId": string
}