Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need product list using store in search filter #4030

Closed
kuldeeps3 opened this issue Apr 6, 2016 · 3 comments
Closed

Need product list using store in search filter #4030

kuldeeps3 opened this issue Apr 6, 2016 · 3 comments

Comments

@kuldeeps3
Copy link

We need to get product list using store ID by Rest WebAPI.
We have a API : http://[domain]/rest/V1/store/storeConfigs here we got stores which we use in website.

Just like we can pass status or any other field in "http://[domain]/rest/V1/products" API search filters part to get products according to status.

here we need to get product list for multi stores using different store id.

Our question is that how can we get the list of product using store id by using rest WebAPI.

Thanks,
Kuldeep

@maghamed
Copy link
Contributor

maghamed commented Apr 20, 2016

All that you need to do is to specify store code in your URL
So, instead of "http://[domain]/rest/V1/products"
you need to use
"http://[domain]/rest/<store_code>/V1/products"
Documentation could be found here http://devdocs.magento.com/guides/v2.0/rest/rest_endpoints.html
If store code is skipped (as in your case), Default store code is used.

@maksek maksek added the forum label May 9, 2016
@maksek
Copy link
Contributor

maksek commented May 9, 2016

Please use forum for questions.

@maksek maksek closed this as completed May 9, 2016
@RUjmiak
Copy link

RUjmiak commented Jul 20, 2016

@maksek filter by store_code not working with V1/products on Magento 2.1.0. It is working perfectly with V1/categories.

With V1/products you will receive always the same products...

ishakhsuvarov referenced this issue in magento/inventory May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants