Whatsapp Business Api- Message template are going after 30mins
https://graph.facebook.com/v17.0/{{Phone-Number-ID}}/messages
Headers contains Authentication token
passing json body:
{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "{{Recipient-Phone-Number}}", "type": "template", "template": { "name": "ticket_confirmation", "language": { "code": "en" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://link.png" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "xyz" }, { "type": "text", "text": "event name" }, { "type": "text", "text": "2" }, { "type": "text", "text": "ticketname" }, { "type": "date_time", "date_time": { "fallback_value": "May 10, 2023" } }, { "type": "text", "text": "18:30 - 23:30" }, { "type": "text", "text": "location" }, { "type": "currency", "currency": { "fallback_value": "value", "code": "INR", "amount_1000": 2100630 } } ] } ] } }
I am getting this in response
"messages": [ { "id": "wamid.HBgMOTE3MDQyMjY2ODExFQIAERgSQkQ0MDMyRTYyNTdBNUJGM0M0AA==" } ]
I am hitting this API to send my message templates to the user who have purchased tickets on my platform but the message are going after 30mins(before i was getting the message withing secs.
To be honest, I don't think Meta will fix this for the foreseeable future. The reason why it takes so long is because you are adding variables to the template. If you were to reattempt this with a static template, the message would send within seconds. I assume maybe Meta needs time to check that your variables are aligned with their ToS. Although 30 minutes is quite overkill haha.
What I would do is send a static template saying thank you for purchasing the tickets, and that a following message will provide the proof of purchase. Then send the proof of purchase using the custom message feature. That will send a message within seconds. You have to send a template first, otherwise your custom message won't go through.
Otherwise, the customer can just wait the 30 minutes. Providing proof of purchase is usually not that time sensitive.