E064: Bulk-import customers
POST /api/customers/bulk-import
Creates many customers at once from an uploaded CSV or Excel file. Triggered from the Data page, Customers import. Atomic.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "rows": [ { "name": "...", "code": "...", "customerTypeName": "Distributor", ... } ] }
Response — 200 OK
{ "data": [ { "index": 0, "status": "ok", "id": "uuid" } ] }
Errors
| HTTP | code | Condition |
|---|---|---|
| 422 | validation_failed | Top-level shape malformed. |
Workflow
Calls W064 Bulk-import customers.