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"
}
]
}
phone_number_id
和访问令牌正确。尽管消息已被接受,但并未发送给收件人。这可能是什么原因,我该如何排除或解决这个问题?
查看官方文件,上面写着正在审核中(held_for_quality_assessment)。