Githinji Muthee
Githinji Muthee

Reputation: 1

Sending Whatsapp Template With a Document Header via node.js

I am trying to send a WhatsApp template message using Postman. I am receiving a successful response with a WhatsApp ID, but the message is not being received by the recipient (which is myself for testing purposes).

Here are the details of my request:

  {
    "to": "recipient_number",
    "template": {
      "name": "your_template_name",
      "language": {
        "code": "en",
        "policy": "deterministic"
      },
      "components": [
        {
          "type": "BODY",
          "text": "Hello, this is a test message."
        }
      ]
    }
  }

I have checked the following:

  1. The recipient number is correct and includes the country code.
  2. The template message format complies with WhatsApp's guidelines.
  3. I am using a WhatsApp Business Account and have the necessary permissions.
  4. The template has been approved by WhatsApp.
  5. The API endpoint and request format are correct.

Despite these checks, the message is not being delivered. I would appreciate any insights.

Upvotes: 0

Views: 394

Answers (1)

Shubham Gupta
Shubham Gupta

Reputation: 21

You can use this tool webhook.site to check the error of failure.

How to use it.

  1. Set your webhook URL as you'll get from the tool.
  2. Send template message.
  3. You'll receive the error message with status code. Check the status code here WhatsApp Cloud API Error code Onpremise API Error Code

My guess is that you might have not attached payment method to you business manager for the failure.

Upvotes: 0

Related Questions