Skip to main content
Below you will find a structure description of the common objects used in templates throughout Smile’s email notification system. The structure of these objects may differ slightly from their equivalent in the API reference.

Customer object

The customer object contains basic information (e.g. first name), loyalty program information (e.g. points balance), and if applicable, VIP program information (e.g. current VIP tier).
AttributeDescription
emailThe customer’s email address.
first_nameThe customer’s first name.
next_vip_tierA VIP Tier object. The next VIP tier the customer will achieve after meeting required criteria, if any.
points_balanceThe number of points the customer currently has. (e.g. 250)
points_balance_formattedThe number of points and the points currency. (e.g. 250 Points)
referral_urlThe customer’s unique referral URL.
vip_milestone_descriptionAn explanation of what the customer needs to accomplish to move into the next VIP tier. (e.g. Earn 250 Points by Dec 31, 2020 to reach Gold.)
vip_tierA VIP Tier object. The customer’s current VIP tier, if any.

Reward object

The reward object contains basic details about a reward.
AttributeDescription
nameThe name of the reward.

Reward fulfillment object

The reward fulfillment object contains information about the reward a customer has just unlocked.
AttributeDescription
action_textThe action text associated with using a reward, if any. (e.g. Use your reward)
action_urlThe action URL associated with using a reward, if any.
codeThe code required for the customer to use this reward, if any.
expires_at_formattedThe human readable date for when a reward will expire, if any. (e.g. Dec 31, 2020)
nameThe name of the reward given to the customer. (e.g. $10 Off Coupon)
source_descriptionWhat the customer did to achieve this reward. (e.g. Spent 100 Points)
usage_instructionsInstructions that describe how to use the reward, if any.
terms_and_conditionsThe terms and conditions associated with the reward fulfillment.

VIP tier object

The VIP tier object contains information about a customers current or future VIP tier status.
AttributeDescription
idThe ID of the VIP tier.
nameThe name of the VIP tier. (e.g. Gold)