Closed MVakas closed 5 years ago
Hi @MVakas - On the Product
object there is an availableForSale
field that you can use. See help docs for details. If a product is out of stock, then it is not available for sale. Hope that helps!
I am aware of avaialableForSale, with this field I have to filter out after I have fetched all the products including the one not available for sale. I want to fetch only the available products.
The problem is that I’m getting too many products which are of stock.
As per the API documentation, you can filter your products by availableForSale
using the query
filter parameter.
Thanks I'm able to filter out the products using available_for_sale
@MVakas Can you specify how you able to filter out products which are out of stock ?
available_for_sale
Use this tag.
@MVakas but I am not sure how to use that tag. should I create custom collection which this condition ? if you could provide sample query for it , then that will be so useful
Is there any possibility that I can query and only get the available products. I don't want the 'Out of stock' products?