post
https://www.fast2sms.com/dev/whatsapp///messages
Send a template message that includes a Multi-Product Message (MPM) button. This allows you to define specific sections and products (by retailer ID) that populate the menu when the user clicks the button.
Example Request Body
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "16505551234",
"type": "template",
"template": {
"name": "abandoned_cart",
"language": {
"code": "en_US"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "text",
"text": "Pablo"
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "10OFF"
}
]
},
{
"type": "button",
"sub_type": "mpm",
"index": 0,
"parameters": [
{
"type": "action",
"action": {
"thumbnail_product_retailer_id": "2lc20305pt",
"sections": [
{
"title": "Popular Bundles",
"product_items": [
{ "product_retailer_id": "2lc20305pt" },
{ "product_retailer_id": "nseiw1x3ch" }
]
},
{
"title": "Premium Packages",
"product_items": [
{ "product_retailer_id": "n6k6x0y7oe" }
]
}
]
}
}
]
}
]
}
}