Got Http response code 401

junlu003
New Community Member

Hey Dear, could u give us some clue why we are integrating our REST API to PAYPAL

Always sending back the following information: “Got Http response code 401 when accessing https://api.sandbox.paypal.com/v1/oauth2/token.”

 

Login to Me Too
1 REPLY 1

MTS_Andre
Moderator
Moderator

Hi Junlu003, the http 401 generally means: Unauthorized AUTHENTICATION_FAILURE. Authentication failed due to invalid authentication credentials.

You can use this link as reference.

 

Check that you are using your Live API credentials on Live, while if you are using Sandbox environments make sure you are providing the Sandbox credentials to your integration / API call.

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.