"message": "401 Unauthorized"
I use:
{ {url}}/v3/merchants/{ {mId}}/default_service_charge
My sandbox's API token have all the permissions set for reading and writting.
"message": "401 Unauthorized"
{ {url}}/v3/merchants/{ {mId}}/default_service_charge
It seems like the issue might be related to authentication or permissions. Double-check that your API token is correctly included in the Authorization
header with the "Bearer" prefix. Also, ensure the token has the necessary permissions to access the default_service_charge
endpoint. If the problem persists, try regenerating the token or confirming the {
{mId}}
and endpoint URL are accurate for your sandbox environment.
To resolve the 401 Unauthorized error, include the Authorization header with the format:
plaintextCopy codeAuthorization: Bearer YOUR_API_TOKEN
Ensure the token is valid and has the correct permissions. Also, check that the API endpoint is correctly formed and that your sandbox environment has the right access. If the issue persists, verify your token and check the API settings in the developer portal. jermaine jakes
2 People are following this question.