I have been trying to send a proactive(first time message using a template) to whatsapp number. the post request[1] is being made but request status[2] is shown as ACCEPTED not as SENT and because of that only msg are not being sent.
my body for sending msg looks like following.
{
"from": {
"phone_number": "+9199999999999"
},
"provider": "whatsapp",
"to": [
{
"phone_number": "+919999999999"
}
],
"data": {
"message_template": {
"storage":"conversation",
"template_name": "template_name",
"namespace": "xxxxxx-xxxxx-xxxxxx-xxxxxxxxx-xxxxxx",
"language": {
"policy": "deterministic",
"code": ""
},
"body": {
"params": [
{
"data": "XYZ"
},
{
"data": "122"
},
{
"data": "123"
}
]
}
}
}
}
[1] - https://api.freshchat.com/v2/outbound-messages/whatsapp
[2] - http://api.freshchat.com/v2/outbound-messages?request_id=xxxxxx-xxxxxx