Finance & Payments pack
Chart of accounts CSV import API
Import a chart of accounts from any accounting system: account number, name, type (asset to expense), parent account and active flag.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=chart_of_accounts_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.
chart_of_accounts_v1- fields
- 6
- required
- 2
- validated
- 0
- hints
- 34
| Canonical column | Type | Required | Validators | Header hints the cascade matches |
|---|---|---|---|---|
account_code | string | yes | — | kontonummerkontonuméro de comptenumero contoaccount numberaccount codenúmero de cuenta |
account_name | string | yes | — | kontobezeichnungbezeichnungintitulédenominazioneaccount namenombre de cuenta |
account_type | enumassetliabilityequityrevenueexpense | — | — | kontoartkontotyptype de comptetipo contoaccount typetipo de cuenta |
parent_code | string | — | — | sammelkontoübergeordnetcompte parentconto padreparent accountcuenta padre |
currency | string | — | — | währungdevisevalutamoneda |
active | boolean | — | — | aktivactifattivoactiveactivo |
Read the same definition as JSON at GET /v1/templates/chart_of_accounts_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.
- 6 canonical fields
- 2 required
- 0 validated
- 34 header hints, 5 languages
Why it exists
Written for the file you actually receive.
The Chart of accounts template is the canonical shape for an account plan — the list every other finance import depends on, because a journal line is meaningless until its account code resolves to a name and a type. Each row carries the account_code, the account_name, an account_type bounded to asset / liability / equity / revenue / expense, an optional parent_code for the roll-up, a currency for foreign-currency accounts and an active flag. Finance-systems teams reach for it first in any accounting migration, before a single journal moves, and again when consolidating subsidiaries that each started from a different national standard — the Swiss KMU plan, the German SKR03 or SKR04, the French PCG. It is `low` risk: an account plan is structure, not transactions, so a low template commits straight through without a review step.
account_code and account_name are required. account_type is an enum of the five classic statement classes; anything else (a "Bilanzkonto" label, a numeric class) surfaces in the dry-run instead of landing as free text. parent_code is a plain string so both numeric roll-ups (1020 under 10) and named groups work. active is a boolean, which lets you carry closed accounts across without reopening them. Hints cover DE / FR / IT / ES / EN, including Kontoart, type de compte and tipo conto.
Migration scenarios & the foreign headers they ship
Migration scenarios for the Chart of accounts template: a Swiss company moving its KMU plan from Abacus or Banana into Bexio, a German group mapping each subsidiary's SKR03 or SKR04 export onto one consolidation plan, a French entity bringing its PCG accounts from Sage into NetSuite, and a start-up exporting from QuickBooks or Xero into an ERP once it outgrows them. Typical headers: "Kontonummer / Konto / Numéro de compte / Numero conto / Account Code / Kontobezeichnung / Bezeichnung / Intitulé / Denominazione / Account Name / Kontoart / Kontotyp / Type de compte / Account Type / Sammelkonto / Compte parent / Aktiv / Actif". Xero's "*Code / *Name / *Type" header row resolves too once the asterisks are stripped by normalisation.
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/chart_of_accounts_v1.
curl -X POST https://api.adaptivmapr.com/v1/uploads \
-H "Authorization: Bearer $ADAPTIVMAPR_API_KEY" \
-F "template=chart_of_accounts_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: "chart_of_accounts_v1",
headers: ["account_code", "account_name", "account_type", "parent_code"]
})Questions








