I am using the Storefront GraphQL API to build a ReactNative app.
I have a need to query all products (and their variants) which are available in a certain sales channel (in my case, "Mobile App").
I can query the products with a certain `product_type` , but I can't find any query parameter to search by `sales channel`
Is it possible? If yes, what's the parameter?
Thanks in advance!
Solved! Go to the solution
This is an accepted solution.
Only products that are "published" to your sales channel i.e mobile app will be surfaced in the queries you are making from that Storefront Access Token.
Just so that I understand this right, the access token that I have can be dependent on a sales-channel, and then only those products will be visible against the access token?
Correct - If you are in the products area you will see the ability to publish to specific channels. If you head to your app, and query for all products, you should only see the ones published to this channel.
I'm facing a similar issue. The product JSON shows the total inventory on all sales channels for example 180 in this case (image attached). I want to build a product feed only for the online store channel. I'm already using the published status parameter in the query.