Customer Birthday

This event is triggered on the birthday of a customer. This is great for sending an email to congratulate them and update them if they were awarded points or a coupon according to an existing Birthday Campaign.

The Customer Birthday events will be triggered each day at 1 pm UTC

Important AttributesDescription
emailThe email address of the customer whose birthday it is
perk.reward_pointsIf customer was gifted points, this is how many
redemption.reward_textIf customer was gifted a coupon, this is the coupon code
redemption_option.nameIf customer was gifted a coupon, this is the discount name
{
    "topic": "swell/customer/birthday",
    "name": "Swell Customer Birthday",
    "email": "[email protected]",
    "customer": {
        "total_spend_cents": 2500,
        "total_purchases": 1,
        "perks_redeemed": 5,
        "last_purchase_at": "2016-09-23T00:55:35.000Z",
        "email": "[email protected]",
        "referred_by": "[email protected]",
        "points_earned": 450,
        "points_balance": 450,
        "points_expire_at": null,
        "first_name": "John",
        "last_name": "Smith",
        "last_seen_at": "2016-09-23T00:55:35.000Z",
        "third_party_id": "4055305025"
    },
    "perk": {
      "id": 2,
      "campaign_id": 4,
      "merchant_id": 1,
      "customer_id": 128,
      "reward_points": 0,
      "completed": false,
      "completed_at": null,
      "awarded": false,
      "awarded_at": null,
      "pending": false,
      "reversed": false,
      "reversed_at": null,
      "expired": false,
      "expired_at": null,
      "expires_at": null,
      "redemption_option_id": 152,
      "history_title": "Happy Birthday",
      "created_at": "2016-09-23T00:47:40.000Z"
    },
    "redemption": {
      "id": 2,
      "created_at": "2016-09-23T00:47:40.758Z",
      "updated_at": "2016-09-23T00:47:40.758Z",
      "reward_text": "abc123",
      "approved": true,
      "approved_at": "2016-09-23T00:47:40.903Z"
    },
    "redemption_option": {
      "id": 149,
      "amount": 500,
      "name": "$5.00 Off",
      "description": "Get $5.00 off your next purchase for 500 points",
      "icon": "fa-dollar",
      "cost_text": "500 Points"
    }
}