Documentation Index
Fetch the complete documentation index at: https://mintlify.com/bpstack/home-account-showcase/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint permanently deletes a transaction from the database. This action cannot be undone.
Authentication
Requires a valid authentication token. Only transactions belonging to accounts owned by the authenticated user can be deleted.
Path Parameters
UUID of the transaction to delete
Request
No request body is required. The transaction ID is specified in the URL path.
Response
Indicates whether the transaction was deleted successfully
Confirmation message of the deletion
Examples
Delete Transaction Request
curl -X DELETE https://api.example.com/api/transactions/550e8400-e29b-41d4-a716-446655440000 \
-H "Cookie: token=your-auth-token"
Success Response
{
"success": true,
"message": "Transacción eliminada correctamente"
}
Error Responses
Error message describing what went wrong
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 404 Not Found: Transaction not found or user doesn’t have access to it
Example Error Response
{
"success": false,
"error": "Transacción no encontrada"
}
Authorization
The endpoint verifies that:
- The user is authenticated (valid token)
- The transaction exists
- The transaction belongs to an account owned by the authenticated user
If any of these checks fail, a 404 error is returned. This prevents users from determining whether a transaction ID exists but belongs to another user.
Notes
- CSRF protection is enforced for this endpoint
- This operation is permanent and cannot be undone
- Deleting a transaction does not affect the account balance calculation, as the transaction is removed from all computations
- Both encrypted and unencrypted transactions can be deleted using this endpoint
- If the transaction is part of an imported batch, only this specific transaction is deleted
Best Practices
- Confirmation: Always show a confirmation dialog to users before deleting transactions
- Error Handling: Handle 404 errors gracefully - they could indicate the transaction was already deleted
- Audit Trail: Consider implementing soft deletes in your application if you need to maintain an audit trail