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
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
The tokens endpoint takes a PAKMS key, not an access token, please see our documentation:
https://docs.clover.com/docs/ecommerce-generating-a-card-token#api-only-integrations
https://docs.clover.com/docs/ecommerce-generating-a-card-token#generating-a-pakms-key
https://docs.clover.com/docs/ecommerce-generating-a-card-token#tokenizing-encrypted-card-data
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
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 :
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.
1 Person is following this question.