Scan bank statements to detect recurring charges, flag suspicious transactions, and draft refund requests with interactive HTML reports.
Scan bank statements to detect recurring charges, flag suspicious transactions, identify duplicates and fees, draft refund request templates, and generate an interactive HTML audit report.
Ask user for bank/card CSV export or pasted text. Common sources:
Or accept pasted text format:
2026-01-03 Spotify -11.99 USD
2026-01-15 Salary +4500 USD
Run the parser on their data:
python -m refund_radar analyze --csv statement.csv --month 2026-01
Or for pasted text:
python -m refund_radar analyze --stdin --month 2026-01 --default-currency USD
The parser auto-detects:
Tool identifies recurring subscriptions by:
Output shows:
Tool automatically flags:
| Flag Type | Trigger | Severity |
|---|---|---|
| Duplicate | Same merchant + amount within 2 days | HIGH |
| Amount Spike | > 1.8x baseline, delta > $25 | HIGH |
| New Merchant | First time + amount > $30 | MEDIUM |
| Fee-like | Keywords (FEE, ATM, OVERDRAFT) + > $3 | LOW |
| Currency Anomaly | Unusual currency or DCC | LOW |
For flagged items, ask in batches of 5-10:
Update state based on answers:
python -m refund_radar mark-expected --merchant "Costco"
python -m refund_radar mark-recurring --merchant "Netflix"
Report saved to ~/.refund_radar/reports/YYYY-MM.html
Copy template.html structure. Sections:
Features:
For each flagged charge, generate three template types:
Three tone variants each:
Templates include:
Important: No apostrophes in any generated text.
# Analyze statement
python -m refund_radar analyze --csv file.csv --month 2026-01
# Analyze from stdin
python -m refund_radar analyze --stdin --month 2026-01 --default-currency CHF
# Mark merchant as expected
python -m refund_radar mark-expected --merchant "Amazon"
# Mark merchant as recurring
python -m refund_radar mark-recurring --merchant "Netflix"
# List expected merchants
python -m refund_radar expected
# Reset learned state
python -m refund_radar reset-state
# Export month data
python -m refund_radar export --month 2026-01 --out data.json
| Path | Purpose |
|---|---|
~/.refund_radar/state.json | Learned preferences, merchant history |
~/.refund_radar/reports/YYYY-MM.html | Interactive audit report |
~/.refund_radar/reports/YYYY-MM.json | Raw analysis data |