E076: Create SKU
POST /api/skus
Creates a new finished-goods SKU. Triggered from the SKUs page, "New SKU".
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Member.
Request
{ "code": "FG-001", "name": "...", "skuTypeId": "uuid", "unit": "case", "isFinishedGood": true }
Response — 201 Created
{ "id": "uuid", "code": "FG-001", "name": "...", "skuTypeId": "uuid", "unit": "case", "isActive": true, "isFinishedGood": true, "createdAt": "..." }
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | SKU type not found. |
| 422 | validation_failed | Duplicate code within org, or shape invalid. |
Workflow
Calls W076 Create SKU.