Skip to main content

AdjustInventoryInput

A correction to the stock of one variant in one warehouse.

input AdjustInventoryInput {
adjustmentQuantity: Float!
batchNumber: String
idempotencyKey: String
newUnitCost: Float
notes: String
productId: ID!
reason: String!
serialNumber: String
uomId: ID
variantId: ID!
warehouseId: ID!
}

Fields​

AdjustInventoryInput.adjustmentQuantity ● Float! non-null scalar​

The signed change in quantity: positive adds, negative removes.

AdjustInventoryInput.batchNumber ● String scalar​

The batch to adjust.

AdjustInventoryInput.idempotencyKey ● String scalar​

A unique key. Sending the same key again returns the adjustment already made instead of a second one.

AdjustInventoryInput.newUnitCost ● Float scalar​

The unit cost the stock should carry after the adjustment. It replaces the cost rather than blending into it. Leave out to keep the cost, since 0 is a real cost.

AdjustInventoryInput.notes ● String scalar​

Notes about the adjustment.

AdjustInventoryInput.productId ● ID! non-null scalar​

The ID of the product.

AdjustInventoryInput.reason ● String! non-null scalar​

Why the stock is being adjusted.

AdjustInventoryInput.serialNumber ● String scalar​

The serial number to adjust.

AdjustInventoryInput.uomId ● ID scalar​

The ID of the unit of measure.

AdjustInventoryInput.variantId ● ID! non-null scalar​

The ID of the product variant.

AdjustInventoryInput.warehouseId ● ID! non-null scalar​

The ID of the warehouse.

Member Of​

adjustInventory mutation