question

viveksolanki avatar image
viveksolanki asked David Marginian Deactivated answered

Access token is not valid

Hi All,


I was following this link to create an access token that I could use for merchant specific operations.
After "Step 4: Receive an API token", I was successfully able to receive the token. But when I tried to fetch the merchant details(https://docs.clover.com/reference/merchants-1) using this token, it was showing 401.


Can anyone help me with this problem?

access 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.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered

I am guessing either:

1) The merchant token you are using doesn't have adequate permissions (merchant read in this case)).

or:

2) You are generating the token in sandbox and trying to use it in production or vice-versa.

Please note, if you are a developer and building an app for more than a single merchant using merchant tokens is forbidden, you should be using an OAuth 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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