Send Multi-Product Message
POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages
To send a multi-product message, make a POST call to the /{{Version}}/phone_number/messages endpoint.
This request uses an interactive object and parameter type should be set to interactive. The interactive parameter must also be set to the interactive object associated with the single product message.
Parameters
| Name | Description |
|---|---|
messaging_product | Required. Always set this value to "whatsapp". |
recipient_type | Optional. Currently, you can only send messages to individuals. Set this value to "individual". Default: individual |
to | Required. WhatsApp ID or phone number for the person you want to send a message to. See Phone Numbers, Formatting for more information. |
type | Required. To send single product messages, set this string value to "interactive". |
interactive | Required. The interactive object associated with the single product message. |
Interactive Object Parameters specific to Multi-Product Messages
| Name | Description |
|---|---|
type | Required. Specifies the type of interactive object. For multi-product messages set this value to "product_list" |
Request Body
{"messaging_product"=>"whatsapp", "recipient_type"=>"individual", "to"=>"{{Recipient-Phone-Number}}", "type"=>"interactive", "interactive"=>{"type"=>"product_list", "header"=>{"type"=>"<HEADER_TYPE>", "text"=>"<YOUR_TEXT_HEADER_CONTENT>"}, "body"=>{"text"=>"<YOUR_TEXT_BODY_CONTENT>"}, "footer"=>{"text"=>"<YOUR_TEXT_FOOTER_CONTENT>"}, "action"=>{"catalog_id"=>"146265584024623", "sections"=>[{"title"=>"<SECTION1_TITLE>", "product_items"=>[{"product_retailer_id"=>"<YOUR_PRODUCT1_SKU_IN_CATALOG>"}, {"product_retailer_id"=>"<YOUR_SECOND_PRODUCT1_SKU_IN_CATALOG>"}]}, {"title"=>"<SECTION2_TITLE>", "product_items"=>[{"product_retailer_id"=>"<YOUR_PRODUCT2_SKU_IN_CATALOG>"}, {"product_retailer_id"=>"<YOUR_SECOND_PRODUCT2_SKU_IN_CATALOG>"}]}]}}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"messaging_product":"whatsapp","contacts":[{"input":"+1-631-555-5555","wa_id":"16315555555"}],"messages":[{"id":"wamid.gBGGFlaCGg0xcvAdgmZ9plHrf2Mh-o"}]}