# Loyalty fields on contacts

> The loyalty fields Leal adds to each member's contact in your CRM, what they hold, and how to use them in emails, texts and workflows.

When a store is connected to your CRM, Leal adds a set of loyalty fields to the contacts in that client account and keeps them up to date for every member. Use them in emails and texts (for example "You're 2 stamps away from a free coffee"), in smart lists, and in workflow conditions.

Leal creates the fields when the store is connected. If a field with the same name already exists, Leal uses it rather than adding a second one. If someone deletes one, Leal adds it again the next day.

## The fields

| Field | Merge field | What it holds |
| --- | --- | --- |
| Loyalty Stamps | `{{contact.loyalty_stamps}}` | Stamps on the member's card now |
| Loyalty Stamps To Next Reward | `{{contact.loyalty_stamps_to_next_reward}}` | Stamps still needed for the next reward. 0 when there is no reward left to reach |
| Loyalty Next Reward | `{{contact.loyalty_next_reward}}` | The name of the next reward they're working towards |
| Loyalty Rewards Available | `{{contact.loyalty_rewards_available}}` | How many rewards they have enough stamps for |
| Loyalty Rewards Available Names | `{{contact.loyalty_rewards_available_names}}` | The names of those rewards |
| Loyalty Card Status | `{{contact.loyalty_card_status}}` | **Issued**, **Added to wallet**, **Completed** or **Expired** |
| Loyalty Card Name | `{{contact.loyalty_card_name}}` | The name of their loyalty card |
| Loyalty Card Link | `{{contact.loyalty_card_link}}` | One link that opens Apple Wallet on an iPhone, Google Wallet on Android, and a page with both buttons on a computer |
| Loyalty Apple Wallet Link | `{{contact.loyalty_apple_wallet_link}}` | The Apple Wallet link on its own |
| Loyalty Google Wallet Link | `{{contact.loyalty_google_wallet_link}}` | The Google Wallet link on its own |
| Loyalty Referral Link | `{{contact.loyalty_referral_link}}` | Their invite link, when the card has referrals turned on |
| Loyalty Total Visits | `{{contact.loyalty_total_visits}}` | Times they've been given stamps for a visit (scans, till sales and automations, not welcome or referral bonuses) |
| Loyalty Last Visit | `{{contact.loyalty_last_visit}}` | The date of their last visit |
| Loyalty Member Since | `{{contact.loyalty_member_since}}` | The date they joined |
| Loyalty Store | `{{contact.loyalty_store}}` | Your store's name |

Your CRM builds the merge field from the field's name. If a field already existed under that name in your account, check its merge field in your CRM's custom field settings.

## When they update

Leal writes the fields a few seconds after a member joins, gets a card, earns or loses stamps, unlocks or redeems a reward, or is rewarded for a referral. Several changes close together are written once.

**Loyalty Card Status** changes to **Added to wallet** the next time the fields are written after the member adds their card to Apple Wallet or Google Wallet.

## Don't edit them by hand

The fields show what's in Leal. Changing **Loyalty Stamps** in your CRM doesn't change the member's card, and Leal overwrites it at the next update. To add or take away stamps from your CRM, use the **Add stamps** and **Remove stamps** workflow actions, which record the change in the member's stamp history. See [Workflows](https://docs.getleal.com/integrations/crm/workflows).

## Good habits

- Use **Loyalty Card Link** in texts. It's one link that works on any phone, so you don't need separate iPhone and Android messages.
- Build a smart list on **Loyalty Card Status** is **Issued** to find members who have a card but haven't added it to their wallet yet.
