Update a stock adjustment row

Changes the variant, quantity, cost per unit and traceability of a stock adjustment row.
Send only the fields to change. traceability replaces all batches, serial numbers and bin locations of the row.
Serial numbers are sent by id; create them first with POST /serial_numbers.
When the row quantity is negative, the item's average cost is used and cost_per_unit is ignored.

The request is refused with 422 when the stock adjustment is linked to another document, when its date is inside
the closing period, or when an entry has a batch, serial number or bin location that is unknown. A refused request
does not change the row.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Stock adjustment row id

Body Params
number
≤ 100000000000000000
integer
≤ 2147483647
number
≤ 1000000000000000000
traceability
array of objects

Replaces all traceability entries of the row. [] clears them. Leave it out to keep them. A serial number entry has quantity '1' on a row that adds stock and '-1' on a row that removes stock.

traceability
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json