> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Handlebar variables

Smile provides several different notification types that get triggered by unique events from your loyalty program. Each notification type has a set of handlebar variables that can be leveraged to create rich, dynamic emails.

This document outlines the handlebar variables that can be used in each notification type.

## Points earned

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`           | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Customer information.                                                                                                                                                                           |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | Completed action and points received information.                                                                                                                                               |

## Reward redeemed

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`           | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Customer information.                                                                                                                                                                           |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | New reward information.                                                                                                                                                                         |

## Birthday reward

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`           | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Customer information.                                                                                                                                                                           |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | Birthday reward information.                                                                                                                                                                    |

## Points expiry - warning

| Variable                       | Type                                                                                          | Description                                                                                                                                                                                     |
| ------------------------------ | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`                     | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object) | Customer information.                                                                                                                                                                           |
| `footer`                       | HTML                                                                                          | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `points_expiry_date_formatted` | String                                                                                        | A human readable date for when points will be expiring. (e.g. Dec 31, 2020)                                                                                                                     |

## Points expiry - last chance

| Variable                       | Type                                                                                          | Description                                                                                                                                                                                     |
| ------------------------------ | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`                     | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object) | Customer information.                                                                                                                                                                           |
| `footer`                       | HTML                                                                                          | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `points_expiry_date_formatted` | String                                                                                        | A human readable date for when points will be expiring. (e.g. Dec 31, 2020)                                                                                                                     |

## Referral shared through Smile

| Variable            | Type                                                                                          | Description                                                                                                                                                                                     |
| ------------------- | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `advocate_customer` | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object) | Referral advocate information.                                                                                                                                                                  |
| `footer`            | HTML                                                                                          | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `friend_reward`     | [Reward object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-object)     | Information on the reward available to the friend.                                                                                                                                              |
| `message`           | String                                                                                        | A personalized message from the referral advocate to the friend. (e.g. Check this store out!)                                                                                                   |

## Friend received referral

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `advocate_customer`  | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Referral advocate information.                                                                                                                                                                  |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | Information on the reward given to the friend.                                                                                                                                                  |

## Referral completed

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`           | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Advocate customer information.                                                                                                                                                                  |
| `friend_customer`    | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Referred friend information.                                                                                                                                                                    |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | Information on the reward given to the referral advocate.                                                                                                                                       |

## VIP tier achieved

| Variable   | Type                                                                                          | Description                                                                                                                                                                                     |
| ---------- | --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer` | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object) | Customer information.                                                                                                                                                                           |
| `footer`   | HTML                                                                                          | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |

## Reward expiry reminder

| Variable             | Type                                                                                                              | Description                                                                                                                                                                                     |
| -------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `customer`           | [Customer object](/guides/deprecated/custom-html-emails/custom-email-objects#customer-object)                     | Customer information.                                                                                                                                                                           |
| `footer`             | HTML                                                                                                              | Full-width block of HTML containing stylized text and links required by anti-spam legislation. This variable contains HTML so it needs three curly braces instead of two (i.e. `{{{footer}}}`). |
| `reward_fulfillment` | [Reward fulfillment object](/guides/deprecated/custom-html-emails/custom-email-objects#reward-fulfillment-object) | Expiring reward information.                                                                                                                                                                    |
