1

I am using Magento-2.2.7 . If i call this endpoint /V1/products?searchCriteria , it always show each product having same quantity_and_stock_status . Whenever product is in_stock or out_of_stock it always show quantity_and_stock_status:1. Please help me to solve it.

1
  • Please give me solution for that problen. Jul 3, 2019 at 11:35

1 Answer 1

0

This depends on the admin panel setting in:

Stores > Configuration > Catalog > Catalog > Inventory > Stock Options > Display Out of Stock Products

If this is set to NO, only products that are in stock will be returned.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.