Skip to main content

Bulk Insert (Create from Products)

POST 

/api/stock-takes/bulk-insert

Create a new stock take and bulk-insert product IDs as line items in one operation.

Authentication: Requires Bearer token.

ids: array of product IDs to add. Required unless filters is provided.

filters: alternatively provide DataTable filters to select products dynamically.

mode: full_count (default) or adjustment.

Returns the new stock_take_id.

Request

Responses

Successful response