Coupon Templates

Coupon templates let you send promotional messages with a copy-to-clipboard coupon code. When the user taps the coupon button, the code is copied to their clipboard for easy use. These templates can also include additional action and quick reply buttons.

Block Structure

A coupon template uses a single whatsapp-coupon block:

Component
Required
Max
Description

Header

No

1

Text, image, or file header

Body text

Yes

1

Main message text (max 1024 characters)

Footer text

No

1

Text below the body (max 60 characters)

Coupon action

Yes

1

Copy-code button for the coupon

Additional buttons

No

9

Link, phone, or quick reply buttons

Here's how a coupon template with a text header, body, footer, and additional link button renders on WhatsApp:

The "Copy offer code" button copies the coupon code to the user's clipboard. The link preview at the top is automatically generated by WhatsApp from the link button URL.


Coupon templates support three header types (all optional):

Text header:

Image header:

File/video header:

circle-info

If you need to host media, use the Media Library API to upload files and get a mediaUrl. See Image Template Blocks -- Uploading media for the full upload flow.

Body

The body is mandatory. It should describe the offer and typically includes the coupon code variable.

Optional text footer, max 60 characters.

Coupon Action

The coupon action creates a "Copy code" button. When tapped, the code is copied to the user's clipboard.

Property
Required
Description

code

Yes

The coupon code to copy. Can be a static string or a variable.

circle-info

When using a variable for the coupon code, the same variable should appear in the body text so the user can see the code before copying it.

Additional Buttons

Coupon templates can include up to 9 additional buttons alongside the coupon action (for a combined total matching the standard button limits). These follow the same types and ordering rules as text templates.

See Text Template Blocks -- Buttons for button types and ordering rules.


Complete Example


Last updated

Was this helpful?