I have generated access_token by using API
but when i will use this access_token as authorization header of API
I have generated access_token by using API
Tokens need to have the correct permissions for the call you are making (in this case, Customer Read) - https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html.
In the documentation https://docs.clover.com/docs/using-oauth-20, i am using step 2 token to get access_token via API (https://sandbox.dev.clover.com/oauth/token?client_id={appId}&client_secret={APP_SECRET}&code={AUTHORIZATION_CODE}), but getting 401 when using this fetched access_token as authorization header in API https://scl-sandbox.dev.clover.com/v1/customers
I answered your question below:
Tokens need to have the correct permissions for the call you are making (in this case, Customer Read) - https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html.
1 Person is following this question.