DELETE /api/accrued-expenses/:id
Deletes an existing manual expense. Only expenses withtipo_origen: MANUAL can be deleted. XML-imported expenses cannot be removed through this endpoint.
Authentication
This endpoint requires authentication. Include your access token in the request cookies.Path Parameters
string
required
Unique identifier of the expense to delete
Response
string
required
Success message confirming deletion
Example Request
Example Response
Error Responses
error
Authentication required or token expired
error
Attempting to delete an XML-imported expense
error
User does not have permission to delete this expense
error
Expense not found
error
Server error occurred
This operation is permanent and cannot be undone. Ensure you want to delete the expense before making this request.