This event is triggered after a certain amount of days of inactivity. This is great for sending an email to remind the customer that they're close to earning a reward.
The Points Reminder events will be triggered each day at 5 pm UTC
Important Attributes | Description |
---|---|
email | The email address of the customer who made the referral |
redemption_option | An object describing the next reward option available to the customer after they earn the points_needed |
points_needed | The number of points the customer needs to earn to gain the next reward |
{
"topic": "swell/points/reminder",
"name": "Swell Points Reminder",
"email": "[email protected]",
"customer": {
"total_spend_cents": 0,
"total_purchases": 0,
"perks_redeemed": 2,
"last_purchase_at": null,
"email": "[email protected]",
"referred_by": "[email protected]",
"points_earned": 375,
"points_balance": 375,
"points_expire_at": null,
"first_name": null,
"last_name": null,
"last_seen_at": "2016-10-15T18:14:56.000Z",
"third_party_id": "4302977345",
"referral_code": {
"code": "x09u052",
"shares": 0,
"facebook_shares": 0,
"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": 1,
"amount_cents": 3000,
"average_amount_cents": 3000,
"expires_at": null,
"expired": false,
"completed_referral_customers": [{
"email": "[email protected]",
"first_name": "Hillary",
"last_name": "Clinton",
"referral_points_contributed": 0,
"last_seen_at": "2016-10-15T16:38:20.000Z"
}],
"email": "[email protected]",
"unique_clicks": 1,
"total_clicks": 1
}
},
"points_needed": 125,
"redemption_option": {
"id": 149,
"name": "$5.00 Off",
"description": "Get $5.00 off your next purchase for 500 points",
"icon": "fa-dollar",
"cost_text": "500 Points",
"amount": 500
}
}