diff --git a/app/api/services/transaction_service.py b/app/api/services/transaction_service.py index cd78b2f..570489e 100644 --- a/app/api/services/transaction_service.py +++ b/app/api/services/transaction_service.py @@ -30,6 +30,7 @@ class TransactionService: # Extract filters account_id = filters.get('account_id') + transaction_id = filters.get('transaction_id') transaction_type = filters.get('type') channel = filters.get('channel') start_date = filters.get('start_date') @@ -54,6 +55,7 @@ class TransactionService: # Get transactions with optional filters and pagination transactions, total_count = Transaction.get_all_transactions( account_id=account_id, + transaction_id=transaction_id, transaction_type=transaction_type, channel=channel, start_date=start_date, @@ -97,4 +99,4 @@ class TransactionService: logger.error(f"An error occurred: {str(e)}", exc_info=True) return jsonify({ "message": "Internal Server Error" - }), 500 + }), 500 \ No newline at end of file