For reconciling the DSN with the accounts (FEC)
DSN and FEC reconciliation, month by month
See, month by month, what differs between your DSN and your accounts. DSNLint reconciles the DSN and the FEC, proposes the accounts you confirm, and every difference calls for your explanation.
What DSNLint reconciles
The DSN on one side, the FEC (the French accounting entries file) on the other: each amount retains its source, and the report says which month it attaches each amount to.
- Your FEC, flat or XMLRead under article A47 A-1 (commercial, commercial IR, agricultural, non-commercial profits); only totals per account and per month are kept.
- Proposed accounts for confirmationDSNLint proposes the accounts (641, 645, 4421, 421…); you confirm them, and no confirmation is ever inferred from the account number.
- Gross pay and employer contributionsThe declared Social Security base is set against the 641 accounts you confirm; employer contributions against the 645 accounts, once their breakdown is entered.
- Payroll liabilitiesEach organisation’s debt is reconciled with accounts 431, 437 or 4421; a period spanning several months is not split arbitrarily.
- Tax withheld at sourceThe declared withholding is compared with the credits of account 4421, to the cent, once your confirmations are entered.
- Missing months identifiedThe periods covered and the periods missing are named; the absence of an amount is not a zero.
- Payments found in bank recordsA payment to an organisation is looked for in the bank account, within the window of days you set: found or not found.
- Verification entries in FEC formatOn request, a separate file in FEC format, never merged into yours: each entry is marked “to be validated” and points to its DSN.
In the application
In the application, you upload your DSN files and the accounting entries file (FEC), whose amounts are matched. Each difference calls for an explanation, and the verification entries are offered for validation: they are not a validated FEC.
Proposed accounts for confirmation
Reading completed on a 12-line FEC. The lines for gross pay (account 641) and employer contributions (645) stay “to be entered”: DSNLint proposes the account and waits for your confirmation. For January, the DSN declares €9,600.00 of Social Security base; the FEC stays “not evaluated”.
rapport.txt · lines 1 to 30 of 161
Comptabilité — lecture achevée, 12 lignes FEC
Empreinte FEC : 98e37282994bdd205023af7e026dec01ec3a004a134d0aba49be9326856386cf
Les différences descriptives ne constituent pas une obligation de concordance.
Rémunérations brutes — non saisi — janvier 2026 : à saisir
FEC non évalué ; DSN déclarée 9 600,00 EUR ; différence non évalué
Compte 641 proposé, à confirmer ; type 001 : assiette de Sécurité sociale, distincte du brut comptable ; 52 et 54 à part
Clés : 51.002 / mois d’EcritureDate
Source : PCG 1221-64;CT S21.G00.51.011,013 (Plan comptable général, règlement ANC 2014-03 : 1er janvier 2026 (Consolidation au 1er janvier 2026) ; Cahier technique DSN P26V01 : 24 décembre 2025 (CT2026.1) ; Cahier technique DSN P27V01 : 9 septembre 2026 (CT2027.1.2)) ; S21.G00.51.013(type 001)
Rémunérations brutes — non saisi — juin 2026 : à saisir
FEC non évalué ; DSN déclarée non évalué ; différence non évalué
Compte 641 proposé, à confirmer ; type 001 : assiette de Sécurité sociale, distincte du brut comptable ; 52 et 54 à part
Clés : 51.002 / mois d’EcritureDate
Source : PCG 1221-64;CT S21.G00.51.011,013 (Plan comptable général, règlement ANC 2014-03 : 1er janvier 2026 (Consolidation au 1er janvier 2026) ; Cahier technique DSN P26V01 : 24 décembre 2025 (CT2026.1) ; Cahier technique DSN P27V01 : 9 septembre 2026 (CT2027.1.2)) ; S21.G00.51.013(type 001)
Rémunérations brutes — non saisi — juillet 2026 : à saisir
FEC non évalué ; DSN déclarée non évalué ; différence non évalué
Compte 641 proposé, à confirmer ; type 001 : assiette de Sécurité sociale, distincte du brut comptable ; 52 et 54 à part
Clés : 51.002 / mois d’EcritureDate
Source : PCG 1221-64;CT S21.G00.51.011,013 (Plan comptable général, règlement ANC 2014-03 : 1er janvier 2026 (Consolidation au 1er janvier 2026) ; Cahier technique DSN P26V01 : 24 décembre 2025 (CT2026.1) ; Cahier technique DSN P27V01 : 9 septembre 2026 (CT2027.1.2)) ; S21.G00.51.013(type 001)
Charges patronales — non saisi — janvier 2026 : à saisir
FEC non évalué ; saisie non évalué ; différence non évalué
Compte 645 proposé, à confirmer
Clés : période saisie / mois d’EcritureDate
Source : PCG 1121-1,1221-64;CT S21.G00.81 (Plan comptable général, règlement ANC 2014-03 : 1er janvier 2026 (Consolidation au 1er janvier 2026) ; Cahier technique DSN P26V01 : 24 décembre 2025 (CT2026.1) ; Cahier technique DSN P27V01 : 9 septembre 2026 (CT2027.1.2)) ; ventilation saisie
Charges patronales — non saisi — juin 2026 : à saisir
FEC non évalué ; saisie non évalué ; différence non évaluéDSNLint Connect
dsnlint-connect compta declaration.dsn \
--piece fec=comptabilite.fec \
--piece saisie=saisie-comptable.json \
--format textThrough the API, from the command line or from an assistant
The same function, three ways: DSNLint Connect, the API (POST /v1/compta) or the Connect MCP server. With the same files and options, the content returned is the same.
Available formatsTextJSONCSVPDFExcelPower BIFEC
POST /v1/compta
curl -X POST "$DSNLINT_API_URL/v1/compta" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"compta","options":{"format":"text"},"pieces":[{"id":"p0","role":"dsn","nom":"declaration.dsn","taille":7643},{"id":"p1","role":"fec","nom":"comptabilite.fec","taille":1590},{"id":"p2","role":"saisie","nom":"saisie-comptable.json","taille":66}]};type=application/json' \
-F 'p0=@declaration.dsn;filename=declaration.dsn' \
-F 'p1=@comptabilite.fec;filename=comptabilite.fec' \
-F 'p2=@saisie-comptable.json;filename=saisie-comptable.json' \
-o rapport.txtPOST /v1/compta
import { readFile, writeFile } from "node:fs/promises";
import { randomUUID } from "node:crypto";
const headers = {
"Authorization": "Bearer " + process.env.DSNLINT_API_KEY,
"Idempotency-Key": randomUUID(),
};
const form = new FormData();
form.append("p0", new Blob([await readFile("declaration.dsn")], { type: "application/octet-stream" }), "declaration.dsn");
form.append("p1", new Blob([await readFile("comptabilite.fec")], { type: "application/octet-stream" }), "comptabilite.fec");
form.append("p2", new Blob([await readFile("saisie-comptable.json")], { type: "application/octet-stream" }), "saisie-comptable.json");
const encoded = new Response(form);
headers["Content-Type"] = encoded.headers.get("Content-Type");
const boundary = headers["Content-Type"].split("boundary=")[1];
const body = new Blob([
`--${boundary}\r\nContent-Disposition: form-data; name="manifeste"\r\nContent-Type: application/json\r\n\r\n`,
"{\"version\":1,\"fonction\":\"compta\",\"options\":{\"format\":\"text\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"declaration.dsn\",\"taille\":7643},{\"id\":\"p1\",\"role\":\"fec\",\"nom\":\"comptabilite.fec\",\"taille\":1590},{\"id\":\"p2\",\"role\":\"saisie\",\"nom\":\"saisie-comptable.json\",\"taille\":66}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/compta", {
method: "POST", headers, body, signal: AbortSignal.timeout(120000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
await writeFile("rapport.txt", new Uint8Array(await response.arrayBuffer()));POST /v1/compta
import os
import uuid
import urllib.request
headers = {
"Authorization": "Bearer " + os.environ["DSNLINT_API_KEY"],
"Idempotency-Key": str(uuid.uuid4()),
}
boundary = "dsnlint-" + str(uuid.uuid4())
headers["Content-Type"] = "multipart/form-data; boundary=" + boundary
chunks = [
("--" + boundary + '\r\nContent-Disposition: form-data; name="manifeste"\r\nContent-Type: application/json\r\n\r\n').encode(),
"{\"version\":1,\"fonction\":\"compta\",\"options\":{\"format\":\"text\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"declaration.dsn\",\"taille\":7643},{\"id\":\"p1\",\"role\":\"fec\",\"nom\":\"comptabilite.fec\",\"taille\":1590},{\"id\":\"p2\",\"role\":\"saisie\",\"nom\":\"saisie-comptable.json\",\"taille\":66}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"declaration.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("declaration.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p1\"; filename=\"comptabilite.fec\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("comptabilite.fec", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p2\"; filename=\"saisie-comptable.json\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("saisie-comptable.json", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "--\r\n").encode())
body = b"".join(chunks)
request = urllib.request.Request(os.environ["DSNLINT_API_URL"] + "/v1/compta",
data=body, headers=headers, method="POST")
with urllib.request.urlopen(request, timeout=120) as response:
if not 200 <= response.status < 300:
raise RuntimeError(f"HTTP {response.status}")
with open("rapport.txt", "wb") as output:
output.write(response.read())POST /v1/compta
<?php
$headers = [
'Authorization: Bearer ' . getenv('DSNLINT_API_KEY'),
'Idempotency-Key: ' . bin2hex(random_bytes(16)),
];
$boundary = "dsnlint-" . bin2hex(random_bytes(16));
$headers[] = "Content-Type: multipart/form-data; boundary=" . $boundary;
$body = "--$boundary\r\nContent-Disposition: form-data; name=\"manifeste\"\r\nContent-Type: application/json\r\n\r\n"
. '{"version":1,"fonction":"compta","options":{"format":"text"},"pieces":[{"id":"p0","role":"dsn","nom":"declaration.dsn","taille":7643},{"id":"p1","role":"fec","nom":"comptabilite.fec","taille":1590},{"id":"p2","role":"saisie","nom":"saisie-comptable.json","taille":66}]}' . "\r\n";
$files = [
'p0' => new CURLFile('declaration.dsn', 'application/octet-stream', 'declaration.dsn'),
'p1' => new CURLFile('comptabilite.fec', 'application/octet-stream', 'comptabilite.fec'),
'p2' => new CURLFile('saisie-comptable.json', 'application/octet-stream', 'saisie-comptable.json'),
];
foreach ($files as $name => $file) {
$bytes = file_get_contents($file->getFilename());
if ($bytes === false) { exit(1); }
$body .= "--$boundary\r\nContent-Disposition: form-data; name=\"$name\"; filename=\""
. $file->getPostFilename() . "\"\r\nContent-Type: " . $file->getMimeType()
. "\r\n\r\n" . $bytes . "\r\n";
}
$body .= "--$boundary--\r\n";
$curl = curl_init(getenv('DSNLINT_API_URL') . '/v1/compta');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => $body, CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_TIMEOUT => 120,
]);
$response = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_RESPONSE_CODE);
if ($response === false || $status < 200 || $status >= 300) {
fwrite(STDERR, "HTTP $status\n");
exit(1);
}
if (file_put_contents('rapport.txt', $response) === false) { exit(1); }A plain HTTP request: your key in the Authorization header, an idempotency key, then the file. If you resend an identical request already processed with the same idempotency key, the API returns 204 for 900 seconds at most: the request is neither recomputed nor counted again.
What the reconciliation does not do
The report describes the amounts and their differences; the explanation and the entries remain your decision.
- It does not validate its own proposals: verification entries stay “to be validated”, in a file that is not the complete tax FEC.
- It never concludes that an amount is unpaid: a payment is found or not found in bank records, and no transfer file is produced.
- It does not put a figure on a gap between the declared arithmetic net pay and account 421, and corrects neither gross pay, nor contributions, nor net pay.
- It derives no leave balance or provision from the DSN, and its annual totals do not describe an accounting year.
- It establishes no requirement for the accounts and the DSN to match: a difference only calls for an explanation.
Related functions
The same engine in every plan
Cloud or Dedicated, the engine and the API are the same. The price depends on the number of declared individuals per month.