question

mubasharabbas avatar image
mubasharabbas asked davecutts commented

getting 401 unauthorized

Salam,

I am trying to do something really simple, I need a list of all the item categories a merchant has. That is all I need.

First I followed all the instructions for oauth

https://docs.clover.com/build/web-app...

I used the authorization code method and successfully got the access_token in the end.

Then I did GET https://api.clover.com/v3/merchants/M... and I passed in the header

Authorization: Bearer theaccess-token-here

{ "message": "401 Unauthorized" }

I have tested it in post man, and in terminal, and ended up with the same result.

I have added the inventory permissions in my app settings.

I would really appreciate your help. Thanks

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

weaver avatar image weaver commented ·

Having the same issue.

0 Likes 0 ·
davecutts avatar image davecutts commented ·

try curl -v "https://api.clover.com/v3/merchants/[mid]" --header "Authorization: Bearer [token]" install curl for windows first.

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community