DemandFlow Support Centre

INVSTOCK: Stock Level

ReferenceEntity Reference16/04/2026Updated 16/04/2026
Site-level stock record for a component, tracking quantities for consumables and listing individual assets for tracked items.

INVSTOCK: Stock Level

Site-level stock record for a component, tracking quantities for consumables and listing individual assets for tracked items.

Default definition. This article describes the default INVSTOCK definition shipped with DemandFlow. Administrators can add, remove, rename, or re-type fields, change which ones are required, and alter the layout from the Definitions screen in Settings. Your tenant's current schema may differ from what is shown here. To read the current definition at any time, GET the DEFINITION object whose id matches INVSTOCK.

Entity properties

PropertyValue
Entity codeINVSTOCK
Display nameStock Level
PluralStock Levels
Level55000

Use cases

Unified stock position record: one per component per site. For consumables (indAsset=false), qtyOnHand/qtyReserved track aggregate quantities. For individually tracked items (indAsset=true), qtyOnHand reflects the count of COMPINV records and the Individual Assets panel shows each one.

Fields

Stock Identity

FieldTypeRequiredNotes
nametextYesAuto-generated or manual label, e.g. 'SFP-10G @ London DC'
siteIdreference → SITEYesSite.
componentIdreference → COMPYesComponent.
bomIdreference → BOMThe BOM this stock is associated with
statusenumValid ids: active (Active), lowStock (Low Stock), outOfStock (Out of Stock), discontinued (Discontinued).
binLocationtextShelf, bin, or storage location reference
notifyUserIdreference → userUser to notify when stock falls to or below reorder level

Quantities

FieldTypeRequiredNotes
qtyOnHandnumberYesQty On Hand.
qtyReservednumberQty Reserved.
qtyAvailablenumberOn hand minus reserved
reorderLevelnumberTrigger alert when on-hand falls to this level
reorderQtynumberSuggested quantity to order
minStocknumberMinimum Stock.
maxStocknumberMaximum Stock.
unitCostnumberUnit Cost.

Activity & Counting

FieldTypeRequiredNotes
lastMovementDatedateDate of the last INVTX affecting this stock
lastCountDatedateLast Count Date.
lastCountQtynumberLast Count Qty.
variancenumberDifference between counted qty and system qty at time of count
notestext (multi-line)Notes.

Relationships

  • Lookups: siteId points at a SITE record; componentId points at a COMP record; bomId points at a BOM record; notifyUserId points at a user.
  • Related lists: INVTX, COMPINV.

Creating a Stock Level via the API

POST /v1/objects
Authorization: Bearer <your-pat>
Content-Type: application/json

{
  "entity":   "INVSTOCK",
  "level":    55000,
  "comboKey": "SUB:<your-sub-id>|ENT:",
  "name": "Example",
  "siteId": "",
  "componentId": "",
  "qtyOnHand": 1
}

Listing Stock Levels

# All records in your tenant
GET /v1/entities/INVSTOCK/SUB:<your-sub-id>

See also

invstockstocklevellevels

Was this article helpful?

← Back to Knowledge Base