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
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 Single Product Messages
Name | Description |
---|---|
type
|
Required
.
Specifies the type of interactive object. For single product messages set this value to
"product"
.
|
action
|
Required
.
|
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
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
RESPONSES
status: OK
{"messaging_product":"whatsapp","contacts":[{"input":"+16505551234","wa_id":"16505551234"}],"messages":[{"id":"wamid.HBgLMTY1MDM4Nzk0MzkVAgARGBJCOTY3NDc0NDFDRUI3NTA0Q0UA"}]}