Skip to main content
Stockful provides 9 actions you can use in Flow workflows. Query actions return data for use in subsequent steps. Write actions update Stockful settings. Integration actions connect to external services.

Query actions

These actions return structured data that you can reference in conditions and subsequent actions within your workflow.

Get forecast

Get inventory forecast data for a variant including velocity, days of supply, and reorder recommendations. Inputs:
FieldRequiredDescription
ProductYesThe product to query
Variant IDYesThe numeric variant ID
Returns:
FieldTypeDescription
velocityFloatSales velocity in units per day
days_of_supplyFloatEstimated days of stock remaining
reorder_pointIntegerQuantity at which to reorder
reorder_quantityIntegerSuggested order quantity
projected_stockout_dateTextDate when stock is projected to run out
abc_classTextABC revenue classification (A, B, or C)
stock_statusTextCurrent stock status (healthy, low, out_of_stock, overstock)
sell_through_rateFloatSell-through rate between 0 and 1
total_sold_30dIntegerUnits sold in last 30 days
availableIntegerCurrent available quantity

Get inventory health

Get inventory health metrics for a variant including stock status, ABC class, and sell-through rate. Inputs:
FieldRequiredDescription
ProductYesThe product to query
Variant IDYesThe numeric variant ID
Returns:
FieldTypeDescription
stock_statusTextCurrent stock status (healthy, low, out_of_stock, overstock)
abc_classTextABC revenue classification (A, B, or C)
sell_through_rateFloatSell-through rate between 0 and 1
days_of_supplyFloatEstimated days of stock remaining
availableIntegerCurrent available quantity
velocityFloatSales velocity in units per day

Get stock by location

Get inventory levels for a variant across all tracked locations. Inputs:
FieldRequiredDescription
ProductYesThe product to query
Variant IDYesThe numeric variant ID
Returns:
FieldTypeDescription
total_availableIntegerTotal available across all locations
location_countIntegerNumber of locations with stock data
itemsListPer-location stock data (see below)
Each item in the items list contains:
FieldTypeDescription
locationTextLocation name
availableIntegerCurrent available quantity
velocityFloatSales velocity in units per day
days_of_supplyFloatEstimated days of stock remaining
stock_statusTextCurrent stock status
reorder_pointIntegerCalculated reorder point

Get reorder list

Get all variants that are at or below their reorder point, with forecast context for each. Inputs:
FieldRequiredDescription
Location nameNoFilter to a specific location. Leave empty for all locations
Returns:
FieldTypeDescription
total_countIntegerTotal number of variants needing reorder
itemsListVariants at or below their reorder point (see below)
Each item in the items list contains:
FieldTypeDescription
product_titleTextProduct title
variant_titleTextVariant title
skuTextVariant SKU
locationTextLocation name
availableIntegerCurrent available quantity
reorder_pointIntegerCalculated reorder point
reorder_quantityIntegerSuggested reorder quantity
velocityFloatSales velocity in units per day
days_of_supplyFloatEstimated days of stock remaining
abc_classTextABC revenue classification
stock_statusTextCurrent stock status
The “Get reorder list” action doesn’t require a product or variant - it returns all variants that need reordering across your entire inventory. Use it in scheduled workflows to generate regular reorder reports.

Get transfer suggestion

Suggest an inventory transfer between locations to balance stock for a variant. Inputs:
FieldRequiredDescription
ProductYesThe product to query
Variant IDYesThe numeric variant ID
Returns:
FieldTypeDescription
has_suggestionBooleanWhether a viable transfer was found
from_locationTextSource location name
to_locationTextDestination location name
suggested_quantityIntegerSuggested quantity to transfer
from_availableIntegerAvailable stock at source location
to_availableIntegerAvailable stock at destination location
from_days_of_supplyFloatDays of supply at source location
to_days_of_supplyFloatDays of supply at destination location

Write actions

These actions update Stockful settings for a variant. They affect how forecasts and reorder points are calculated.

Set safety stock

Set the safety stock override in days for a variant, affecting reorder point calculations. Inputs:
FieldRequiredDescription
ProductYesThe product to update
Variant IDYesThe numeric variant ID
Safety stock daysYesSafety stock buffer in days (e.g. 5 for five days of extra stock)
Returns:
FieldTypeDescription
successBooleanWhether the safety stock was applied
variant_idTextThe variant ID that was updated
safety_stock_daysIntegerThe safety stock in days that was applied

Set lead time

Set the lead time override in days for a variant, affecting reorder point calculations. Inputs:
FieldRequiredDescription
ProductYesThe product to update
Variant IDYesThe numeric variant ID
Lead time daysYesLead time in days (e.g. 14 for two weeks)
Returns:
FieldTypeDescription
successBooleanWhether the lead time was applied
variant_idTextThe variant ID that was updated
lead_time_daysIntegerThe lead time in days that was applied

Set demand adjustment

Adjust the demand forecast percentage for a variant to account for expected changes in sales. Inputs:
FieldRequiredDescription
ProductYesThe product to update
Variant IDYesThe numeric variant ID
Adjustment percentYesDemand adjustment percentage (e.g. 20 for +20%, -30 for -30%)
Returns:
FieldTypeDescription
successBooleanWhether the adjustment was applied
variant_idTextThe variant ID that was adjusted
demand_adjustmentFloatThe demand adjustment percentage that was applied
Use demand adjustments ahead of known sales events. For example, set +50% before Black Friday for your bestsellers, then reset to 0% after the event.

Integration actions

Send Slack message

Send a custom message to a Slack channel using the shop’s connected Slack workspace. Inputs:
FieldRequiredDescription
ChannelYesSlack channel name to send the message to (e.g. #inventory-alerts)
TitleNoOptional header for the message (defaults to “Stockful Alert”)
MessageYesThe message text to send (supports Slack mrkdwn formatting)
Returns:
FieldTypeDescription
deliveredBooleanWhether the message was delivered
errorTextError message if delivery failed
This action requires a Slack workspace connected in Stockful’s notification settings. If Slack isn’t connected, the action will return delivered: false with an error message.