Updated on November 4, 2026
A WhatsApp coupon code template is a marketing template with a “Copy code” button: when the customer taps it, the code is copied to the phone’s clipboard. The time-boxed version is the limited-time offer template, which shows an expiration date and a countdown timer next to the code. Both are created through Meta’s template API, go through review, and only receive the real code at send time.
This guide covers the JSON structure of both formats, the character limits Meta documents, display restrictions, and practical e-commerce examples.
Coupon vs. limited-time offer: which one to use
| Coupon template (copy code) | Limited-time offer (LTO) | |
|---|---|---|
| Category | Marketing | Marketing only |
| Copy code button | One per template | Yes, combined with a URL button |
| Max code length | 20 characters | 15 characters |
| Countdown timer | No | Yes, optional (has_expiration) |
| Footer | Not covered in the docs | Not supported |
| Header | Text (up to 60 characters) | Image or video |
| WhatsApp Web / desktop | Not supported on WhatsApp Web | The customer only sees a notice that the offer isn’t supported |
Both formats are templates of the official WhatsApp API and follow the same review and category rules as any other template.
Sources: Coupon code templates and Limited-time offer templates.
Rule of thumb: use the plain coupon for discounts without a tight deadline (welcome, birthday, replenishment). Use the limited-time offer when the deadline is the selling point (Black Friday, a 48-hour sale, free shipping today only).
Coupon template: how to create it
You create the template with POST /<WABA_ID>/message_templates. The example below uses named parameters (parameter_format: "named"), a quick-reply button for opting out, and the COPY_CODE button:
{
"name": "welcome_coupon",
"language": "en_US",
"category": "MARKETING",
"parameter_format": "named",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Your coupon is here!"
},
{
"type": "BODY",
"text": "Hi! Use code {{coupon}} to get {{discount}} off your first order.",
"example": {
"body_text_named_params": [
{ "param_name": "coupon", "example": "WELCOME10" },
{ "param_name": "discount", "example": "10%" }
]
}
},
{
"type": "BUTTONS",
"buttons": [
{ "type": "QUICK_REPLY", "text": "Stop promotions" },
{ "type": "COPY_CODE", "example": "WELCOME10" }
]
}
]
}
Documented limits:
- Text header: up to 60 characters.
- Body: up to 1,024 characters, with an example required for every variable.
- Quick-reply button: up to 25 characters.
- Copy code example (
COPY_CODE): up to 20 characters. - Named parameter names: lowercase letters and underscores.
- The copy code button label can’t be customized, and a template can have only one button of this type.
The create response returns id, status (usually PENDING) and category. If Meta recategorizes or rejects it, review the template wording, adjust it and resubmit.
Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →
Coupon template: how to send it
At send time you pass the body variable values and the real code in a button component with sub_type: "copy_code":
{
"messaging_product": "whatsapp",
"to": "16505551234",
"type": "template",
"template": {
"name": "welcome_coupon",
"language": { "code": "en_US" },
"components": [
{
"type": "body",
"parameters": [
{ "type": "text", "parameter_name": "coupon", "text": "SARAH10" },
{ "type": "text", "parameter_name": "discount", "text": "10%" }
]
},
{
"type": "button",
"sub_type": "copy_code",
"index": 1,
"parameters": [
{ "type": "coupon_code", "coupon_code": "SARAH10" }
]
}
]
}
}
The part that trips people up is index. It’s the button’s position in the template, zero-based. In this example the quick-reply button is 0 and the copy code button is 1, so the send call must use "index": 1. Because the code is passed at send time, you can generate a unique coupon per customer in your store platform and send each one in its own message, which makes redemption tracking easy. More on components in how to send a template message via the API.
Limited-time offer: how to create it
The limited-time offer adds a limited_time_offer component. Meta’s example combines an image header, a body with variables, the offer block, a copy code button and a URL button with a variable:
{
"name": "weekend_offer_48h",
"language": "en_US",
"category": "marketing",
"components": [
{
"type": "header",
"format": "image",
"example": { "header_handle": ["4::aW..."] }
},
{
"type": "limited_time_offer",
"limited_time_offer": {
"text": "Ends Sunday!",
"has_expiration": true
}
},
{
"type": "body",
"text": "{{1}}, use code {{2}} to get 15% off everything.",
"example": { "body_text": [["Sarah", "WKND15"]] }
},
{
"type": "buttons",
"buttons": [
{ "type": "copy_code", "example": "WKND15" },
{
"type": "url",
"text": "Shop the sale",
"url": "https://shop.example.com/sale?c={{1}}",
"example": ["https://shop.example.com/sale?c=wknd15"]
}
]
}
]
}
Documented limits for this format:
- Offer text (
limited_time_offer.text): up to 16 characters. - Body: up to 600 characters.
- Offer code: up to 15 characters.
- URL button: label up to 25 characters; URL up to 2,000 characters, with one variable at the end.
- Header: image or video, uploaded first through the Resumable Upload API to get the
header_handle. - No footer.
With has_expiration: true, the delivered message shows an expiration section with the code and a timer. The timer text can’t be customized, and it turns red if the customer views the message within the last hour before the offer expires.
Limited-time offer: how to send it
The send call includes the header media, the variables, the expiration time in milliseconds (Unix timestamp) and both buttons:
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "16505551234",
"type": "template",
"template": {
"name": "weekend_offer_48h",
"language": { "code": "en_US" },
"components": [
{
"type": "header",
"parameters": [{ "type": "image", "image": { "id": "1602186516975000" } }]
},
{
"type": "body",
"parameters": [
{ "type": "text", "text": "Sarah" },
{ "type": "text", "text": "WKND15" }
]
},
{
"type": "limited_time_offer",
"parameters": [
{
"type": "limited_time_offer",
"limited_time_offer": { "expiration_time_ms": 1796093999000 }
}
]
},
{
"type": "button",
"sub_type": "copy_code",
"index": 0,
"parameters": [{ "type": "coupon_code", "coupon_code": "WKND15" }]
},
{
"type": "button",
"sub_type": "url",
"index": 1,
"parameters": [{ "type": "text", "text": "wknd15" }]
}
]
}
}
Two things to watch:
expiration_time_msis in milliseconds (13 digits). In the example,1796093999000is December 1, 2026 at 02:59:59 UTC. In JavaScript,Date.parse("2026-11-30T23:59:59-03:00")already returns milliseconds; in Python, multiplytimestamp()by 1,000.- When the template has a copy code button, the URL button index must be 1; without a copy code button, it’s 0.
Meta also documents combining limited-time offers with payment request buttons (Pix, boleto or payment link), available only to businesses based in Brazil. Pix is Brazil’s instant payment system and boleto is a bank payment slip. Details are on Payment Request CTA Templates (Brazil) and in our article on Pix and payments in WhatsApp.
E-commerce examples
| Scenario | Format | Sample body |
|---|---|---|
| Welcome for opted-in sign-ups | Coupon | “Use {{coupon}} to get {{discount}} off your first order.” |
| Customer’s birthday | Coupon | “Happy birthday, {{name}}! Your gift: {{coupon}}.” |
| Replenishment (pet food, skincare) | Coupon | “Running low? {{coupon}} gives you {{discount}} on your item.” |
| Black Friday or weekend sale | Limited-time offer | “{{1}}, {{2}} gets you 20% off until Sunday.” |
| Free shipping today only | Limited-time offer | “Free shipping with {{2}} until midnight.” |
For seasonal planning and budget, see Black Friday on WhatsApp. To track the URL button click and the sale in GA4, use the dynamic URL with UTM pattern.
Cost, limits and best practices
- Cost: coupons and offers are marketing messages, priced per delivered message according to Meta’s rate card for the recipient’s country. For recipients in Brazil, since October 1, 2026 each delivered marketing template costs BRL 0.3217. Estimate first with the cost calculator.
- Consent: only send to people who opted in to receive offers.
- Per-user limit: Meta caps how many marketing messages each person receives; messages over the cap aren’t delivered (error 131049).
- Desktop users: since coupons don’t render in WhatsApp Web and offers only show a notice on Web and desktop, repeat the code in the body text. Desktop readers can still copy it.
- Real deadline: the countdown must match your store’s rule. Expiring the code before the time shown leads to complaints and reports.
How to do this with Vectalk
With Vectalk, the create and send payloads are the same as Meta’s. You can create the template in the dashboard, in the templates area with the Template Library, or through the Create Template endpoint (using an instance token). Sending goes to POST https://apis.vectalk.com.br/api/messages, as shown in send template.
Billing is prepaid: each delivered message is deducted from your balance, using Vectalk’s credit line on your number, with no card registered at Meta. Vectalk has no native bulk-sending tool in the dashboard: the campaign runs in your own system or in a tool connected to the API, which calls the endpoint for each contact. Create your account to try it.
Frequently asked questions
Can I use the copy code button in a utility template?
For coupon and limited-time offer templates, the documentation requires the marketing category. A copy code button also exists in authentication templates, but there it copies a one-time password, not a coupon. See WhatsApp OTP with authentication templates.
Can I change the “Copy code” button label?
No. Meta states that the copy code button text can’t be customized.
Can I send a different coupon to each customer?
Yes. The code goes in the coupon_code parameter at send time, so each message can carry a unique code, as long as it fits the character limit (20 for coupons, 15 for limited-time offers).
What does the customer see on WhatsApp Web?
Coupon templates aren’t supported on WhatsApp Web. For limited-time offers, people on Web or the desktop app see a message saying the offer isn’t supported. That’s why it pays to repeat the code in the body.
Does the countdown stop the coupon from working when it expires?
The timer counts down to the expiration_time_ms you sent. Whether the code stops working depends on your store or payment gateway: set the same expiry date on the coupon itself.
Official sources consulted on November 4, 2026: Coupon code templates, Limited-time offer templates, Payment Request CTA Templates (Brazil), Vectalk: Template, Vectalk: Create Template.
Put your business on the official WhatsApp
Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.
