Whatsapp Business Api 模板消息不起作用

问题描述 投票:0回答:1

WhatsApp Business Cloud API:消息已接受但未送达

我正在使用 WhatsApp Business Cloud API 发送模板消息。 API 请求返回“已接受”状态,但收件人未收到消息。

请求详情:

  • 请求网址:

    POST https://graph.facebook.com/v20.0/<phone_number_id>/messages
    
  • 请求正文:

    {
        "messaging_product": "whatsapp",
        "recipient_type": "individual",
        "to": "<Mobile Number>",
        "type": "template",
        "template": {
            "name": "booking_details",
            "language": {
                "code": "en"
            },
            "components": [
                {
                    "type": "body",
                    "parameters": [
                        {"type": "text", "text": "chennai"},
                        {"type": "text", "text": "salem"},
                        {"type": "text", "text": "tn15505"},
                        {"type": "text", "text": "star"},
                        {"type": "text", "text": "23.02.2024"},
                        {"type": "text", "text": "koyambedu"},
                        {"type": "text", "text": "bus stand"},
                        {"type": "text", "text": "10:00 a.m."},
                        {"type": "text", "text": "₹5055"},
                        {"type": "text", "text": "L1/S,L2/S"}
                    ]
                },
                {
                    "type": "button",
                    "sub_type": "quick_reply",
                    "index": "0",
                    "parameters": [
                        {
                            "type": "payload",
                            "payload": "PAYNOW_PAYLOAD"
                        }
                    ]
                },
                {
                    "type": "button",
                    "sub_type": "quick_reply",
                    "index": "1",
                    "parameters": [
                        {
                            "type": "payload",
                            "payload": "CHANGE_DETAILS_PAYLOAD"
                        }
                    ]
                }
            ]
        }
    }
    

回应:

{
    "messaging_product": "whatsapp",
    "contacts": [
        {
            "input": "receiver",
            "wa_id": "id"
        }
    ],
    "messages": [
        {
            "id": "wamid.HBgMOTE4MDU2MTg1NjI5FQIAERgSMUQwQzU3MjVENDBBMEQ5NTk5AA==",
            "message_status": "accepted"
        }
    ]
}

我尝试过的:

  • 已验证模板已获批准且与模板 ID 匹配。
  • 确认收件人的电话号码已在 WhatsApp 中注册。
  • 确保
    phone_number_id
    和访问令牌正确。
  • 检查收件人是否已选择接收消息。
  • 已验证我的 WhatsApp Business 帐户没有问题(没有低质量评级或速率限制)。

尽管消息已被接受,但并未发送给收件人。这可能是什么原因,我该如何排除或解决这个问题?

whatsapp whatsapi whatsapp-cloud-api
1个回答
0
投票

查看官方文件,上面写着正在审核中(held_for_quality_assessment)。

© www.soinside.com 2019 - 2024. All rights reserved.