I have been working on connecting Magento 2 to Shipworks (3rd party shipping software) via their module and Rest API. Both attempts have returned an error saying

The remote server returned an error: (401) Unauthorized.

I've worked with the Shipworks support and concluded that the issue is not with their software but with my setup. Additionally I have PayPal Pro setup to allow me to take Debit/Credit card on the website without opening their virtual terminal and it is also returning an unauthorized message.

All the users currently have full admin privileges. The server has the default suggested permissions 755-folders 644-files. There are no server errors or exception or system log errors. When the error was traced in Shipworks it returned

{"message":"The consumer isn't authorized to access %resources.","parameters":{"resources":"Magento_Sales::actions_view"},"trace":"#0 /home/buyglasswoodstov/public_html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68):

What could be causing these authentication issues? I've been researching and working on this issue for 3 weeks.


Magento 2.3.1, Php 7.2

  • Is there any .htaccess password or IP protection enabled on mageno 2 store ? Commented Jul 17, 2019 at 5:22
  • I had my server host whitelist paypal IPs and they didn't see it blocking any other IPs. Additionally I have tried erasing the htaccess file in the root folder completely and I still received the error
    – Josiah
    Commented Jul 17, 2019 at 13:15
  • @Josiah Any conclusion ob this issue?
    – Jack
    Commented Jun 17, 2020 at 6:43

1 Answer 1


PayPal Pro moved to a new system. If you have an old account, they will have to setup a new account. This fixed the authentication issues for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.