Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Mandatory

Type

Description

customerPhoneNumber

Status
colourRed
titleYES

Status
titleSTRING

customer phone number

servicePhoneNumber

Status
colourRed
titleyes

Status
titleSTRING

whatsapp business number

templateName

Status
colourRed
titleYES

Status
titleSTRING

template name

templateNamespace

Status
colourRed
titleYES

Status
titleSTRING

template namespace

templateMessage

Status
colourRed
titleYES

Status
titleSTRING

template text message

templateData

Status
colourRed
titleYES

Status
titlearray

array of strings representing the text message parameters. (pass empty array in case there are non no parameters)

document

Status
colourRed
titleYES

Status
titleSTRING

base64 string (only for template_img or template_doc type)

documentType

Status
colourRed
titleYES

Status
titleSTRING

document extension (only for template_img or template_doc type)

caption

Status
colourRed
titleYES

Status
titleSTRING

caption (only for template_img or template_doc type)

fileName

Status
colourRed
titleYES

Status
titleSTRING

file name (extension included) (only for template_img or template_doc type)

language

Status
colourRed
titleYES

Status
titleSTRING

template language

policy

Status
titleno

Status
titleSTRING

template policy

Returns:

Type

Description

JS Promise

 

A Javascript Promise that return an object containing the following properties:

  • result: if true, the service response was performed correctly

  • error: contains the error description if an error has occurred in the request

Example:

template_txt messageObj:

...