Skip to main content

Delete Expense (v1)

Method & Path

DELETE /api/v1/client/workspace/:workspaceId/expenses/:expenseId

Description

Delete an expense record from the workspace.

Authentication

Required: Workspace authentication. User must be authenticated as Workspace Owner or Staff with financial permissions.

Headers

Authorization: Bearer <workspace_token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier
expenseIdstringYesExpense identifier

Response 204 No Content

The expense has been successfully deleted. No response body is returned.

Common Errors

400 Bad Request: Invalid expense ID format

401 Unauthorized: Missing or invalid authentication token

403 Forbidden: User does not have permission to delete expense records

404 Not Found: Expense or workspace not found

500 Internal Server Error: Server error occurred while processing the request