0

I have added product in my Magento 2 Store using REST API but it always goes out of stock like this.

enter image description here

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.

2
  • how are your indexers set? on save or on schedule?
    – Diana
    Commented Mar 22, 2021 at 7:17
  • 1
    @DianaBotean on schedule
    – Prits
    Commented Mar 22, 2021 at 7:21

1 Answer 1

0

Reindex implementation is required when the product has not been updated. This implementation has no effect on the functionality of your website You can refer to here: https://community.magento.com/t5/Magento-2-x-Programming/Updating-Stock-Status-Via-REST-API/m-p/449424#M10894

Your Answer

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

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