Extract transactions and balances from bank statements via API
TL;DR: sys_bank_statement extracts account holder, statement period, opening/closing balances, and a full transaction list (with credit/debit typing) from any bank statement — scanned or digital.
Bank statements are one of the more layout-inconsistent document types — every bank formats theirs differently, and reconciliation software needs the same structured shape regardless of which bank issued it. sys_bank_statement is a built-in schema built to normalize a statement into one consistent JSON structure — verify it against your own banks' real statement formats before relying on it at volume, the same way you would with any OCR-based extraction.
What gets extracted
| Field | Type | Notes |
|---|---|---|
accountHolder |
string | Name on the account |
accountNumber |
string | Last 4 digits only, by design |
statementPeriod |
{from, to} |
Date range covered |
openingBalance / closingBalance |
number | Start/end balances |
transactions |
array of {date, description, amount, type} |
type is credit or debit |
Note accountNumber is deliberately scoped to last-4-digits — the schema itself is designed not to ask for the full account number.
The API call
curl -X POST "https://api.logicspoke.com/pdf/v1/pdf/parse/sync" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-F "schemaId=sys_bank_statement"
Response:
{
"success": true,
"parseId": "parse_def456",
"data": {
"accountHolder": "John Doe",
"accountNumber": "4321",
"statementPeriod": { "from": "2026-05-01", "to": "2026-05-31" },
"openingBalance": 5000.00,
"closingBalance": 5450.00,
"transactions": [
{ "date": "2026-05-15", "description": "Payroll Direct Deposit", "amount": 1000.00, "type": "credit" },
{ "date": "2026-05-20", "description": "Electric Utility", "amount": 550.00, "type": "debit" }
]
},
"usage": { "pages": 2, "creditsUsed": 5 }
}
sys_bank_statement is a finance-category schema, so PII redaction (redact) is applied automatically — SSNs, full account numbers, or other identifiers that appear on the statement are stripped before the text reaches the AI model, even without setting redact=true yourself.
Questions
Does this reconcile the running balance against the transaction list?
No — extraction returns the numbers as printed on the statement. Reconciling opening + sum(transactions) against closing balance is validation logic you build on top, similar to the invoice total-reconciliation pattern in the invoice automation guide.
What if the statement spans many pages with dozens of transactions?
The schema handles arrays of any length — a 10-page statement with 200 transactions returns one transactions array, same shape as a 1-page statement with 3.
Is this HIPAA or PCI compliant?
Neither HIPAA nor PCI have a formal certificate LogicSpoke holds — redact gives you a real technical safeguard (stripping identifiers before AI processing and storage), not a compliance certification. See the PII redaction guide for the full picture.
Try it on a real statement.
Starter credits included on signup. No card required.