UpsertWarehouseStockInput
Full-state input for upsertWarehouseStock: every field of the record is written, so omitted optional fields are stored as null / their default.
Create a material lot atomically with this stock; mutually exclusive with materialLotId
Associate an existing material lot belonging to this tenant
WarehouseStock 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).
WarehouseLocation TypeID (wlc_…) of the location holding this stock.
Kind of item being stocked; with stockableId it identifies the polymorphic catalog entity this row counts.
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.
quantityFloat!Quantity on hand at the location, expressed in unit. Must not be negative.
Unit of measure for quantity, reservedQuantity and availableQuantity (e.g. SHEET, KG, PC). Defaults to PC when omitted.
reservedQuantityFloatPortion of quantity already committed to jobs and therefore not available. Must be between 0 and quantity. Defaults to 0 when omitted.
batchNumberStringSupplier or production batch/lot number this stock belongs to. Null when the item is not batch-tracked.
ISO-8601 timestamp at which this batch expires. Null when the item does not expire.
ISO-8601 timestamp of the most recent physical stock count of this record. Null when it has never been counted.
notesStringFree-text operator notes about this stock record.
View exact SDL
"""
Full-state input for `upsertWarehouseStock`: every field of the record is written, so omitted optional fields are stored as null / their default.
"""
input UpsertWarehouseStockInput {
"""
Create a material lot atomically with this stock; mutually exclusive with materialLotId
"""
materialLot: NewMaterialLotInput
"""Associate an existing material lot belonging to this tenant"""
materialLotId: MaterialLotID
"""
WarehouseStock 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).
"""
id: WarehouseStockID
"""WarehouseLocation TypeID (`wlc_…`) of the location holding this stock."""
locationId: WarehouseLocationID!
"""
Kind of item being stocked; with `stockableId` it identifies the polymorphic catalog entity this row counts.
"""
stockableType: StockableType!
"""
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.
"""
stockableId: String!
"""
Quantity on hand at the location, expressed in `unit`. Must not be negative.
"""
quantity: Float!
"""
Unit of measure for `quantity`, `reservedQuantity` and `availableQuantity` (e.g. SHEET, KG, PC). Defaults to PC when omitted.
"""
unit: MeasurementUnit
"""
Portion of `quantity` already committed to jobs and therefore not available. Must be between 0 and `quantity`. Defaults to 0 when omitted.
"""
reservedQuantity: Float
"""
Supplier or production batch/lot number this stock belongs to. Null when the item is not batch-tracked.
"""
batchNumber: String
"""
ISO-8601 timestamp at which this batch expires. Null when the item does not expire.
"""
expiryDate: ISO8601
"""
ISO-8601 timestamp of the most recent physical stock count of this record. Null when it has never been counted.
"""
lastCountedAt: ISO8601
"""Free-text operator notes about this stock record."""
notes: String
}One stable address across all schema views. Follow a field’s type to explore connections between domains.