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

NameDescription
messaging_productRequired.
Always set this value to "whatsapp".
recipient_typeOptional.
Currently, you can only send messages to individuals. Set this value to "individual".

Default: individual
toRequired.
WhatsApp ID or phone number for the person you want to send a message to.

See Phone Numbers, Formatting for more information.
typeRequired.
To send single product messages, set this string value to "interactive".
interactiveRequired.
The interactive object associated with the single product message.

Interactive Object Parameters specific to Multi-Product Messages

NameDescription
typeRequired.
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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;messaging_product&quot;:&quot;whatsapp&quot;,&quot;contacts&quot;:[{&quot;input&quot;:&quot;+1-631-555-5555&quot;,&quot;wa_id&quot;:&quot;16315555555&quot;}],&quot;messages&quot;:[{&quot;id&quot;:&quot;wamid.gBGGFlaCGg0xcvAdgmZ9plHrf2Mh-o&quot;}]}