Admin API / Types

ProductVariantQuantityAdjustmentInput

Input

One stock change of one variant.

input ProductVariantQuantityAdjustmentInput

Input fields

FieldTypeDescription
deltaInt!Units to add, or to remove when negative. Not 0, and from -100,000 to 100,000; other values fail with VALIDATION_ERROR.
productVariantIdID!The variant.
reasonString!Why the stock changes, such as "Recounted the shelf" or "Two damaged in storage". 1 to 200 characters after trim; other values fail with VALIDATION_ERROR. ProductVariant.quantityHistory shows it.