Got Http response code 401
junlu003
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-25-2020
04:41 AM
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.”
Labels:
Login to Me Too
- Labels:
-
Payments REST APIs
1 REPLY 1

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar-25-2020
08:12 AM
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.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- PHP SDK error: broken content-length header in SDKs
- Paypal 3DS intigration error in NVP/SOAP APIs
- permission_denied response in call to patch order when paying by Card in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Compliance violation. flag based on the account origin ? in Sandbox Environment
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment