Configure server routes rewrite for Magento REST API

Created by Nicolas Wussler, Modified on Thu, 18 Aug, 2022 at 8:01 AM by Igor Galic

  1. Open virtual host nginx config file.

  2.  Then, add this part to it:

  1. #REST API PART      location /api {              rewrite ^/api/rest /api.php?type=rest last;              rewrite ^/api/v2_soap /api.php?type=v2_soap last;              rewrite ^/api/soap /api.php?type=soap last;      }

4. Finally, restart nginx.! Please, check your integration data and make sure that route "api/rest" is publicly accessible.

If you got any questions or need any assistance feel free to contact our support through SyncSpider !

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article