API Auth Flow, account not found

  • 1
  • Problem
  • Updated 1 year ago
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.
Photo of Bill Callhoun

Bill Callhoun

  • 70 Points

Posted 1 year ago

  • 1
Photo of AK

AK, Official Rep

  • 4,402 Points 4k badge 2x thumb
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