Inventory alerts

An exception raised when stock crosses a minimum or maximum threshold, kept until it is resolved.

Fields

The API name is what the API, MCP and the CLI use.

NameAPI nameTypeRequiredDescription
IDidRecord IDYes
ItemproductitemIdReferenceYes
ThresholdquantityThresholdQuantityYesThreshold quantity frozen when the breach opened.
Quantity at breachquantityAtBreachQuantityYesAvailable inventory quantity when the breach episode opened.
Quantity at resolvequantityAtResolveQuantityAvailable inventory quantity when inventory returned to the safe range.
UnitcatalogunitUnit
Alert ruleinventoryalertruleIdReferenceYes
ConditionconditionConstantYesSnapshot of the condition (Low inventory or High inventory) when the breach opened.
Breached atbreachedAtDate and Time
Resolved atresolvedAtDate and Time

Relations

FieldPoints toKind
Item productitemIdProduct itemsreference
Alert rule inventoryalertruleIdInventory alert rulesreference

Events

Moments the record reaches on its own. Subscribe to them with a webhook.

NameWebhook eventDescription
Below minimuminventoryalerts.minThresholdCrossedAvailable quantity fell below the alert rule minimum.
Above maximuminventoryalerts.maxThresholdCrossedAvailable quantity rose above the alert rule maximum.