Sends a template message to a whatsapp customer.
Status | ||||
---|---|---|---|---|
|
Path Variables:
Name | Mandatory | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
domain |
|
| Unique domain identifier |
Authorization: Status
Request Body:
Type:
Status | ||
---|---|---|
|
Name | Mandatory | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
customerPhoneNumber |
|
| customer phone number | ||||||||||
servicePhoneNumber |
|
| whatsapp business number | ||||||||||
templateName |
|
| template name | ||||||||||
language |
|
| template language | ||||||||||
header |
|
| template header (null if there is no header or no multimedia header). See table below for details. | ||||||||||
headerData |
|
| array of strings representing the header parameters. (pass empty array in case there are no parameters) | ||||||||||
bodyData |
|
| array of strings representing the body parameters. (pass empty array in case there are no parameters) | ||||||||||
dynamicUrl |
|
| array of string representing the url parameter. (pass empty array in case there is no url parameter) |
Header object:
Name | Mandatory | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
type |
|
| header type. Can assume one of the following values:
| ||||||||||
data |
|
| base64 string | ||||||||||
documentType |
|
| document extension | ||||||||||
fileName |
|
| file name (extension included) |
Response:
Type:
Status | ||
---|---|---|
|
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
result |
| If true, the service response was performed correctly | ||||||||
error |
| Contains the error description if an error has occurred in the request |
Example:
Request
http://<hostname>:<port>/livechat/default/sendExternalTemplateMessageToCtlivesocial
...