...
Name | Mandatory | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
customerPhoneNumber |
|
| customer phone number | ||||||||||
servicePhoneNumber |
|
| whatsapp business number | ||||||||||
templateName |
|
| template name | ||||||||||
templateNamespace |
|
| template namespace | ||||||||||
templateMessage |
|
| template text message | ||||||||||
templateData |
|
| array of strings representing the text message parameters. (pass empty array in case there are non no parameters) | ||||||||||
document |
|
| base64 string (only for template_img or template_doc type) | ||||||||||
documentType |
|
| document extension (only for template_img or template_doc type) | ||||||||||
caption |
|
| caption (only for template_img or template_doc type) | ||||||||||
fileName |
|
| file name (extension included) (only for template_img or template_doc type) | ||||||||||
language |
|
| template language | ||||||||||
policy |
|
| template policy |
Returns:
Type | Description |
---|---|
JS Promise |
A Javascript Promise that return an object containing the following properties:
|
Example:
template_txt messageObj:
...