whatsapp-cloud-api icon indicating copy to clipboard operation
whatsapp-cloud-api copied to clipboard

Getting error on sending template

Open karancuriositygym opened this issue 1 year ago • 1 comments

Hi

I have created a template and it is active.

I am sending template as below : bot.sendTemplate( mobileNumber, "cg_quest_text", "en_US", [ { "type": "body", "parameters": [{ "type": "text", "text": "a) Career Counselling" }] } ])

I get error as below from meta : message: '(#132001) Template name does not exist in the translation', type: 'OAuthException', code: 132001, error_data: { messaging_product: 'whatsapp', details: 'template name (cg_quest_text) does not exist in en_US' }, fbtrace_id: 'A5Ld_C-mecwFT9GzebFGU0m' }

Please guide as to what could be the issue.

karancuriositygym avatar Jun 14 '23 08:06 karancuriositygym

If you have many phone numbers in WhatsApp Cloud API, verify if the template that you created is assigned to the actual phone number you are using. Sometimes it is created under the test number and not the one we use in production.

Another option to try would be to change the language template to English only, "en", and try it like that to see if it works.

tommygarces avatar Jul 12 '23 15:07 tommygarces

Closing - please read more here.

tawn33y avatar Jul 25 '24 04:07 tawn33y