Skip to main content

Import Lines from CSV

POST 

/api/stock-takes/:stockTake/import-lines

Import stock take lines from a previously uploaded CSV file. The CSV must have columns: sku or id (product identifier), and optionally qty_counted, snapshot_inventory, unit_cost.

Required scope: inventory:write

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

Authentication: Requires Bearer token.

file: path to an already uploaded file (not a direct upload).

Products matched by SKU or barcode. Duplicate products are summed. Unmatched SKUs generate warnings.

Returns parsed line items (not yet saved — save via the update endpoint).

Requires permission: inventory.count

Request

Responses

OK

Response Headers
    Content-Type