Error Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token.

MANJUDEVI999
Contributor
Contributor
Error Got Http response code 401 when accessing https://api.paypal.com/v1/oauth2/token.
Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Chiranjeevi
Moderator
Moderator

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.

View solution in original post

Login to Me Too
3 REPLIES 3
Solved

MTS_Chiranjeevi
Moderator
Moderator

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.

Login to Me Too

MANJUDEVI999
Contributor
Contributor

Not solution this topic

So,sorry I can't handle this problem 

Login to Me Too

MANJUDEVI999
Contributor
Contributor
hello sir sir i did not understand what to do in the mail you sent do you have any video link so that i can understand if yes then please share me
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.