cancel
Showing results for 
Search instead for 
Did you mean: 

Getting list of products by store with the API

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Getting list of products by store with the API

Hi,

 

I've got a single website containing 2 stores whose codes are "toys" and "gadgets".

 

First question, to be honest I don't see the point of creating multiple stores (despite I may need it), since it doesn't seem possible to assign PARTICULAR products to EACH store.

Indeed, I noticed that disabling a product in the "toy" store view ALSO disables it in the "gadgets" store view, so, again, what's the benefit of having multiple stores?

 

Second question, ideally what I need to achieve is getting the list off all products of each store using the API. In other words, something like:

 

http://<host>/rest/toys/V1/products
http://<host>/rest/gadgets/V1/products

 

But again, I don't see any way to do so, since it doesn't seem possible to assign products to stores individually.

 

Any help would be greatly appreciated!

Thank you