AlmondTill/G3N API

StockRecord

object type

Carries only the three locatable buckets (reserved is a claim overlay, in_transit is not physically here — both stay on the item caches); quantities are non-negative (a relocate refuses driving a record negative — CONFLICT/INSUFFICIENT_STOCK). The derived un-binned pool = item caches minus the record sums (see verifyInventoryItem). Records persist at zero; a zeroed record does NOT block its bin.

Fields

FieldTypeNotes
inventoryItemIdID ID!The owning InventoryItem.
binIdID ID!The Bin holding this shard.
lotCodeStringThe lot identity.
lotExpiresAtStringThe lot expiry (UTC instant) — birth-stamped; a later mismatch refuses; a record missing it is enriched by the next lotted relocate that supplies one.
onHandQtyString String!
damagedQtyString String!
heldQtyString String!
createdAtString String!
updatedAtString String!
revisionNumInt Int!

Used by