Receiving 401 Unauthorized response when switching to Live
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have been able to successfully connect and process credit card payments using the sandbox environment and credentials but when I switch to live, I'm getting the response: 401 Unauthorized.
I have updated the client id and client secret to be the live credentials as specified in my developer portal. I've also upgraded my PayPal account to business and payments pro and the Manager portal says that live transactions should be enabled and working.
Any ideas on what the issue is?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check where your submitting the REST API request.
A "401" will be returned when there is an issue with the credentials you using (on a valid endpoint) or your attempting to use "sandbox" credentials within our production environment or vice-versa.
Also check this post if attempting credit card payments via REST in production, when your account is not located within an approved country -- https://www.paypal-community.com/t5/Payments/REST-Payments-get-error-401-UNAUTHORIZED/td-p/1349337
Was my post helpful? If so, please give me a kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same problem here. I'm using correct credentials, they are not blocked in the USA, and have had zero help from Paypal (since they never return emails, CHAT is ALL canned (and useless responses), and, naturally, don't have a phone number to call - they just send you to this forum! ARRRGGGHHH!!!)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please provide more information on the exact issue your experiencing, including any examples of payment requests your making and the response being received back.
Was my post helpful? If so, please give me a kudos!

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Setting business account for Paypal gateway in SDKs
- Unauthorized Payment in REST APIs
- Unauthorized error when making live payments via REST API in REST APIs
- Credit card payment giving 401 Unauthorized Payment in live mode in REST APIs
- (401) Unauthorized error once switching from Sandbox to Live account (REST API) in Sandbox Environment