Why do I get the error 401 Unauthorized?
If you receive the HTTP 401 Unauthorized error response, it means there’s something incorrect in your Plugin settings within Magento, Hybris (SAP), SFCC, Shopify, Netsuite or you don’t have the API PCI role.
Check the following
Your merchant account name is correct.
Ensure you input your merchant account name and not the company account name. Keep in mind this input is case sensitive (recognized the difference between capital and lower-case letters).
The web service user is correct.
Check this in the Customer Area > Developers > API credentials.
The API key for live and test are correct.
You can’t use your test key for live and vice versa, as they only work for their respective environment. Check if this is correct by looking at the API key for your web service user in the Customer Area > Authentication > API Key and compare the end values in the Customer Area and your Plugin.
- The API PCI role. This is only needed for certain Plugins and third party integrations. To enable this role you must be PCI compliant.
Learn more on this topic and practice what you’ve learned.Go to your Customer Area