# Loyalty points earned WhatsApp template

> Tell shoppers how many reward points they earned and how close they are to the next perk. Loyalty reward WhatsApp template.

- Category: Marketing
- Industry: E-commerce
- Use case: Loyalty reward
- Language: en_US
- Approval rate: 77%
- Page: https://template-builder.dev/whatsapp-template/ecommerce-loyalty-points-earned
- JSON: https://template-builder.dev/whatsapp-template/ecommerce-loyalty-points-earned.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZWNvbW1lcmNlX2xveWFsdHlfcG9pbnRzX2Vhcm5lZCIsImxhbmd1YWdlIjoiZW5fVVMiLCJjYXRlZ29yeSI6Ik1BUktFVElORyIsImJvZHkiOnsidGV4dCI6Ik5pY2Ugb25lLCB7e2ZpcnN0X25hbWV9fSEgWW91ciBsYXRlc3Qgb3JkZXIgZWFybmVkIHlvdSAqe3twb2ludHN9fSBwb2ludHMqLiBZb3UncmUgbm93IHt7dGllcn19IHN0YXR1cywgYW5kIGEge3tyZXdhcmR9fSBpcyBjbG9zZS4ifSwiZm9vdGVyIjp7InRleHQiOiJSZXBseSBTVE9QIHRvIG9wdCBvdXQifSwiYnV0dG9ucyI6W3sidHlwZSI6IlVSTCIsInRleHQiOiJTZWUgbXkgcmV3YXJkcyIsInVybCI6Imh0dHBzOi8vYWNtZS5jb20vcmV3YXJkcyJ9XSwidmFyaWFibGVzIjp7ImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6Ik1hcmlhIn0sInBvaW50cyI6eyJleGFtcGxlIjoiMjUwIn0sInRpZXIiOnsiZXhhbXBsZSI6IkdvbGQifSwicmV3YXJkIjp7ImV4YW1wbGUiOiIkMTAgY3JlZGl0In19fQ

## How to get it approved

Mention the actual balance and what it unlocks. Loyalty updates count as marketing, so include an opt-out footer.

## Message text

Nice one, {{first_name}}! Your latest order earned you *{{points}} points*. You're now {{tier}} status, and a {{reward}} is close.
Reply STOP to opt out

## Variables

- `{{first_name}}`: Maria
- `{{points}}`: 250
- `{{tier}}`: Gold
- `{{reward}}`: $10 credit

## Template JSON

```json
{
  "name": "ecommerce_loyalty_points_earned",
  "language": "en_US",
  "category": "MARKETING",
  "body": {
    "text": "Nice one, {{first_name}}! Your latest order earned you *{{points}} points*. You're now {{tier}} status, and a {{reward}} is close."
  },
  "footer": {
    "text": "Reply STOP to opt out"
  },
  "buttons": [
    {
      "type": "URL",
      "text": "See my rewards",
      "url": "https://acme.com/rewards"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Maria"
    },
    "points": {
      "example": "250"
    },
    "tier": {
      "example": "Gold"
    },
    "reward": {
      "example": "$10 credit"
    }
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "ecommerce_loyalty_points_earned",
  "language": "en_US",
  "category": "MARKETING",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "Nice one, {{first_name}}! Your latest order earned you *{{points}} points*. You'\''re now {{tier}} status, and a {{reward}} is close.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "points",
            "example": "250"
          },
          {
            "param_name": "tier",
            "example": "Gold"
          },
          {
            "param_name": "reward",
            "example": "$10 credit"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Reply STOP to opt out"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "See my rewards",
          "url": "https://acme.com/rewards"
        }
      ]
    }
  ]
}'
```
