inventory Set On Hand Quantities
Requires access scope. Also: The user must have a permission to update an inventory.
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 that tracks all changes made in this operation, including the delta values calculated from the previous quantities.
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.
Arguments
- Anchor to inputinput•Inventory
Set On Hand Quantities Input! required The information required to set inventory on hand quantities.
- Anchor to inventoryAdjustmentGroupinventory•Inventory
Adjustment Group Adjustment Group The group of changes made by the operation.
- Anchor to userErrorsuser•[Inventory
Errors Set On Hand Quantities User Error!]! non-null The list of errors that occurred from executing the mutation.