Announce a limited flash sale with a discount code customers can copy. Promotional WhatsApp template for online stores. Free to copy and edit.
Share of submissions of this template that Meta approved.
✳Approval tip
Name the real end date and percentage in the body so reviewers see a concrete offer. COPY_CODE buttons are marketing-only.
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{{percent}}20{{first_name}}Maria{{date}}March 14</>For developers
The template as JSON for @talqui-oss/template-builder, and the Cloud API request that creates it. Replace the $ variables with your account values.
ecommerce_flash_sale_promo.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 with the Meta Cloud API
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"
}
]
}
]
}'+Related