# Payment failed notice WhatsApp template

> Tell customers a subscription payment failed on WhatsApp, with next retry date and a link to update their card. Utility template.

- Category: Utility
- Industry: SaaS and software
- Use case: Payment reminder
- Language: en_US
- Approval rate: 97%
- Page: https://template-builder.dev/whatsapp-template/saas-invoice-payment-failed
- JSON: https://template-builder.dev/whatsapp-template/saas-invoice-payment-failed.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoic2Fhc19pbnZvaWNlX3BheW1lbnRfZmFpbGVkIiwibGFuZ3VhZ2UiOiJlbl9VUyIsImNhdGVnb3J5IjoiVVRJTElUWSIsImhlYWRlciI6eyJ0eXBlIjoiVEVYVCIsInRleHQiOiJQYXltZW50IGZhaWxlZCJ9LCJib2R5Ijp7InRleHQiOiJIaSB7e2ZpcnN0X25hbWV9fSwgd2UgY291bGQgbm90IHByb2Nlc3MgeW91ciAqe3thbW91bnR9fSogcGF5bWVudCBmb3Ige3twbGFufX0gdXNpbmcgdGhlIGNhcmQgZW5kaW5nIGluIHt7bGFzdDR9fS4gV2Ugd2lsbCB0cnkgYWdhaW4gb24ge3tyZXRyeV9kYXRlfX0uIFVwZGF0ZSB5b3VyIGNhcmQgdG8gYXZvaWQgaW50ZXJydXB0aW9uLiJ9LCJmb290ZXIiOnsidGV4dCI6Ikx1bWVuIEJpbGxpbmcifSwiYnV0dG9ucyI6W3sidHlwZSI6IlVSTCIsInRleHQiOiJVcGRhdGUgY2FyZCIsInVybCI6Imh0dHBzOi8vbHVtZW4uYXBwL2JpbGxpbmcve3tyZWZ9fSJ9XSwidmFyaWFibGVzIjp7ImZpcnN0X25hbWUiOnsiZXhhbXBsZSI6IkJlbiJ9LCJhbW91bnQiOnsiZXhhbXBsZSI6IiQ0OS4wMCJ9LCJwbGFuIjp7ImV4YW1wbGUiOiJMdW1lbiBQcm8ifSwibGFzdDQiOnsiZXhhbXBsZSI6IjQyNDIifSwicmV0cnlfZGF0ZSI6eyJleGFtcGxlIjoiTm92IDgifSwicmVmIjp7ImV4YW1wbGUiOiJhY2N0XzEwMjEifX19

## How to get it approved

State the amount, last 4 digits and retry date. A single update-card link is all you need.

## Message text

Payment failed
Hi {{first_name}}, we could not process your *{{amount}}* payment for {{plan}} using the card ending in {{last4}}. We will try again on {{retry_date}}. Update your card to avoid interruption.
Lumen Billing

## Variables

- `{{first_name}}`: Ben
- `{{amount}}`: $49.00
- `{{plan}}`: Lumen Pro
- `{{last4}}`: 4242
- `{{retry_date}}`: Nov 8
- `{{ref}}`: acct_1021

## Template JSON

```json
{
  "name": "saas_invoice_payment_failed",
  "language": "en_US",
  "category": "UTILITY",
  "header": {
    "type": "TEXT",
    "text": "Payment failed"
  },
  "body": {
    "text": "Hi {{first_name}}, we could not process your *{{amount}}* payment for {{plan}} using the card ending in {{last4}}. We will try again on {{retry_date}}. Update your card to avoid interruption."
  },
  "footer": {
    "text": "Lumen Billing"
  },
  "buttons": [
    {
      "type": "URL",
      "text": "Update card",
      "url": "https://lumen.app/billing/{{ref}}"
    }
  ],
  "variables": {
    "first_name": {
      "example": "Ben"
    },
    "amount": {
      "example": "$49.00"
    },
    "plan": {
      "example": "Lumen Pro"
    },
    "last4": {
      "example": "4242"
    },
    "retry_date": {
      "example": "Nov 8"
    },
    "ref": {
      "example": "acct_1021"
    }
  }
}
```

## 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": "saas_invoice_payment_failed",
  "language": "en_US",
  "category": "UTILITY",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Payment failed"
    },
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, we could not process your *{{amount}}* payment for {{plan}} using the card ending in {{last4}}. We will try again on {{retry_date}}. Update your card to avoid interruption.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Ben"
          },
          {
            "param_name": "amount",
            "example": "$49.00"
          },
          {
            "param_name": "plan",
            "example": "Lumen Pro"
          },
          {
            "param_name": "last4",
            "example": "4242"
          },
          {
            "param_name": "retry_date",
            "example": "Nov 8"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Lumen Billing"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "URL",
          "text": "Update card",
          "url": "https://lumen.app/billing/{{1}}",
          "example": [
            "https://lumen.app/billing/acct_1021"
          ]
        }
      ]
    }
  ]
}'
```
