# Flash sale announcement WhatsApp template

> Announce a limited flash sale with a discount code customers can copy. Promotional WhatsApp template for online stores. Free to copy and edit.

- Category: Marketing
- Industry: E-commerce
- Use case: Promotion
- Language: en_US
- Approval rate: 80%
- Page: https://template-builder.dev/whatsapp-template/ecommerce-flash-sale-promo
- JSON: https://template-builder.dev/whatsapp-template/ecommerce-flash-sale-promo.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoiZWNvbW1lcmNlX2ZsYXNoX3NhbGVfcHJvbW8iLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJNQVJLRVRJTkciLCJoZWFkZXIiOnsidHlwZSI6IlRFWFQiLCJ0ZXh0IjoiRmxhc2ggc2FsZToge3twZXJjZW50fX0lIG9mZiJ9LCJib2R5Ijp7InRleHQiOiJIaSB7e2ZpcnN0X25hbWV9fSwgb3VyIGZsYXNoIHNhbGUgaXMgb24hIFRha2UgKnt7cGVyY2VudH19JSBvZmYqIGV2ZXJ5dGhpbmcgdW50aWwge3tkYXRlfX0uIFVzZSB5b3VyIGNvZGUgYXQgY2hlY2tvdXQuIn0sImZvb3RlciI6eyJ0ZXh0IjoiUmVwbHkgU1RPUCB0byBvcHQgb3V0In0sImJ1dHRvbnMiOlt7InR5cGUiOiJDT1BZX0NPREUiLCJleGFtcGxlIjoiU0FWRTE1In0seyJ0eXBlIjoiVVJMIiwidGV4dCI6IlNob3AgdGhlIHNhbGUiLCJ1cmwiOiJodHRwczovL2FjbWUuY29tL3NhbGUifV0sInZhcmlhYmxlcyI6eyJwZXJjZW50Ijp7ImV4YW1wbGUiOiIyMCJ9LCJmaXJzdF9uYW1lIjp7ImV4YW1wbGUiOiJNYXJpYSJ9LCJkYXRlIjp7ImV4YW1wbGUiOiJNYXJjaCAxNCJ9fX0

## How to get it approved

Name the real end date and percentage in the body so reviewers see a concrete offer. COPY_CODE buttons are marketing-only.

## Message text

Flash sale: {{percent}}% off
Hi {{first_name}}, our flash sale is on! Take *{{percent}}% off* everything until {{date}}. Use your code at checkout.
Reply STOP to opt out

## Variables

- `{{percent}}`: 20
- `{{first_name}}`: Maria
- `{{date}}`: March 14

## Template JSON

```json
{
  "name": "ecommerce_flash_sale_promo",
  "language": "en_US",
  "category": "MARKETING",
  "header": {
    "type": "TEXT",
    "text": "Flash sale: {{percent}}% off"
  },
  "body": {
    "text": "Hi {{first_name}}, our flash sale is on! Take *{{percent}}% off* everything until {{date}}. Use your code at checkout."
  },
  "footer": {
    "text": "Reply STOP to opt out"
  },
  "buttons": [
    {
      "type": "COPY_CODE",
      "example": "SAVE15"
    },
    {
      "type": "URL",
      "text": "Shop the sale",
      "url": "https://acme.com/sale"
    }
  ],
  "variables": {
    "percent": {
      "example": "20"
    },
    "first_name": {
      "example": "Maria"
    },
    "date": {
      "example": "March 14"
    }
  }
}
```

## 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_flash_sale_promo",
  "language": "en_US",
  "category": "MARKETING",
  "parameter_format": "NAMED",
  "components": [
    {
      "type": "HEADER",
      "format": "TEXT",
      "text": "Flash sale: {{percent}}% off",
      "example": {
        "header_text_named_params": [
          {
            "param_name": "percent",
            "example": "20"
          }
        ]
      }
    },
    {
      "type": "BODY",
      "text": "Hi {{first_name}}, our flash sale is on! Take *{{percent}}% off* everything until {{date}}. Use your code at checkout.",
      "example": {
        "body_text_named_params": [
          {
            "param_name": "first_name",
            "example": "Maria"
          },
          {
            "param_name": "percent",
            "example": "20"
          },
          {
            "param_name": "date",
            "example": "March 14"
          }
        ]
      }
    },
    {
      "type": "FOOTER",
      "text": "Reply STOP to opt out"
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "COPY_CODE",
          "example": "SAVE15"
        },
        {
          "type": "URL",
          "text": "Shop the sale",
          "url": "https://acme.com/sale"
        }
      ]
    }
  ]
}'
```
