I have added product in my Magento 2 Store using REST API but it always goes out of stock like this.
But when i run php bin/magento indexer:reindex
the product will come in stock.
Any idea why is this or i have to run indexer re-index after every insertion of product.
Any help is appriciated.