I am using the following api call to get products.

{{base_url}}/rest/V1/products?searchCriteria[filter_groups][0][filters][0][condition_type]=like&searchCriteria[filter_groups][0][filters][0][field]=description&searchCriteria[filter_groups][0][filters][0][value]=%t shirt%&searchCriteria[filter_groups][1][filters][0][field]=type_id&searchCriteria[filter_groups][1][filters][0][value]=configurable

The above call will list all configurable products with a word tshirt in its description field. And all are working fine.

The issue is it also lists the products which are in out of stock. (All the configurable variant of the product is in out of stock).

Is there any way to filter out the outofstock products? How can I specify thant in search criteria?

  • Did you get any solution for this?
    – dhanus
    Feb 14, 2020 at 7:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.