The stock adjustment object

AttributeDescription
idUnique identifier for the object.
stock_adjustment_dateThe timestamp when the adjustments for the "In stock" quantity of products and materials are recorded. ISO 8601 format with time and timezone must be used.
location_idID the stock location being adjusted.
stock_adjustment_numberA string used to identify the stock adjustment.
reasonA descriptive field for your own information to enable better identification.
additional_infoA string attached to the object to add any internal comments, links to external files, additional instructions, etc.
stock_adjustment_rowsAn array of stock adjustment rows.
created_atThe timestamp when the stock adjustment was created.
updated_atThe timestamp when the stock adjustment was last updated.

The stock adjustment row object

AttributeDescription
idUnique identifier for the object.
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.
traceabilityAn array of allocation entries describing how the adjusted quantity is split across batches, serial numbers, and bin locations. Preferred over batch_transactions; when both are supplied, traceability takes precedence.
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 — the service does not default it, so a missing quantity is rejected. Serial entries are implicitly "1" but the value must still be sent.
batch_transactionsDeprecated — use traceability instead. An array of batch transactions and their quantities. You can adjust stock for the same item from multiple batches. When traceability is supplied it takes precedence over batch_transactions.
batch_transaction.batch_idID of the batch for the adjusted item.
batch_transactions.quantityThe quantity adjusted from a particular batch.