Skip to main content
Anchor to inventorySetOnHandQuantities

inventorySetOnHandQuantities

mutation

Requires write_inventory access scope. Also: The user must have a permission to update an inventory.

Deprecated. Use inventorySetQuantities to set on_hand or available quantites instead.

Sets an inventory item's on-hand quantities to specific absolute values at designated locations. The mutation takes a reason for tracking purposes and a reference document URI for audit trails.

Returns an InventoryAdjustmentGroup that tracks all changes made in this operation, including the delta values calculated from the previous quantities.


Caution

As of 2026-01, this mutation supports an optional idempotency key using the @idempotent directive. As of 2026-04, the idempotency key is required and must be provided using the @idempotent directive. For more information, see the idempotency documentation.


InventorySetOnHandQuantitiesInput!
required

The information required to set inventory on hand quantities.


Was this section helpful?

Anchor to InventorySetOnHandQuantitiesPayload returnsInventorySetOnHandQuantitiesPayload returns

Anchor to inventoryAdjustmentGroupinventoryAdjustmentGroup
InventoryAdjustmentGroup

The group of changes made by the operation.

[InventorySetOnHandQuantitiesUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?