← API reference
Mutation / logistics

createWarehouseStock

Create a warehouse stock record in the caller's tenant with a server-assigned WarehouseStock TypeID. Returns validation errors rather than a record when the quantities are invalid. Emits a warehouse-stock created event. Requires write access to warehouse stock.

Arguments

State of the stock record to create.

Returns WarehouseStockPayload!

Explore in a view

Fulfillment
View exact SDL
"""
Create a warehouse stock record in the caller's tenant with a server-assigned WarehouseStock TypeID. Returns validation errors rather than a record when the quantities are invalid. Emits a warehouse-stock created event. Requires write access to warehouse stock.
"""
createWarehouseStock(
  """State of the stock record to create."""
  input: CreateWarehouseStockInput!
): WarehouseStockPayload! @topic(names: ["logistics"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.