Skip to content

Deposit AML Monitoring

Automated anti-money laundering threshold monitoring via daily balance snapshots.

Overview

The deposit AML monitoring system automatically flags accounts that breach configurable transaction thresholds during End-of-Day (EOD) processing. This provides compliance teams with real-time alerts and a complete audit trail.

How It Works

EOD Balance Snapshot

During EOD batch processing, eod_capture_balance_snapshots runs for every ACTIVE, DORMANT, and FROZEN account:

  1. Captures daily snapshot — opening/closing balance, deposits, withdrawals, accrued interest
  2. Checks AML thresholds — compares daily totals against product-level flags
  3. Flags breaches — sets aml_flag = 1 with structured aml_details JSON
  4. Queues notifications — inserts activity log entries for compliance review

AML Threshold Flags

These flags are configured per deposit product type:

FlagDefaultDescription
AML_DAILY_DEPOSIT_THRESHOLD10,000Daily cumulative deposit amount trigger
AML_DAILY_WITHDRAWAL_THRESHOLD10,000Daily cumulative withdrawal amount trigger
AML_MONTHLY_TURNOVER_THRESHOLD100,000Monthly total turnover trigger
AML_ENABLE_NOTIFICATIONStrueWhether to queue notification on breach

AML Details Structure

When a breach is detected, the aml_details JSON contains:

json
{
  "breach_type": "DAILY_DEPOSIT",
  "threshold": 10000.0,
  "actual_amount": 15000.0,
  "transaction_count": 3,
  "flagged_date": "2026-04-26"
}

Balance Snapshot Table

The deposit_account_balance_snapshot table stores one row per account per day:

ColumnDescription
opening_balancePrevious day's closing balance
closing_balanceCurrent account balance
total_deposits / total_withdrawalsDaily aggregates
deposit_count / withdrawal_countTransaction counts
accrued_interestInterest accrued on this day
blocked_amount / hold_amountActive blocks and holds
aml_flag1 if any threshold breached
aml_detailsJSON with breach details

Frontend

The BalanceSnapshotDialog component provides:

  • Date-filtered balance history table
  • AML-only filter toggle
  • Color-coded AML flag indicators (red rows for breaches)
  • Click-through to detailed breach information
  • Summary cards (avg balance, total deposits/withdrawals, AML flag count)

API Endpoints

MethodPathPermission
POST/deposit-accounts/eod/capture-balance-snapshotsRUN_EOD
POST/deposit-accounts/eod/expire-holdsRUN_EOD

PinkApple ERP by Stat Solutions Network