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

# Attentive data syncing

> Learn about what data is synced from Smile to Attentive and what you can expect from the data syncing process.

With the Smile and Attentive integration installed, Smile sends two types of data to Attentive:

* **Subscriber attributes** are values on each customer's Attentive profile, such as their points balance. Smile sends these when **Customer sync** is on.
* **Events** are records of things that happen in your loyalty program, such as a customer redeeming points. Smile sends these when **Loyalty events** is on.

To turn these features on, refer to the [Attentive setup guide](https://help.smile.io/en/integrations/attentive/setup.md#turn-on-features).

## Customer matching

Smile matches customers to Attentive profiles by email address. This has a few effects:

* Smile only sends data for customers who have an email address in Smile.
* If a customer's email address is not yet in Attentive, Smile still sends their attributes and events. Attentive keeps them and shows them on the person's profile when they subscribe, so no data is lost.
* If a customer uses a different email address in Smile and Attentive, the data goes to the email address in Smile.

## Subscriber attributes

Smile adds the following custom attributes to each customer's Attentive profile. You can use them in segments and as dynamic content in SMS and email messages.

When any of these values change in Smile, Smile updates them in Attentive. If a value is removed in Smile, Smile clears it in Attentive.

| Attribute name | Data type | Description |
| - | - | - |
| `smilePointsBalance` | Number | The customer's current points balance. |
| `smileReferralUrl` | Text | The customer's unique referral URL. Customers share this link with friends as part of the referral program. |
| `smileVipTierName` | Text | The name of the customer's current VIP tier. Empty if the customer is not in a VIP tier. |
| `smileState` | Text | The customer's membership status in your loyalty program. One of `member`, `candidate`, or `disabled`. |

> [!NOTE]
>
> **Note:** Updates typically appear in Attentive shortly after the change in Smile. When many updates happen at once, such as after a customer or points import, it may take longer for all profiles to show the latest data.

## Events

Smile sends each event to Attentive as a custom event, linked to the customer's email address. You can use these events to trigger journeys, or to build segments of customers who did something in a given time period.

### When events are sent

The table below lists every loyalty program event that Smile sends to Attentive. Smile only sends events for the parts of the program that you use. For example, if you don't have a referral program, Smile does not send referral events.

| Event name | When it's sent |
| - | - |
| `Smile Order Rewarded` | When a customer gets a reward for placing an order, from an order earning rule. If [points delay](https://help.smile.io/en/articles/configure-points-delay-for-orders.md) is on, Smile sends the event when the delay ends and the customer gets the reward, not when they place the order. |
| `Smile Points Redeemed` | When a customer spends points on a reward. |
| `Smile Birthday Rewarded` | When a customer gets their [birthday reward](https://help.smile.io/en/articles/4036229-understand-birthday-points.md). |
| `Smile Referral Started` | When a referred friend claims their referral reward. Smile sends this event to the **friend**, not to the customer who sent the referral. Smile uses the email address that the friend entered to claim the reward. This person may not be in Attentive yet. Attentive keeps the event and shows it on their profile when they subscribe. To send them messages, they must subscribe in Attentive. Smile does not send this event for a referral that is blocked or cancelled. If you unblock a referral, Smile sends the event at that time. |
| `Smile Referral Completed` | When a referred friend places an order and the customer who sent the referral gets their reward. Smile sends this event to the **customer who sent the referral**. Smile does not send this event for a cancelled referral. |
| `Smile Points Expiring` | Before a customer's points expire, on each reminder you set in your [points expiry settings](https://help.smile.io/en/articles/4036281-configure-points-expiry.md). If you set more than one reminder, Smile sends one event for each reminder. For example, with reminders at 30 days and 3 days, a customer gets two events before their points expire. Smile checks the customer's points before it sends each event. If the customer has no points left, or their points no longer expire soon (for example, because they earned more points), Smile does not send the event. |
| `Smile Reward Expiring` | 3 days before a customer's unused reward expires. Smile does not send this event for imported coupon codes. To set when rewards expire, refer to [configure reward expiry](https://help.smile.io/en/articles/4036282-configure-reward-expiry.md). |
| `Smile VIP Tier Achieved` | When a customer moves up to a higher VIP tier and Smile notifies the customer about it. Smile does not send this event when a customer joins their first VIP tier, keeps their tier, or moves down a tier. Smile also does not send it when it moves many customers at once without notifying them, for example when it recalculates all tiers, or when your VIP program is turned off. |

### Event properties

Each event includes properties with details about what happened. You can use these properties in journey messages and as filters. Click an event below to see its properties.

If a property has no value, Smile leaves it out of the event. For example, `rewardCode` is left out when a reward has no code. Add a fallback value in your messages for properties that are not always present.

> [accordion] Smile Order Rewarded
>
> | Property | Example | What it means |
> | - | - | - |
> | `orderNumber` | `1001` | The number of the order that earned the reward. |
> | `rewardType` | `points` | The type of reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `50 Points` | The name of the reward, as customers see it. Use it to tell the customer which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires, for rewards that expire. |

> [accordion] Smile Points Redeemed
>
> | Property | Example | What it means |
> | - | - | - |
> | `pointsSpent` | `500` | The number of points the customer spent. |
> | `pointsSpentDisplayName` | `500 Points` | The points spent, written with your program's name for points. |
> | `rewardType` | `coupon` | The type of reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `$5 off coupon` | The name of the reward, as customers see it. Use it to tell the customer which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires, for rewards that expire. |

> [accordion] Smile Birthday Rewarded
>
> | Property | Example | What it means |
> | - | - | - |
> | `rewardType` | `points` | The type of reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `200 Points` | The name of the reward, as customers see it. Use it to tell the customer which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires, for rewards that expire. |

> [accordion] Smile Referral Started
>
> | Property | Example | What it means |
> | - | - | - |
> | `senderFirstName` | `Alex` | The first name of the customer who sent the referral. |
> | `rewardType` | `coupon` | The type of the friend's reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `$10 off coupon` | The name of the friend's reward, as customers see it. Use it to tell the friend which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires, for rewards that expire. |

> [accordion] Smile Referral Completed
>
> | Property | Example | What it means |
> | - | - | - |
> | `receiverFirstName` | `Sam` | The first name of the friend who completed the referral. |
> | `rewardType` | `coupon` | The type of reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `$10 off coupon` | The name of the reward, as customers see it. Use it to tell the customer which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires, for rewards that expire. |

> [accordion] Smile Points Expiring
>
> | Property | Example | What it means |
> | - | - | - |
> | `expiringPoints` | `750` | The number of points that will expire. This is the customer's full points balance. |
> | `expiringPointsDisplayName` | `750 Points` | The expiring points, written with your program's name for points. |
> | `pointsExpiresAt` | `2026-12-01T00:00:00Z` | When the points expire. |
> | `daysUntilExpiry` | `30` | The number of days between the reminder and the expiry date. |

> [accordion] Smile Reward Expiring
>
> | Property | Example | What it means |
> | - | - | - |
> | `rewardType` | `coupon` | The type of reward. One of `points`, `coupon`, `store_credit`, or `gift_card`. |
> | `rewardDisplayName` | `$5 off coupon` | The name of the reward, as customers see it. Use it to tell the customer which reward they got. |
> | `rewardTerms` | `Valid on orders over $50.` | The reward's terms and conditions, such as a minimum order amount. |
> | `rewardCode` | `SMILE-AB12CD` | The discount code or gift card code that the customer uses at checkout. Left out for rewards that have no code, such as points and store credit. |
> | `rewardExpiresAt` | `2026-12-31T23:59:59Z` | When the reward expires. |

> [accordion] Smile VIP Tier Achieved
>
> | Property | Example | What it means |
> | - | - | - |
> | `vipTierName` | `Gold` | The name of the customer's new VIP tier. |
> | `vipTierImageUrl` | `https://cdn.example.com/gold.png` | A link to an image file of the new tier's icon. Use it to show the icon in your messages. |
> | `vipTierExpiresAt` | `2027-12-31T23:59:59Z` | When the customer's new tier expires, if your tiers expire. |
> | `nextVipTierName` | `Platinum` | The name of the next tier above the new tier. Left out if the customer is in your highest tier. |
> | `nextVipTierMilestone` | `1000` | The amount the customer must reach to enter the next tier. This is in points or in your store's currency, depending on your [VIP tier milestones](https://help.smile.io/en/articles/4036321-understand-vip-tier-milestones.md). |
> | `deltaToNextVipTier` | `250` | How many more points or how much more spend the customer needs to reach the next tier. |


## Related topics

- [Attentive integration setup](https://help.smile.io/en/integrations/attentive/setup.md)
- [Migrate to the new Attentive integration](https://help.smile.io/en/integrations/attentive/migrate.md)
- [Troubleshoot common Attentive integration issues](https://help.smile.io/en/integrations/attentive/troubleshoot.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.