question

abi avatar image
abi asked David Marginian Deactivated edited

401 Error retrieving pakms key

Hi @David Marginian
I'm trying to invoke https://apisandbox.dev.clover.com/pakms/apikey and I'm getting 401 Error Code.
I got the OAuth code for sandbox dev following below steps

https://docs.clover.com/clover-platform/docs/using-oauth-20. I got the token (based on the code, app id, app secret.) and retrieved token in step 4 of the OAuth flow.
I'm trying to invoke https://apisandbox.dev.clover.com/pakms/apikey using the access token generate in the above step but I keep getting 401 error.

I also read the below link with no resolve to my issue.
https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html

Can you please help on how to proceed? I'm trying to integrate with the E-commerce API

OAuth
1 comment
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

The article that you linked has resolved every 401 issue I have encountered. I can't offer any general advice beyond it. My best guess is that you either don't have the correct permissions set on your app or that you set the correct permissions after you installed the app (note this situation and it's solution is described in the 401 article you linked). If you are still having a problem you will need to provide the exact request you are making (along with the token you are using) as well as your app id in a private post.

0 Likes 0 ·

0 Answers

·

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