question

ankitappinventiv avatar image
ankitappinventiv asked David Marginian answered

Unable to fetch inventory items getting 401 Unauthorized

Steps to reproduce this issue.

Note :- My Web type is 'Web'

1. Forget to give inventory permission.
2. After installing app. while fetching inventory data with ACCESS TOKEN('https://apisandbox.dev.clover.com/v3/merchants/{merchantId}/categories?access_token={access_token}')it gives (401 UNAUTHORISED ERROR).
3. Now, i uninstalled app(As per docs) and give inventory permission and installed app.
4. After installing again with new ACCESS TOKEN it gives same error(401 UNAUTHORISED ERROR).


please suggest.
already checked and followed these steps which is given to this but getting same issue.
https://community.clover.com/questions/16001/production-app-review-401-unauthorized-http-error.html?childToView=16004#answer-16004

Clover MiniInventoryclover developer communityAPI Token
1 comment
10 |2000 characters needed characters left characters exceeded

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

How are you obtaining the token? Does it work for other calls? Please submit a private comment with the access token you were using.

1 Like 1 ·

1 Answer

David Marginian avatar image
David Marginian answered

The token you gave me does not exist for that developer or that merchant. I don't see a matching token period (checked all tokens created within 96 hours). Are you sure you aren't tring to use the code as the token? A code is not a token, you need to use the code to obtain the token via the OAUTH flow described here - https://docs.clover.com/clover-platform/docs/using-oauth-20.

10 |2000 characters needed characters left characters exceeded

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