Skip to main content
Stockful writes 11 metafields to Shopify - 7 at the variant level and 4 at the product level. All metafields have public_read storefront access and are available in Liquid, the Storefront API, and the window.stockful JavaScript API.

Namespace

All metafields use the namespace app--326028230657--stockful.

Variant metafields

These are written to each ProductVariant and reflect per-variant inventory data.

stock_status

Current stock status for this variant.
Internally, Stockful also tracks an “overstock” status for merchant analytics - but on the storefront this is normalized to in_stock since customers don’t need to know a product is overstocked.

days_of_supply

Estimated number of days until this variant runs out of stock, based on current sell-through velocity.

velocity_trend

Sales velocity classification based on ABC analysis and sell-through rate.
  • selling_fast - ABC class A (top 80% of revenue) with positive velocity
  • steady - ABC class B (next 15% of revenue) with positive velocity
  • slow - ABC class C (bottom 5%) or no measurable velocity

projected_stockout

The estimated date when this variant will be out of stock, in ISO 8601 format.

abc_class

Revenue-based classification of this variant using ABC analysis.
  • A - Top 80% of revenue (your best sellers)
  • B - Next 15% of revenue
  • C - Bottom 5% of revenue

restock_status

Whether new stock is expected for this variant.
  • pending - Incoming stock has been recorded (purchase order or transfer in transit)
  • needed - Stock is at or below reorder point and no incoming stock is recorded
  • none - No restock action required

sold_last_30d

Total units sold for this variant across all locations in the past 30 days.

Product metafields

These are written to the Product and aggregate data across all variants.

stock_status (product)

The worst stock status across all variants of this product. The “worst” status means: if any variant is out_of_stock, the product is out_of_stock. If any variant is low_stock (and none are out), the product is low_stock.

low_stock_variant_count

Number of variants that are low_stock or out_of_stock.

velocity_trend (product)

The dominant velocity trend across all variants, weighted by ABC classification (A-class variants carry more weight).

total_sold_30d

Sum of units sold across all variants in the past 30 days.