question

01928-7325x2 avatar image
01928-7325x2 asked 01928-7325x2 answered

Returned Token Unauthorized (Permission Enabled)

Not sure why the returned token from Clover cannot be used to call Clover API.
I already posted same question before, on Feb but no answer there, so I post this one. Hopefully someone answering this.
REST APIAPI Token
4 comments
10 |2000

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

Miguel avatar image Miguel commented ·

How are you generating the token? What endpoint are you calling? Can you provide more details or link to your other question. Thanks!

0 Likes 0 ·
01928-7325x2 avatar image 01928-7325x2 Miguel commented ·

Using OAUTH : https://docs.clover.com/build/oauth-2-0/
Endpoints following the docs but not sandbox
https://api.clover.com/oauth/token?client_id={appId}&client_secret={appSecret}&code={codeUrlParam}

Response from API
{ access_token: 'X5dX1c08-59dX-fX20-b6Xd-9cf60XXX395X' } (edited)

0 Likes 0 ·
Miguel avatar image Miguel 01928-7325x2 commented ·

HI @yauri, what's the app id?

0 Likes 0 ·
Show more comments
Miguel avatar image
Miguel Deactivated answered
I believe the issue is that you need to uninstall and reinstall your app on your test merchant if you changed the permissions after the initial installation. I believe that's why you are getting a 401. OAuth generated tokens work for me when I tested.
10 |2000

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

01928-7325x2 avatar image
01928-7325x2 answered
Thanks! Resolved
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