Hello everyone,
I have a Store Builder cs-cart version with three storefronts. I am using the CS-Cart API but noticed this:
when I am using this endpoint link:
https://www.example.com/api/stores/1/products/**_product_id_**
in order to UPDATE a product, I get 403 forbidden in response… but if I change the link to:
https://www.example.com/api.php?_d=products/**_product_id_**
everything is working as expected!
The admin user has active API access, and I have set it to All. Any ideas or am I missing something ?
Which is the best approatch on that?
thank you for your time!
In addition, even in this working link:
https://www.example.com/api.php?_d=products/**_product_id_**
how can I define the storefront_id / company_id in this link format?
like I did in the first link? I am talking about this part of link:
Thanks in advance
Hi!
This means that URL rewrites are not working on your web server, or that the current Nginx configuration is incorrect. Please check this article for the correct configuration:
https://docs.cs-cart.com/latest/install/nginx.html
Unfortunately, there is no such inheritance for products in the API. However, you can pass the company ID in the list of parameters as company_ids (for multiple selection) or company_id (for single selection).