question

bill-callhoun7669 avatar image
bill-callhoun7669 asked ·

API Auth Flow, account not found

Hi, I've got a sandbox app running. In my auth flow, I've received my auth code and am trying to exchange it for a token.

I have verified that my app is set up to accept authorization code auth flow.

But, when I make my request, i get an 

"Account does not exist", "errors" : [ { "errorCode" : "OAU-222", "message" : "Account does not exist" } ] }"

However, I'm using the same client_id as I provided for the auth code, the one listed under sandbox in my app settings. This account should exist?

The url I'm sending the request to:  https://platform.devtest.ringcentral.com/restapi/oauth/token

What am I doing wrong? Thanks for your help.

aaa
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

· Write an Answer
ak avatar image
ak answered ·
Bill,

Could be perhaps you are using a different sandbox number. Could you clear the cache in the redirect window and use the Sandbox Number that you are assigned to login? 

If you are still getting the same error, Could you please send an email to devsupport@ringcentral.com with the following details:

1.) Sandbox Number
2.) App Name on RingCentral 

We can take a look at it and assist you right away.

Meanwhile, just to make sure you have followed all the steps to getting a token via Authorization Code Flow, we have demo's in multiple languages like ( JS, Javascript-Express, php, python, csharp, ruby etc ) :
RingCentral-Authorization-Code Flow Demos


Share
1 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.