E092: Create location
POST /api/locations
Adds a new fulfillment location. Triggered from Settings, Fulfillment locations, "New location". The same row is reused as PO ship-to, WO work site, SO fulfillment location, and inventory bin.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Admin.
Request
{ "code": "WH-1", "name": "...", "address": "..." }
Response — 201 Created
{ "id": "uuid", "code": "WH-1", "name": "...", "address": "...", "createdAt": "..." }
Errors
| HTTP | code | Condition |
|---|---|---|
| 422 | validation_failed | Duplicate code, or shape invalid. |
Workflow
Calls W092 Create location.