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.

30-second curl
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"
→ 6 canonical fields · 0 validated · low 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.

chart_of_accounts_v1
fields
6
required
2
validated
0
hints
34
Canonical columnTypeRequiredValidatorsHeader hints the cascade matches
account_codestringyes—kontonummerkontonuméro de comptenumero contoaccount numberaccount codenúmero de cuenta
account_namestringyes—kontobezeichnungbezeichnungintitulédenominazioneaccount namenombre de cuenta
account_typeenumassetliabilityequityrevenueexpense——kontoartkontotyptype de comptetipo contoaccount typetipo de cuenta
parent_codestring——sammelkontoübergeordnetcompte parentconto padreparent accountcuenta padre
currencystring——währungdevisevalutamoneda
activeboolean——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.

  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/chart_of_accounts_v1.

bash
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"
→ 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: "chart_of_accounts_v1",
  headers: ["account_code", "account_name", "account_type", "parent_code"]
})
schema-only · column names and a few examples only
MCP install instructions

Questions

Chart of accounts CSV import — FAQ

My system has more account types than five. What happens?
Values outside asset / liability / equity / revenue / expense are reported in the dry-run rather than silently accepted. Either translate them in your export, or save an edited copy of the template as a workspace schema with the enum you actually use.
Does the template build the account hierarchy?
It carries parent_code per row, which is enough for your target system to rebuild the tree. It does not check that every parent exists in the same file — a partial plan is a valid import.
Why import the chart of accounts separately from the ledger?
Because every journal line references it. Importing the plan first means ledger lines can be checked against known account codes in your target system, and it is the one finance file that rarely changes between runs.
Does a chart of accounts need approval before commit?
No. It is a low-risk template — structure without amounts or counterparties — so it commits straight through. The ledger and vendor templates are the ones that wait for a recorded approval.

Map chart of accounts 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.