Inventory
Base path: /api/data/inventory
All inventory CRUD endpoints are registered but not yet implemented — handlers are empty stubs.
POST /api/data/inventory
Create a new inventory record.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
Inventory Snapshot Schema Reference
| Field | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | Tenant identifier |
| productId | string | Yes | Associated product ID |
| quantityAvailable | number | Yes | Available quantity (integer) |
| quantityReserved | number | Yes | Reserved quantity (integer) |
| updatedAt | date | Yes | Last update timestamp |
Inventory Transaction Schema Reference
| Field | Type | Required | Description |
|---|---|---|---|
| tenantId | string | Yes | Tenant identifier |
| productId | string | Yes | Associated product ID |
| orderId | string | No | Associated order ID |
| type | enum | Yes | ADJUSTMENT, RESERVE, RELEASE, SALE, RESTOCK |
| quantityDelta | number | Yes | Change in quantity (integer, positive or negative) |
| reason | string | No | Reason for the transaction |
| createdAt | date | Yes | Transaction timestamp |
GET /api/data/inventory/:id
Retrieve an inventory record by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
PATCH /api/data/inventory/:id
Update an inventory record by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.
DELETE /api/data/inventory/:id
Delete an inventory record by ID.
Auth: Session cookie required
Tenant: Scoped via x-tenant-id header
Not yet implemented — returns no response.