Skip to main content

All guides

Feed the general ledger: ERP export, columns, and API call

Stylised flow: CSV file to the import endpoint, lines stored by entity and period.

Your ERP’s general-ledger export can feed Ninon as long as it comes as a table (CSV or Excel) with the expected columns or recognised FR/EN equivalents. Each imported row becomes a GL line tied to a group entity and a period—the material for intercompany matching. To trigger matching via API afterwards, see the “REST integration” guide in the same guides section.

Minimum business path

(1) Declare the legal entities in scope inside Ninon. (2) Create or open a reconciliation session for the period you are closing (YYYY-MM, e.g. 2026-03; 03/2026 or March 2026 are converted). (3) Load relevant lines with the CSV or Excel import described in this guide (the recommended path whatever your ERP, Sage 1000 included: ERP connectors are pending validation). (4) Run matching from the dashboard or via the REST integration guide once lines are present.

What each field means for group finance

entity (or entityId, name, internal code): maps to a Ninon entity — UUID no longer required; ambiguity rejects the row, no silent insert. period: reporting period, stored as YYYY-MM (e.g. 2026-03), the format used by reconciliation sessions and ERP connectors. A session only picks up rows whose period is exactly its own: 03/2026, 3-2026, 2026/03, 202603, March 2026 or an Excel date cell are therefore stored as 2026-03; an unrecognised value (fiscal period P03, period 13 adjustments) is stored as is and will only be reconciled in a session with the same label. Missing column or empty cell: the period is derived from the posting date. The import preview lists the periods recorded. date: posting date — ISO 8601 (2026-03-31), day/month/year (31/03/2026, 31.03.2026, 31-03-2026) or an Excel date cell; one order is used for the whole file: day/month by default, month/day (US export) only when a date requires it (03/31/2026) and none requires day/month. The import preview shows the order used, the date range and the first rows as they will be recorded. amount: signed amount, or debit/credit columns (debit − credit); comma or dot decimals, thousands spaces, leading or trailing minus and parentheses are accepted (1234.56, 1234,56, -1 234,56, 1.234,56, (1 234,56)). A row without a readable amount is rejected, never imported as zero. currency. accountCode. description. reference (optional). partnerCode (optional, corridors). source: defaults to csv.

CSV header row

The first row may use canonical keys (entity, date, amount, currency, description, accountCode, period — period optional) or FR/EN aliases (entity name, posting date, amount, debit, credit, currency, wording, account, period, document, partner). A column map can be saved per organisation. Separator: semicolon (the default for European ERP and Excel exports) or comma, detected on the header row. A description containing the separator must be wrapped in double quotes ("Recharge; fees"), as Excel does when saving as CSV. Encoding: UTF-8 (with or without BOM) or Windows-1252, the encoding of Excel’s “CSV (semicolon delimited)” format on Windows in French and of many ERP exports; it is detected automatically and accents in headers, descriptions and entity names are preserved. For any other encoding (UTF-16, for example), save the file as “CSV UTF-8” or upload the .xlsx directly.

Importing a FEC (French audit file of accounting entries)

The FEC (fichier des écritures comptables) is the standard export every French accounting package produces (article A47 A-1 of the French tax procedure code, for the submission required by article L47 A): one .txt file per company, with columns JournalCode, EcritureDate, CompteNum, EcritureLib, PieceRef, Debit, Credit and so on, separated by a tab or by “|”, dates written YYYYMMDD. Ninon reads it as is: the separator is detected on the header row, EcritureDate → date (20260331 → 2026-03-31, derived period: 2026-03), CompteNum → account, EcritureLib → description, PieceRef → reference, Debit − Credit → amount; the Montant + Sens variant (D/C or +1/-1) is accepted too. A FEC has no entity column: pick the “entity for the whole file” in the General ledger panel (or import it from the add-entity wizard); its lines are assigned to that entity, in the entity’s currency, because Debit and Credit are stated in the bookkeeping currency (Idevise only qualifies Montantdevise). A full FEC holds every entry of the financial year: preferably import an extract limited to intercompany accounts (for instance accounts 451 “Groupe” and the customer and supplier accounts of group companies), to stay under 10 MB per file and, on the free plan, under 25,000 lines per import. The CompAuxNum column (auxiliary account) is read as the partner code: on a 451 “Groupe” account or the customer account of a group company, enter once, in the partner mapping (Interco page of the dashboard, admins only), the auxiliary code of each partner company and the matching Ninon entity; its lines are then only matched with that entity. An unmapped code (external customer or supplier) has no effect. After each import, the General ledger panel lists the partner codes left without a partner entity (source entity, code, number of lines; limited to the accounts in the intercompany scope when one is set), with a “Map” link that opens the partner mapping prefilled. If the FEC was imported before the mapping was entered, re-import the same file: no line is created twice, and lines already there are linked to their partner.

Resolve entityId (API)

Each row resolves by Ninon id, internal entity code, or normalised name. Ambiguous or unknown tokens reject the row — no silent insert. List entities via the API (id, name, code, country, currency). Create with the admin API (name, country, currency, optional code).

CSV import endpoint

Two entry points share the same validation rules. (1) Method POST, path /api/integrations/csv: JSON body with a csvText field containing the full CSV as one string (header included). (2) Method POST, path /api/integrations/ledger-import: multipart/form-data with a single field file — .csv (UTF-8 or Windows-1252, detected automatically) or .xlsx (first worksheet only; row 1 must be the same headers as below). Max upload size 10 MB. Authentication: signed-in session. Roles: admin or member (not viewer). When billing enforcement is enabled on this Ninon deployment, an active subscription is required (HTTP 402).

JSON response

inserted: GL rows created. scanned: number of data rows in the file (header excluded from this count). parsedValid: rows that passed field validation. skippedWrongOrg / skippedBadDate: counts of rejected rows after validation. errors: array of objects (line, message, code) for parse-time and insert-time issues; errorsTruncated is true if more than 80 errors were omitted. Malformed CSV/Excel rows appear in errors with a line number when known.