Send Catalog Template Message

POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages

To send a single 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 Single Product Messages

NameDescription
typeRequired.
Specifies the type of interactive object. For single product messages set this value to "product".
actionRequired.

Request Body

{"messaging_product"=>"whatsapp", "recipient_type"=>"individual", "to"=>"{{Recipient-Phone-Number}}", "type"=>"template", "template"=>{"name"=>"intro_catalog_offer", "language"=>{"code"=>"en_US"}, "components"=>[{"type"=>"body", "parameters"=>[{"type"=>"text", "text"=>"100"}, {"type"=>"text", "text"=>"400"}, {"type"=>"text", "text"=>"3"}]}, {"type"=>"button", "sub_type"=>"CATALOG", "index"=>0, "parameters"=>[{"type"=>"action", "action"=>{"thumbnail_product_retailer_id"=>"2lc20305pt"}}]}]}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"messaging_product":"whatsapp","contacts":[{"input":"+16505551234","wa_id":"16505551234"}],"messages":[{"id":"wamid.HBgLMTY1MDM4Nzk0MzkVAgARGBJCOTY3NDc0NDFDRUI3NTA0Q0UA"}]}