Loyalty Opt In / Out

This event is triggered when a customer opts in or out to the loyalty program. A customer that is opted in can earn points, get into tiers, redeem points, etc. As opposed to a customer that is opted out that cannot participate in any of these activities.

Important Attributes

Description

email

The email address of the customer who's opted in or out.

is_opt_in

Whether the customer is opted in to the loyalty program following this event trigger.

loyalty_opt_in_date

Date when the customer was opted in to the loyalty program.

has_store_account

Whether the customer has an account with the ecommerce platform.

{
    "topic": "loyalty/opt_in",
    "name": "Loyalty Opt In",
    "email": "[email protected]",
    "customer": {
        "total_spend_cents": 3180,
        "total_purchases": 4,
        "perks_redeemed": 58,
        "last_purchase_at": "2019-11-28T12:50:52.000Z",
        "email": "[email protected]",
        "referred_by": "[email protected]",
        "points_earned": 2460,
        "points_balance": 460,
        "points_expire_at": null,
        "first_name": "a",
        "last_name": "a",
        "is_member": true,
        "accepts_marketing": false,
        "last_seen_at": "2019-12-09T16:41:26.214Z",
        "thirty_party_id": "2691804725305",
        "referral_link": "http://rwrd.io/3120htx",
        "referral_discount_code": null,
        "is_opt_in" => true,
        "loyalty_opt_in_date" => "2020-05-04",
        "has_store_account": true,
        "credit_balance": "$0",
        "is_affiliate": false,
        "vip_tier_name": "Power User",
        "vip_tier_ends_at": "2019-12-31",
        "referral_code": {
            "code": "3120htx",
            "shares": 1,
            "facebook_shares": 1,
            "twitter_shares": 0,
            "email_shares": 0,
            "emails_sent": 0,
            "emails_viewed": 0,
            "links_clicked_from_email": 0,
            "links_clicked_from_twitter": 0,
            "links_clicked_from_facebook": 0,
            "orders": 0,
            "amount_cents": 0,
            "average_amount_cents": 0,
            "expires_at": null,
            "expired": false,
            "completed_referral_customers": [],
            "email": "[email protected]",
            "unique_clicks": 0,
            "total_clicks": 0
        }
    }
}
{
    "topic": "loyalty/opt_out",
    "name": "Loyalty Opt Out",
    "email": "[email protected]",
    "customer": {
        "total_spend_cents": 3180,
        "total_purchases": 4,
        "perks_redeemed": 58,
        "last_purchase_at": "2019-11-28T12:50:52.000Z",
        "email": "[email protected]",
        "referred_by": "[email protected]",
        "points_earned": 2460,
        "points_balance": 460,
        "points_expire_at": null,
        "first_name": "a",
        "last_name": "a",
        "is_member": true,
        "accepts_marketing": false,
        "last_seen_at": "2019-12-09T16:41:26.214Z",
        "thirty_party_id": "2691804725305",
        "referral_link": "http://rwrd.io/3120htx",
        "referral_discount_code": null,
        "is_opt_in": true,
        "loyalty_opt_in_date": "0001-01-01 00:00:00 +0200",
        "has_store_account": true,
        "credit_balance": "₪0",
        "is_affiliate": false,
        "vip_tier_name": "Power User",
        "vip_tier_ends_at": "2019-12-31",
        "referral_code": {
            "code": "3120htx",
            "shares": 1,
            "facebook_shares": 1,
            "twitter_shares": 0,
            "email_shares": 0,
            "emails_sent": 0,
            "emails_viewed": 0,
            "links_clicked_from_email": 0,
            "links_clicked_from_twitter": 0,
            "links_clicked_from_facebook": 0,
            "orders": 0,
            "amount_cents": 0,
            "average_amount_cents": 0,
            "expires_at": null,
            "expired": false,
            "completed_referral_customers": [],
            "email": "[email protected](opens in new tab)",
            "unique_clicks": 0,
            "total_clicks": 0
        }
    }
}