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.

30-second curl
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"
→ 8 canonical fields · 1 validated · high risk

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 columnTypeRequiredValidatorsHeader hints the cascade matches
booking_datedateyes—buchungsdatumbuchungstagdate comptabledata contabilebooking datefecha contable
value_datedate——valutavalutadatumdate de valeurdata valutavalue datefecha valor
amountnumberyes—betragmontantimportoamountimporte
currencystringyes—währungdevisecurrencymoneda
counterparty_namestring——auftraggeberempfängerbegünstigtercontrepartiebénéficiairecontropartecounterpartypayeebeneficiario
counterparty_ibanstring—ibanibangegenkontoiban contrepartieiban contropartecounterparty ibaniban contraparte
referencestring——verwendungszweckreferenzmitteilungcommunicationréférencecausalereferenceremittanceconcepto
balancenumber——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.

  1. 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}.

  2. L2Heuristicno LLM

    Normalises accents, punctuation and whitespace, then compares against the column name, the label, and every registered hint (DE / FR / IT / EN / ES).

  3. L3Fuzzyno LLM

    Token-set ratio plus Levenshtein over the normalised strings. Auto-accepts at 0.80 — it absorbs typos and reordered words.

  4. L4Semanticcheap, cached

    Embedding cosine between the header and the field’s label + hints. Catches the long tail of paraphrases.

  5. 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.

bash
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"
→ upload created · mappings ready · confirm before commit

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.

mcp
// 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"]
})
schema-only · column names and a few examples only
MCP install instructions
high-risk template

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.

How the wallet is charged

Questions

Bank statement lines CSV import — FAQ

Do you import camt.053 or MT940 files?
Not natively. The template maps CSV, Excel, JSON and SQL exports. Most e-banking portals offer a CSV or Excel export alongside camt.053, and that is the file to map.
Some exports split debit and credit into two columns. Does that work?
The template expects one signed amount. Two columns is a structural difference rather than a naming one, so it goes through a reshape that combines them, not through a plain header mapping.
Why is a bank statement high risk?
A line can name a private person, give their IBAN and show what they paid for. In production the commit is refused until a workspace member approves that exact mapping in the dashboard; nothing high risk commits on an unreviewed mapping.
What leaves our environment while the mapping is decided?
In Minimal data mode, only column names and a few example values. Full statement lines stay on your side unless you choose Full data mode.

Map bank statement lines in production — without shipping raw records.

Minimal data mode sends only column names and a few example values — never the full file. Add full-data when you need row-level AI, routed in-region under a BAA.