Finance & Payments pack
Bank statement lines CSV import API
Map bank statement exports into one shape for reconciliation: booking and value date, amount, counterparty, IBAN, reference, balance.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=bank_transactions_v1" \
-F "file=@your_data.csv"Canonical columns
The whole schema, printed as it ships.
Every canonical column, the type each row carries, whether it is required, the field-level validators that fire on commit, and the multilingual header hints the cascade resolves against. This is the shipped definition, not a summary of it.
bank_transactions_v1- fields
- 8
- required
- 3
- validated
- 1
- hints
- 49
| Canonical column | Type | Required | Validators | Header hints the cascade matches |
|---|---|---|---|---|
booking_date | date | yes | — | buchungsdatumbuchungstagdate comptabledata contabilebooking datefecha contable |
value_date | date | — | — | valutavalutadatumdate de valeurdata valutavalue datefecha valor |
amount | number | yes | — | betragmontantimportoamountimporte |
currency | string | yes | — | währungdevisecurrencymoneda |
counterparty_name | string | — | — | auftraggeberempfängerbegünstigtercontrepartiebénéficiairecontropartecounterpartypayeebeneficiario |
counterparty_iban | string | — | iban | ibangegenkontoiban contrepartieiban contropartecounterparty ibaniban contraparte |
reference | string | — | — | verwendungszweckreferenzmitteilungcommunicationréférencecausalereferenceremittanceconcepto |
balance | number | — | — | saldokontostandsoldebalance |
Read the same definition as JSON at GET /v1/templates/bank_transactions_v1. A hint match resolves on layer 2 — no LLM call, no token spend, just the flat per-map fee. Hover a validator id to see what it checks.
- 8 canonical fields
- 3 required
- 1 validated
- 49 header hints, 5 languages
Why it exists
Written for the file you actually receive.
The Bank statement lines template is the canonical shape for statement transactions — the export an e-banking portal or a treasury tool produces for reconciliation. Each line carries the booking_date, an optional value_date, the signed amount, the currency, the counterparty_name and counterparty_iban, the remittance reference and the running balance. Accounting and treasury teams reach for it to reconcile bank lines against open invoices, to load several banks' statements into one cash view and to move statement history when switching banks or accounting systems. It is `high` risk: when the counterparty is a person, the line names them, gives their account number and says what they paid for. In production the commit is refused until a workspace member approves that exact mapping in the dashboard, and a mapping changed after approval needs approving again.
booking_date, amount and currency are required. amount is signed — outgoing payments negative, incoming positive — the way most portals already export it. counterparty_iban runs a mod-97 checksum with a country allow-list (CH, LI, DE, FR, IT, ES, AT, NL, BE). value_date and balance are optional, because some exports carry neither. reference is free text: structured QR or creditor references and free-form remittance text both pass through untouched. The template maps tabular exports; it does not read camt.053 or MT940 files directly.
Migration scenarios & the foreign headers they ship
Migration scenarios for the Bank statement lines template: a Swiss SME reconciling PostFinance and UBS CSV exports against open invoices in Bexio, a German company pulling statements from several banks into one liquidity view, a French entity loading its relevé CSV into a new accounting package, and a treasury team archiving years of statement history before a bank switch. Headers that arrive: "Buchungsdatum / Buchungstag / Date comptable / Data contabile / Booking Date / Valuta / Valutadatum / Date de valeur / Betrag / Montant / Importo / Währung / Devise / Auftraggeber / Empfänger / Begünstigter / Contrepartie / Bénéficiaire / IBAN / Gegenkonto / Verwendungszweck / Mitteilung / Communication / Causale / Saldo / Kontostand / Solde". Where a bank offers camt.053 only, export the CSV or Excel view next to it, or use the file your treasury tool has already flattened.
The cascade
Six layers, and the cheapest one wins.
Layers run in order and stop the moment a column resolves. That is the single biggest cost lever in the system: a column caught on layer 2 never reaches the metered layer 5.
- L1Statisticsno LLM
Auto-accepts a header that past confirmations already resolved the same way, at {minN:100, minRatio:0.95} or {minN:20, minRatio:1.00}.
- L2Heuristicno LLM
Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).
- L3Fuzzyno LLM
Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.
- L4Semanticcheap, cached
Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.
- L5LLMmetered
Everything still unresolved goes up in ONE batched, collision-aware call, constrained to this template’s column set so it cannot invent a field.
Try it
One template id, two ways in.
REST for your import pipeline, MCP for your editor. Both run the same cascade and both honour the same schema-only clamp.
REST · POST /v1/uploads
Name the template; the cascade picks up the rest. The canonical definition is read-only at GET /v1/templates/bank_transactions_v1.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=bank_transactions_v1" \
-F "file=@your_data.csv"MCP · Cursor / Claude Desktop
Drop AdaptivMapr into your editor and call the same cascade as a tool. Schema-only calls leave only column names and a few example values.
// In Cursor or Claude Desktop with the AdaptivMapr MCP server installed:
adaptivmapr.match_headers({
template_id: "bank_transactions_v1",
headers: ["booking_date", "value_date", "amount", "currency"]
})The mappings response comes back flagged. PATCH /uploads/:id/mappings returns requires_hitl: true and hitl_status: "pending_review" and on the hosted API a commit waits until a workspace member records an approval. Schema-only mode (column names and a few example values, never the full file) is a data-minimization mode enforced at the HTTP edge. Full-data mode routes the metered layer-5 call to phi-cloud in-region under a BAA, costs 20% more on the whole map charge, and stays locked until the workspace accepts the BAA/NDA in Settings → Security & Data.
Questions








