Error Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @MANJUDEVI999,
Thank you for posting to the PayPal community.
Reported "401 error/Invalid Token" /"invalid_client"/"Client Authentication Failed" usually occurs if there is an issue with the REST API credentials you're attempting to use or you're attempting to use REST API credentials for our sandbox environment within our production environment or vice-versa.
I would suggest to please cross check the API credentials and valid for the environment where you're submitting the request.
Each REST application contains a set of both sandbox and production API credentials, with the sandbox credentials being shown by default.
Guide link - https://www.paypal.com/us/cshelp/article/how-do-i-create-rest-api-credentials-ts1949
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.