Delete POS Order Status (v1)
Method & Path
DELETE /v1/workspace/:workspaceId/pos/order-statuses/:statusId
Actual backend path: /v1/workspace/:workspaceId/pos/order-statuses/:statusId
Description
Delete a workspace-defined POS order status. Invoices that had this status will have their orderStatusId unchanged in the database (optional: backend may set to null when status is deleted; current implementation does not cascade).
Authentication
Required: JWT in Authorization header.
Required permissions: store.orders.manage
Persona: Workspace Owner, Staff (store.orders.manage)
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
statusId | string | Yes | Order status ID (MongoDB ObjectId) |
Response 204 No Content
No body.
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Workspace or order status not found
- 500 Internal Server Error: Server error