Skip to content

UpsertWarehouseStockInput ​

Type: Input

Full-state input for upsertWarehouseStock: every field of the record is written, so omitted optional fields are stored as null / their default.

Fields ​

NameTypeDefaultDescription
batchNumberStringSupplier or production batch/lot number this stock belongs to. Null when the item is not batch-tracked.
expiryDateISO8601ISO-8601 timestamp at which this batch expires. Null when the item does not expire.
idWarehouseStockIDWarehouseStock TypeID (wst_…) to write. Omit to create a new record; supply an existing id to overwrite that record in full (its original createdAt is preserved).
lastCountedAtISO8601ISO-8601 timestamp of the most recent physical stock count of this record. Null when it has never been counted.
locationIdWarehouseLocationID!WarehouseLocation TypeID (wlc_…) of the location holding this stock.
notesStringFree-text operator notes about this stock record.
quantityFloat!Quantity on hand at the location, expressed in unit. Must not be negative.
reservedQuantityFloatPortion of quantity already committed to jobs and therefore not available. Must be between 0 and quantity. Defaults to 0 when omitted.
stockableIdString!TypeID of the catalog entity of stockableType being stocked (e.g. the substrate or component record). Resolved through the vertical's stockable resolver; ids it cannot resolve are still stored and surfaced as an unresolved stockable marker.
stockableTypeStockableType!Kind of item being stocked; with stockableId it identifies the polymorphic catalog entity this row counts.
unitMeasurementUnitUnit of measure for quantity, reservedQuantity and availableQuantity (e.g. SHEET, KG, PC). Defaults to PC when omitted.

Connect machines, automate workflows, and build custom apps for print production.