Ngừng hoạt động một phầnshare-external
'Message Undeliverable.' with error code 131026
1

Hi, I'm trying to setup upi payments for my business so that my customers can use whatsapp to pay easily through the order I sent them.

I'm getting following error Message undeliverable in webhook notification for the order_details template I sent. I'm not getting any error to the same receipent number if I use normal template. Only getting error if I use the order detail template.

Request:

{"messaging_product":"whatsapp","recipient_type":"individual","to":"919597474017","type":"template","template":{"name":"initiate_payment","language":{"policy":"deterministic","code":"en"},"components":[{"type":"body","parameters":[{"type":"text","text":"Godwin"},{"type":"text","text":"16000"},{"type":"text","text":"16000"},{"type":"text","text":"16000"},{"type":"text","text":"750"},{"type":"text","text":"260"},{"type":"text","text":"18000"},{"type":"text","text":"5 April 2024"}]},{"type":"button","sub_type":"order_details","index":0,"parameters":[{"type":"action","action":{"order_details":{"currency":"INR","order":{"discount":{"offset":100,"value":250},"items":[{"amount":{"offset":100,"value":400},"name":"TestOrder","quantity":1,"retailer_id":"ORDER_ITEM_RETAILER_ID"}],"shipping":{"offset":100,"value":0},"status":"pending","subtotal":{"offset":100,"value":400},"tax":{"offset":100,"value":500}},"payment_configuration":"rentmagic_payment","payment_type":"upi","reference_id":"324453-951","total_amount":{"offset":100,"value":650},"type":"digital-goods"}}}]}]}}

Response:

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

Webhook notification:

{"object":"whatsapp_business_account","entry":[{"id":"436798979517324","changes":[{"value":{"messaging_product":"whatsapp","metadata":{"display_phone_number":"919566838229","phone_number_id":"435013713032277"},"statuses":[{"id":"wamid.HBgMOTE5NTk3NDc0MDE3FQIAERgSNzFEMjI4NUFEMzYzMkY0RDdBAA==","status":"failed","timestamp":"1728918700","recipient_id":"919597474017","errors":[{"code":131026,"title":"Message undeliverable","message":"Message undeliverable","error_data":{"details":"Message Undeliverable."},"href":"https:\/\/developers.facebook.com\/docs\/whatsapp\/cloud-api\/support\/error-codes\/"}]}]},"field":"messages"}]}]}

I've created the payment configuration and also the order details template to use. When I send the message I'm getting response as accepted however I'm getting as failed request in webhook notification

I've also checked all the possible reasons as provided in the documentation for error code 131026 and can confirm all the recipient phone numbers tried are having latest version and they can able to send message to my business number.

https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes

I also confirm I'm not using authentication template and using template created under utility -> Order Details type.

Kindly help to advice what is the root cause of this error. Not sure if anything is wrong in my template.

Godwin Rose Samuel
Đã hỏi khoảng một tháng trước