Skip to main content

Import Warehouse Transfer Lines

POST 

/api/warehouses/transfers/import-lines

Imports line items into an existing warehouse transfer from CSV data. Provide either file (a stored upload reference) or csvString (inline CSV content). The CSV must contain a sku column; quantity is optional and defaults to 1. Rows with the same SKU are merged and quantities summed.

Required scope: warehouses:write

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

Fields: warehouse_transfer_id (required), file or csvString (one required), replace (boolean - when true, replaces all existing lines instead of adding), separator (default ",") and escape (default '"').

Returns 400 when the CSV contains SKUs that do not match any product. Download a template from GET /api/warehouses/transfers/import-lines/template.

Authentication: Requires Bearer token.

Request

Responses

OK

Response Headers
    Content-Type