# Digital purchase receipt WhatsApp template

> Send a digital receipt after an in-store purchase with the total and a link to the full invoice. Payment confirmation template for retail.

- Category: Utility
- Industry: Retail
- Use case: Payment confirmation
- Language: en_US
- Approval rate: 86%
- Page: https://template-builder.dev/whatsapp-template/retail-purchase-receipt
- JSON: https://template-builder.dev/whatsapp-template/retail-purchase-receipt.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoicmV0YWlsX3B1cmNoYXNlX3JlY2VpcHQiLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJVVElMSVRZIiwiYm9keSI6eyJ0ZXh0IjoiVGhhbmtzIGZvciBzaG9wcGluZyBhdCB7e3N0b3JlX25hbWV9fSwge3tmaXJzdF9uYW1lfX0uIFdlIHJlY2VpdmVkIHlvdXIgcGF5bWVudCBvZiB7e2Ftb3VudH19IG9uIHt7ZGF0ZX19LiBZb3VyIHJlY2VpcHQgaXMgcmVhZHkgYmVsb3cuIn0sImJ1dHRvbnMiOlt7InR5cGUiOiJVUkwiLCJ0ZXh0IjoiVmlldyByZWNlaXB0IiwidXJsIjoiaHR0cHM6Ly9hY21lLmNvbS9yZWNlaXB0cy97e29yZGVyX2lkfX0ifV0sInZhcmlhYmxlcyI6eyJzdG9yZV9uYW1lIjp7ImV4YW1wbGUiOiJBY21lIFN0b3JlIn0sImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6Ik1hcmlhIn0sImFtb3VudCI6eyJleGFtcGxlIjoiJDQ5LjkwIn0sImRhdGUiOnsiZXhhbXBsZSI6Ik1hcmNoIDE0In0sIm9yZGVyX2lkIjp7ImV4YW1wbGUiOiI0NTEyIn19fQ

## How to get it approved

Only send it to customers who gave their number at checkout and agreed to receive receipts. Keep marketing out of it.

## Message text

Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below.

## Variables

- `{{store_name}}`: Acme Store
- `{{first_name}}`: Maria
- `{{amount}}`: $49.90
- `{{date}}`: March 14
- `{{order_id}}`: 4512

## Template JSON

```json
{
  "name": "retail_purchase_receipt",
  "language": "en_US",
  "category": "UTILITY",
  "body": {
    "text": "Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below."
  },
  "buttons": [
    {
      "type": "URL",
      "text": "View receipt",
      "url": "https://acme.com/receipts/{{order_id}}"
    }
  ],
  "variables": {
    "store_name": {
      "example": "Acme Store"
    },
    "first_name": {
      "example": "Maria"
    },
    "amount": {
      "example": "$49.90"
    },
    "date": {
      "example": "March 14"
    },
    "order_id": {
      "example": "4512"
    }
  }
}
```

## 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": "retail_purchase_receipt",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "BODY",
      "text": "Thanks for shopping at {{store_name}}, {{first_name}}. We received your payment of {{amount}} on {{date}}. Your receipt is ready below.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "store_name",
            "example": "Acme Store"
          },
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "amount",
            "example": "$49.90"
          },
          {
            "param_name": "date",
            "example": "March 14"
          }
        ]
      }
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "View receipt",
          "url": "https://acme.com/receipts/{{1}}",
          "example": [
            "https://acme.com/receipts/4512"
          ]
        }
      ]
    }
  ]
}'
```
