Hi . Greetings.
I am currently working on sandbox environment, and my phone number is associated to my account. But when I try to test sms api, it returns an error "Phone number doesn't belong to extension"
{ "to": [{"phoneNumber": "+171xxxxxxxx "}], "from": {"phoneNumber": "+147xxxxxxxx}"}, "text": "Test SMS message from Platform server"}
What's wrong?
Please let me know your thoughts.
Thanks.
Hi . Greetings.
I am currently working on sandbox environment, and my phone number is associated to my account. But when I try to test sms api, it returns an error "Phone number doesn't belong to extension"
{ "to": [{"phoneNumber": "+171xxxxxxxx "}], "from": {"phoneNumber": "+147xxxxxxxx}"}, "text": "Test SMS message from Platform server"}
What's wrong?
Please let me know your thoughts.
Thanks.
Hi @NuCare Admin
I think, this issue may be that you are using your sandbox number in production environment. Please note that both environments are different.
Lets say your sandbox number is 772-XXX-YYYY
For Sandbox environment, you will use
1a. Sandbox URL: https://platform.devtest.ringcentral.com
1b. Sandbox Application credentials
1c. Sandbox User (Lets say extension 101 who owns this number 772-XXX-YYYY)
Now, when you graduate your application to production, you need to migrate to new production environment.
2a. Production URL: https://platform.ringcentral.com
2b. Production Application Credentials
2c. Production User (Let’s say extension 101 who owns new production number 566-AAA-BBBB) -> THIS IS NOT THE SAME SANDBOX NUMBER AS 1c
Looks like you are using 2a and 2b but with 1c (ie with sandbox number)
So to use SMS API’s in production, you need a production account which can be purchased from https://www.ringcentral.com/office/plansandpricing-b.html#mvp
Please note, you need to be on Premium or Ultimate account to be able to use Developer Platform APIs (i.e SMS APIs)
When you use your production user with a production number against production environment, everything will work.
Hope this clarifies, but in case the problem persists, I suggest you to open a direct ticket here: https://developers.ringcentral.com/support/create-case and we can look into your case more closely.
Regards
Gurpreet Singh
PM, Platform Products