Skip to main content

Update Stock Take

PUT 

/api/stock-takes/:stock_take

Update a stock take and its line items. Handles adding, updating, and removing items.

Authentication: Requires Bearer token.

items: each item accepts product_id (required, must exist), qty_counted (numeric, min 0), unit_cost (optional numeric, min 0 — an explicit 0 is valid and preserved, it does not fall back to the existing cost), to_delete (boolean, removes the line).

Returns 400 if the stock take is closed and attempts to change quantities, or if adjustment-mode items cannot be modified.

Response includes deletable (boolean) and delete_blocked_reasons (string[]): a draft/open stock take is always deletable; a closed stock take is deletable only when none of its FIFO cost layers have been consumed (otherwise deletable is false and delete_blocked_reasons lists the blocking stock take items).

Request

Responses

Successful response