The stock adjustment row object

AttributeDescription
idUnique identifier for the object.
stock_adjustment_idID of the stock adjustment the row belongs to.
variant_idID of product or material variant added to the stock adjustment row.
quantityThe quantity by which the stock is adjusted.
cost_per_unitUnit cost of the item. The default value is set to the current average cost of the item in stock. When the quantity is negative, the average cost is always used.
traceabilityAn array of allocation entries describing how the adjusted quantity is split across batches, serial numbers, and bin locations.
traceability.batch_idID of the batch the allocation is drawn from. Null when the allocation is untraced or serial-tracked. Mutually exclusive with serial_number_id.
traceability.serial_number_idID of the serial number for the allocation. Null when the allocation is untraced or batch-tracked. Mutually exclusive with batch_id.
traceability.bin_location_idID of the bin location the stock is adjusted in. Null when not bin-tracked.
traceability.quantityDecimal string quantity for the allocation entry. Required for stock adjustments. A serial number entry has quantity 1 on a row that adds stock and -1 on a row that removes stock.
deleted_atThe timestamp when the stock adjustment row was deleted.