This event is triggered any time a customer redeems their points for a donation to a non profit through our integration with Shopping Gives.
Note:
The donation event does not include a "coupon code" since the donation does not require a code to go through. So under reward text it says "Donation".
Important Attributes | Description |
---|---|
email | The email address of the customer who donated their points |
redemption_option.name | The name of the donation redemption |
{
"topic":"loyalty/donation/created",
"name":"Loyalty Donation Created",
"redemption":{
"id":16977423,
"created_at":"2020-09-16T11:39:28.974Z",
"updated_at":"2020-09-16T11:39:28.974Z",
"reward_text":"Donation",
"approved":false,
"approved_at":null,
"is_admin":false,
"is_pos":false,
"at_checkout":false,
"amount":null,
"token":"nnaq9CflljIMilATEhvwMVhvxwy1130v",
"third_party_id":null,
"third_party_rule_id":null},
"at_checkout":false,
"is_pos":false,
"redemption_option":{
"id":353572,
"name":"14$ off",
"description":"Get $14.00",
"icon":"fa-dollar",
"cost_text":"2 Points","amount":2,
"applies_to_product_type":"ALL",
"duration":"single_use",
"type":"Coupon",
"discount_amount_cents":2200,
"discount_rate_cents":null,
"discount_percentage":null,
"discount_type":"donation"},
"redemption_option_id":353572,
"redemption_option_name":"14$ off",
"email":"[email protected]",
"customer":
{
"total_spend_cents":0,
"total_purchases":0,
"perks_redeemed":1,
"last_purchase_at":null,
"email":"[email protected]",
"referred_by": "[email protected]",
"points_earned":100,
"points_balance":63,
"points_expire_at":null,
"first_name":"a",
"last_name":"a",
"is_member":true,
"accepts_marketing":false,
"last_seen_at":"2020-09-16T11:39:28.974Z",
"thirty_party_id":"3283482378286",
"third_party_id":"3283482378286",
"referral_link":"http://rwrd.io/oppjz9t",
"referral_discount_code":null,
"is_opt_in":true,
"loyalty_opt_in_date":"2020-07-22","has_store_account":true,
"credit_balance":"$0",
"is_affiliate":false,
"referral_code":{
"code":"oppjz9t",
"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":0,
"amount_cents":0,
"average_amount_cents":0,
"expires_at":null,
"expired":false,
"completed_referral_customers":[],
"email":"[email protected]",
"unique_clicks":1,
"total_clicks":1
}
}
}