Pause products when your inventory system reports a shortage

Let an external inventory system signal that selected products should temporarily stop accepting purchases, without waiting for a manual catalog update.

When a warehouse or supplier system reports an inventory shortage, your store may continue accepting orders until someone updates the affected products.

When your external system sends a signed request to this routine’s webhook address, Store Routines makes the products you selected unavailable for purchase and emails the store admin. The webhook starts the routine but cannot choose which products to pause. Those are configured in Store Routines.

Product updates run in the background, so an accepted webhook request doesn’t mean every product has already been updated.

The routine pauses purchasing without changing stock quantities. It doesn’t automatically resume sales when inventory becomes available again.

Before you turn it on

When stock becomes available again, open History and undo the run that originally paused purchasing. Store Routines restores the purchasing settings recorded by that run, provided they haven’t changed since.

If another webhook request runs while the products are already paused, that later run won’t have purchasing changes to restore.

What this routine does

WhenAn incoming webhook is received
ThenSet product purchasable state, Notify the store admin

Requirements

  • Store Routines 1.1.0 or later

You'll choose the products this routine applies to after adding it.

Store Routines reviews every routine on your store before importing it, and imports it turned off.