Skip to main content
Version: v1.0.0(int)

E164: Bulk-import sales orders

POST /api/sales-orders/bulk-import

Creates many SOs at once from an uploaded CSV or Excel file. Triggered from the Data page, SO import. Atomic.

Authentication

Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.

Request

{ "rows": [ { "customerRef": "CUST-1", "channelRef": "Direct", "shipToRef": "WH-1", "orderDate": "...", "items": [ ... ] } ] }

Response — 200 OK

{ "data": [ { "index": 0, "status": "ok", "id": "uuid", "soNumber": "SO-..." } ] }

Errors

HTTPcodeCondition
422validation_failedTop-level shape malformed.

Workflow

Calls W164 Bulk-import sales orders.