{
"message": "Bad request: Message text cannot be sent with messengerType <whatsapp>",
"code": "bad.request",
"status": 400,
"messageWithParams": "Bad request: {details}",
"messageParams": {
"details": "Message text cannot be sent with messengerType <whatsapp>"
},
"contextId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"details": [],
"errors": []
}
I think the body is fine and I don't know how to proceed. Can you help me?
Can you please doublecheck the format of your toAddress format and make sure you are not using an e164 type.
The messaging address of the recipient of the message. For an SMS messenger type, the phone number address must be in E.164 format. E.g. +13175555555 or +34234234234. For WhatsApp messenger type, use a WhatsApp ID of a phone number. E.g for a E.164 formatted phone number +13175555555, a WhatsApp ID would be 13175555555
If that is correct, I am afraid you will need to open a Care ticket. We can't diagnose individual customer errors if the body looks correct. The Care team would need to open a ticket.
Thanks,
John Carnell
Director, Developer Engagement.
messagingTemplate
(MessagingTemplateRequest) The messaging template to use in the case of WhatsApp messenger type. This field is required when using WhatsApp messenger type.
Indeed textBody does not work for this type of message and neither does a Standard canned response. Finally I tried with a Message template response type and it worked.