← API reference
CANONICAL TYPE REFERENCE

CreateWarehouseStockInput

Input for createWarehouseStock: a new stock record is always created, with a server-assigned WarehouseStock TypeID, in the caller's tenant.

Create a material lot atomically with this stock; mutually exclusive with materialLotId

Associate an existing material lot belonging to this tenant

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.

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.

Portion of quantity already committed to jobs and therefore not available. Must be between 0 and quantity. Defaults to 0 when omitted.

Supplier 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.

notesString

Free-text operator notes about this stock record.

View exact SDL
"""
Input for `createWarehouseStock`: a new stock record is always created, with a server-assigned WarehouseStock TypeID, in the caller's tenant.
"""
input CreateWarehouseStockInput {
  """
  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
  """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.