Automatically turn off « Continue selling when out of stock » when product is back in stock

Hello,

I am looking to automate some backend tasks.

When a product is out of stock and I know that there is stock coming soon, I set a pre-order tag and I check : Continue selling when out of stock.
When the product is back again in stock, I would like to automatically (or with a flow) remove the pre-order tag and uncheck the « Continue selling when out of stock » option.

Removing the tag is easy with Flow but I couldn’t find a way to uncheck the « Continue selling when out of stock » option.

Any ideas ?
Thank for your help,

1 Like

It may be possible to update the inventoryPolicy, perhaps with a Send HTTP request action.

1 Like

Yeah that should work.

This could also be done with the new “Send Admin API request” action (docs). Below is an example of that action configured to continue selling the variant.

1 Like