Coupon Code Templates

Coupon Code Templates are only available while using Cloud API.

Coupon code templates are marketing templates that display a single copy code button. When tapped, the code is copied to the customer's clipboard.

Limitations

  • Coupon code templates are currently not supported by the WhatsApp Web Client.

  • Codes are limited to 15 characters.

  • Button text cannot be customized.

  • Templates are limited to one copy code button.

Template Creation

POST [base-url]/v1/configs/templates

Headers

Name
Type
Description

D360-API-KEY

string

Properties

Placeholder
Description
Example Value

<NAME>

String

Required.

Template name.

Maximum 512 characters.

fall2023_promotion

<LANGUAGE>

Enum

Required.

Template language and locale code.

en_US

<EXAMPLE>

String

Required.

Coupon code to be copied when tapped.

Maximum 15 characters.

25OFF

Example Post Body

Example Request

Sending Coupon Templates

POST https://waba-v2.360dialog.io/messages

Properties

Placeholder
Description
Example Value

<TO>

String

Required.

The WhatsApp ID or phone number of the customer to send the message to. See Phone Number Formats.

+16505551234

<NAME>

String

Required.

Name of the template to be sent.

coupon_code_fall2023_25off

<CODE>

String

Required.

The template's language and locale code.

en_US

<INDEX>

Integer

Required.

Indicates order in which button should appear, if the template uses multiple buttons.

Buttons are zero-indexed, so setting value to 0 will cause the button to appear first, and another button with an index of 1 will appear next, etc.

0

<COUPON_CODE>

String

Required.

The coupon code to be copied when the customer taps the button.

25OFF

Post Body Example

Example Request

Last updated

Was this helpful?