I am using magento 1.x inventory rest api to pull inventory info for a magento store. However, for many products, despite the "is_in_stock" being='0', the products are actually in stock. The "qty" is also='0' for many of these products. We checked the website's source code, but it did not give any leads about this discrepancy. We are not able to find any information in the retrieved data that gives a clue about whether the products are in stock or out of stock. It would be really helpful if someone can provide us any leads on this.
(P.S we are using Magento 22.214.171.124)
Has the indexers been run?
What's the configuration for inventory in system configuration? Is it set to allow ordering of products regardless of stock status?
Does the situation change if you go and save the product in admin without making any changes?