Why do I get the error 401 Unauthorized?

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.
  • Check the Allowed IP range configured on the API credential of your web service user.

Let's practice

Learn more on this topic and practice what you’ve learned.

Go to your Customer Area
The illustration of support agent wearing a headset.

Do you need additional help?

Contact our support team

Send us the details of your issue by adding images or screenshots.

Submit a request