curl -X DELETE https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000"
}'
{
"success": true,
"message": "Presupuesto eliminado"
}
Delete an existing budget
curl -X DELETE https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000"
}'
{
"success": true,
"message": "Presupuesto eliminado"
}
curl -X DELETE https://api.homeaccount.com/budget/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000"
}'
{
"success": true,
"message": "Presupuesto eliminado"
}
400 - Missing account_id in request body401 - Missing or invalid authentication token403 - Invalid CSRF token404 - Budget not found or does not belong to the specified account500 - Internal server error