Marketing messaging is pushing the boundaries of mobile commercial communication, requiring regulation by authorities and service providers, to keep an appropriate use of this channel free of spam and other issues. Particularly, Meta Policies regarding the use of WhatsApp for commercial messaging is tight regulated to protect WhatsApp subscribers from unwanted messages.
As a fast-evolving industry, new requirements are set, and we at Syniverse, speedup to provide our customers support for the latest regulations in the field.
As part of Meta strategies to implement regulations on the commercial use of WhatsApp, Meta had implemented a template pre-registration process that include template category classification. The category for the use case in this article: MARKETING.
Marketing templates are the most flexible WhatsApp template category. It enables the enterprise to perform variety of goals from create awareness of business, products and services to drive sales by sending promotional offers related to sales events, coupons or any content to drive sales.
Purpose of this document
This document provides information on how to create a MARKETING WhatsApp template using SCG APIs. Meta has functionality for this template category and here we will provide examples on how to create an SCG WhatsApp template using some of the available components.
SCG WhatsApp Template Management API
The SCG WhatsApp templates are the Meta regulated templates created to be used by the SCG API exclusively for the WhatsApp channel / type message. As an alternative for the SCG portal, the SCG API provides a way to manage SCG WhatsApp templates by calling API methods directly.
Example: creating a MARKETING Template by API call
This example shows the SCG API call to create a WhatsApp MARKETING template.
We could use the Postman to directly execute an SCG API call with a POST request to create a simple template:
When executed, SCG API response looks like:
The cURL command to create the SCG WhatsApp template is:
curl -X POST 'https://api.syniverse.com/scg-external-api/api/v1/messaging/external_message_templates/{WABA}' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {TOKEN}' \
-d '{
"language": "en_US",
"name": "da_test_003",
"category": "MARKETING",
"components": [
{
"type": "HEADER",
"format": "TEXT",
"text": "Winner Winner Chicken Dinner"
},
{
"text": "Hey {{1}}, We are happy to inform you that you are the winner of competition. Stay tuned for the upcoming notifications!\\n Truly yours",
"type": "BODY",
"example": {
"body_text": [
[
"Manuel"
]
]
}
},
{
"type": "FOOTER",
"text": "text in footer"
}
]
}'
Example: Using a MARKETING Template
To send the MARKETING message using the new template in Postman
The mobile device will get the MARKETING messages that looks like the above image.
0 Comments