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.
warehouses:writeGrant 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
- 200
- 400
- 401
- 403
- 422
- 429
OK
Response Headers
Bad Request
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.