{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "PHONE_NUMBER",
"type": "interactive",
"interactive": {
"type": "product_list",
"header":{
"type": "text",
"text": "header-content"
},
"body": {
"text": "body-content"
},
"footer": {
"text": "footer-content"
},
"action": {
"catalog_id": "CATALOG_ID",
"sections": [
{
"title": "section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" },
{ "product_retailer_id": "product-SKU-in-catalog" }
]
},
{
"title": "section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" },
{ "product_retailer_id": "product-SKU-in-catalog" }
]
}
]
}
}
}
{
"recipient_type": "individual",
"to" : "whatsapp-id",
"type": "interactive",
"interactive":
{
"type": "product_list",
"Header":{
"type": "text",
"text": "text-header-content"
},
"body":{
"text": "text-body-content"
},
"footer":{
"text":"text-footer-content"
},
"action":{
"catalog_id":"catalog-id",
"sections": [
{
"title": "section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" },
{ "product_retailer_id": "product-SKU-in-catalog" }
]},
{
"title": "the-section-title",
"product_items": [
{ "product_retailer_id": "product-SKU-in-catalog" }
]}
]
}
}
}
| Key | Description | Constraints |
|---|
| apikey | Apikey of the account where the app is to be created | Should be a valid gupshup.io apikey |
| source | Source Phone Number | |
| src.name | Source App Name | |
| destination | Destination phone number | |
| message | Catalog message payload | |
| channel | Channel to send messages to | - Must be WhatsApp |
| Key | Description | Constraints |
|---|
| type | Message type | Should be product_detailsfor product messages |
| sub_type | Message Sub Type | Should be product_detailsfor product messages |
| Header | Message header content | |
| body | Message Body Content | |
| footer | Message Footer content | Optional |
| section | Sections of product to use in multiproduct catalog | Should contain valid product IDs from the catalog connected to Waba |