question

rehan avatar image
rehan asked rehan commented

Getting 401 Unauthorized on pakms endpoint

I am trying to get pakmskey using code from here (https://docs.clover.com/reference#getapikey) This api does not taking anyextra param like my appID, secretkey so how this is going to give me apitoken?

e-commerce api
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.

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered rehan commented

The PAKMS key is a key used to tokenize credit card data. In order to obtain the PAKMS key you need to obtain (https://docs.clover.com/docs/using-oauth-20) and pass (https://docs.clover.com/docs/using-api-tokens) an OAuth token.

19 comments
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.

Sir, I am obtaining oAuth token. I just cant figure it out that where to pass that code or access_token. In pakms api documentation, api is not taking any param.



0 Likes 0 ·

I try again with your answer still getting the 401 Unauthorized

0 Likes 0 ·

Sir, when I set my Default oAuth response to testing only it gives me some kind of access_token in address bar. I suppose that is my bearer token for oAuth.
Now when I am passing that in pakms api it always give me 401 authorized can you help me please regarding this issue
I am trying to configure ecommerce sdk
thank you

0 Likes 0 ·

The permissions required for the PAKMS endpoint and all other EComm endpoints are discussed here - https://docs.clover.com/docs/ecommerce-app-permissions.

If your app doesn't have the required permissions you will need to add them and then uninstall/reinstall your app, instructions and more information on resolving 401s here - https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ David Marginian ♦♦ ·

Please don't post sensitive information, I have deleted your post. Is your app in sandbox, or in production? What is your app id?

0 Likes 0 ·
Show more comments

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