question

developerr avatar image
developerr asked David Marginian Deactivated edited

You couldn't be authenticated

When i call https://token-sandbox.dev.clover.com/v1/tokens with Oauth access token on header with card details he return 401 unauthorized error

e-commerce api
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 David Marginian Deactivated edited
3 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.

we get access_token using this api

https://sandbox.dev.clover.com/oauth/token

when we pass access_token

https://apisandbox.dev.clover.com/pakms/apikey
Header: Authorization return 401 authorized


0 Likes 0 ·

I call https://apisandbox.dev.clover.com/pakms/apikey throw postman
https://apisandbox.dev.clover.com/pakms/apikey
header {

accept : application/json
authorization : Bearer {access_token}

}

Response :

{ "message" : "401 Unauthorized" }
0 Likes 0 ·

The permissions required for the ECommerce endpoints are described here - https://docs.clover.com/docs/ecommerce-app-permissions.. Either your app doesn't have the proper permissions, or you are doing something else wrong. If you need to update the permissions on your app it will need to be uninstalled, reinstalled, and you will need to obtain a new access token.

0 Likes 0 ·

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