Failed to access the sandbox authorization URL, network error 400

oauth address url


Failed to access the sandbox authorization URL, network error 400

I’m unable to revoke this authorization — the API returns an error.
i want to call api interface /oauth2/revoke,
error message :
/oauth2/revoke
{
“errors” : [ {
“category” : “INVALID_REQUEST_ERROR”,
“code” : “BAD_REQUEST”,
“detail” : “Cannot revoke personal access token. If you would like a new personal access token, please replace it in the developer dashboard.”
} ]
}

I also tried revoking it through the sandbox environment console, but there’s no revocation option available there.


Could you try creating an OAuth access token with the following steps

  1. In the Developer Console, open Sandbox test accounts and click Open in Square Dashboard for the test account you want to authorize.
  2. Leave that tab open, then load your authorization URL (https://connect.squareupsandbox.com/oauth2/authorize?client_id=sandbox-sq0idb-...&scope=...) in the same browser.