Skip to main content

Delete Expense (v1)

Method & Path​

DELETE /api/v1/admin/expenses/:expenseId

Description​

Delete an expense record from the platform. This action is irreversible.

Authentication​

Required: Admin authentication with dashboard.view permission.

Headers​

Authorization: Bearer <admin_token>
Content-Type: application/json

Path Parameters​

ParameterTypeRequiredDescription
expenseIdstringYesThe unique identifier of the expense to delete

Response 204 No Content​

The request succeeds and returns no content.

Common Errors​

400 Bad Request: Invalid expense ID format

401 Unauthorized: Missing or invalid authentication token

403 Forbidden: Admin does not have dashboard.view permission

404 Not Found: Expense not found

500 Internal Server Error: Server error occurred while deleting the expense

Notes​

  • This action is permanent and cannot be undone
  • Associated receipt images in storage are not automatically deleted (they may be cleaned up separately)