Skip to main content

Finalize Stock Take

POST 

/api/stock-takes/:stockTake/finalize

Finalize an open stock take. Creates inventory adjustments for all variances and transitions to Closed status.

Required scope: inventory:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Returns 400 if protected inventory conflicts exist, insufficient stock, or stock take is not open.

Requires permission: inventory.count

  • rechain_affected (optional bool, default false) — when the entry is dated earlier than existing consumption in an affected product/warehouse pool, opt in to re-anchor those later transactions to the oldest available stock (true FIFO) after the save commits. Runs as a background job; pools in a locked accounting period or with unsupported shapes are skipped and reported.

Request​

Responses​

OK

Response Headers
    Content-Type