WhatsApp Api - I ask for the number in the production and respond for the test number

43 Views Asked by At

Ashen. I would like some help.

Isso is locking the consumption of the WhatsApp API. Add new number. Therefore, when I send a message to the new number, I end up receiving a reply with the test number. I made a POST for any number through the product number - with Token and WhatsApp ID and I ended up receiving "OAuthException" - "The recipient's phone number is not on the permission list." How you are using the test number.

Any help?

Desired work: Ask for the product number and continue as same.

2

There are 2 best solutions below

1
Antonio Rabelo On

Eu discovered.

Send deploy as {{WhatsApp_Id}} with your test number. ‍♀️

0
FredylanGM On

You need to ensure that there is only one number, the production number registered to your WhatsApp business account ID. You can make this call via the Meta Graph API Explorer tool https://developers.facebook.com/tools/explorer/?method=GET&path=101933159628482%2Fphone_numbers&version=v19.0

  1. Make a get request to the endpoint {whatsapp business id}/phone_numbers to see which numbers are registered to that whatsapp business
  2. Create a delete request to {whatsapp business id}/{phone number to be removed}

Please see the following Cloud API documentation for further understanding https://developers.facebook.com/docs/whatsapp/cloud-api/reference/phone-numbers/

Hope this helps!