question

clover912 avatar image
clover912 asked clover912 answered

Is the sandbox api down? I'm getting 401

request: https://apisandbox.dev.clover.com/v3/merchants/[m... id redacted]/devices?access_token=[access token redacted]

I'm using the android sdk to generate the access token,
CloverAuth.AuthResult authResult = CloverAuth.authenticate(MainActivity.this, account);
String token = authResult.authToken;
REST APIAuth
10 |2000

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

1 Answer

clover912 avatar image
clover912 answered
For anyone that has a similar problem: I resolved this error by reinstalling the app, although I had the 403 issue and had to solve it with https://community.clover.com/questions/9233/sdk-forbiddenexception-status-code-403-app-doesnt.html?childToView=9500#answer-9500. I think the reason is that CloverAuth.authenticate() always gives the same auth token back, and it had probably expired. A fresh reinstall made it give me a new token.
10 |2000

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

Welcome to the
Clover Developer Community