For correcting an error already filed in a DSN
DSN corrections to carry into payroll
Get corrections prepared, sourced and checked, ready to carry into payroll. DSNLint bases each proposal on the Urssaf guide; you accept the proposals group by group, then DSNLint checks the corrected declaration. It files nothing.
A real document
1. Propositions de régularisation — Propositions regroupées — Nature État Nombre
Correction proposals (Propositions de régularisation)
Page 3 of 4. Fictitious company, document produced by DSNLint and dated 26 October 2026.
What the file contains
Sourced proposals, a full check of the corrected declaration and, if no blocking anomaly remains, the corrected DSN for the month.
- Blocks to carry into payrollThe DSN must stay in line with payroll: DSNLint labels each proposal “to carry into payroll”.
- Indivisible groupsContribution statement, aggregate contribution, base and individual contribution form one group: you accept it whole, never a single block.
- Validated one by oneA first request produces the proposals; a second one names the identifiers you accept.
- Every rule is sourcedEach proposal comes with its rule, the official reference with page or cells, the quotation and the document fingerprint.
- The origin of every valueEach proposed value is declared, entered, recomputed or still to be entered. A value still to be entered gives no block to import.
- Checked before it is returnedThe proposals and the corrected declaration undergo a full check. DSNLint never returns a DSN containing a blocking anomaly.
- Cases covered by published textsEach proposal rests on an official text. When the texts do not settle the matter, DSNLint stops and refuses the proposal.
- The original file stays intactDSNLint modifies no original file. The corrected DSN for the month is a new file, returned only when no blocking anomaly remains.
In the application
In the application, you point at the error and the right value; DSNLint proposes the groups of blocks to carry over into your payroll software, then redoes the full check. The path has four steps: the error, the proposals, the check, the payroll. Nothing is filed.
A base error, proposed then checked
A base error in a June 2026 DSN: the file holds seven documents, including one accepted proposal with its rule and its references to the Urssaf guide (§ 3.3.1, p. 19). The full check of the corrected declaration gives “Compliant with warnings”: 0 blocking anomalies, 1 warning.
rapport.zip · 7 files
controle-complet.json
controle-complet.txt
controle-complet.zip
mois-regularise.dsn
propositions.json
propositions.txt
propositions.zipcontrole-complet.txt · lines 1 to 14 of 84
Date du contrôle : 5 décembre 2026
RAPPORT DE CONTRÔLE DSN
=======================
Fichier : assiette-anomalie.dsn
Norme : DSN P26V01 | Lignes lues : 138
Période : juin 2026
Établissement : 00000036400018
Verdict : Conforme avec avertissements | Bloquants : 0 | Avertissements : 1
Score : 99/100
Contrôles complémentaires : 0 avertissement, 5 non-évaluations (sans effet sur le verdict).
ANOMALIES À CORRIGER
TEMOIN PERSONNE FICTIVE — NTT 1000000364000001 — déclaration 1
Donnée à vérifier — ligne 55propositions.txt · lines 1 to 14 of 30
Date du contrôle : 5 décembre 2026
Régularisation assistée — à reporter dans la paie
1 proposition, 0 avertissement complémentaire.
assiette-1 — Acceptée
Différentiel exact, fondé sur l’assiette fournie ; bordereau, cotisation agrégée, base et cotisation individuelle forment un groupe indivisible.
Règle : Assiette.
Référence : Guide-declaration-regularisation-cotisations-sociales-Urssaf-DSN-v5.1-2026.pdf, §3.3.1, p.19 — Si l’erreur porte sur une assiette, la régularisation s’opère en différentiel
Référence : Guide-declaration-regularisation-cotisations-sociales-Urssaf-DSN-v5.1-2026.pdf, §3.3.1, p.19 — Les régularisations de cotisations sociales doivent être datées du mois de survenance de l’erreur. La datation s’opère au travers de périodes de rattachement « Date de début / fin de période de rattachement » couvrant un mois unique.
Référence : Guide-declaration-regularisation-cotisations-sociales-Urssaf-DSN-v5.1-2026.pdf, §3.2, p.18 — Dès lors que des éléments sont à déclarer à la maille nominative, il faut qu’ils soient cohérents avec les éléments agrégés. En effet les cotisations agrégées doivent porter l’ensemble des éléments déclarés à maille individuelle ;
Référence : DIDA-equivalence-dida-2026-06-11.csv, Correspondances : base assujettie / cotisation individuelle / CTP —
Référence : Guide-declaration-regularisation-cotisations-sociales-Urssaf-DSN-v5.1-2026.pdf, §1.6, p.15 — Tous les montants des blocs « Cotisation agrégée - S21.G00.23 doivent être arrondis à l'euro le plus proche, qu’il s’agisse de montants d’assiette ou de montants de cotisations ; Les montants de cotisations des blocs « Versement organisme de protection sociale - S21.G00.20 » et « Bordereau de cotisation due - S21.G00.22 », supportent également la même règle d'arrondi. Sur un plan purement fonctionnel, ces sommes arrondies figurent dans la norme avec deux décimales après le point : ".00"
Référence : fiche-3360-application-des-principes-du-fait-generateur.md, §1.1.3.1 — Erreur en paie et en DSN — Lorsqu'une erreur intervient à la fois en paie et en DSN (par exemple une rémunération brute mal calculée), la correction doit être opérée dans la paie suivante et déclarée en DSN en rattachant socialement les montants corrigés à la période d'emploi concernée.
Référence : FichierDirect-codesTypesCsv.csv, CTP 719, effet 1er janvier 2026, qualifiant 920 ; taux déplafonné 40,00 —DSNLint Connect
dsnlint-connect regulariser assiette-anomalie.dsn \
--piece dsn_origine=origine.dsn \
--piece demande=assiette-anomalie.demande.json \
--format csvThrough the API, from the command line or from an assistant
The same function, three ways: DSNLint Connect, the API (POST /v1/regularisations) or the Connect MCP server. With the same files and options, the content returned is the same.
Available formatsZIP
POST /v1/regularisations
curl -X POST "$DSNLINT_API_URL/v1/regularisations" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"regulariser","options":{"format":"csv"},"pieces":[{"id":"p0","role":"dsn_mois","nom":"assiette-anomalie.dsn","taille":2937},{"id":"p1","role":"dsn_origine","nom":"origine.dsn","taille":3112},{"id":"p2","role":"demande","nom":"assiette-anomalie.demande.json","taille":410}]};type=application/json' \
-F 'p0=@assiette-anomalie.dsn;filename=assiette-anomalie.dsn' \
-F 'p1=@origine.dsn;filename=origine.dsn' \
-F 'p2=@assiette-anomalie.demande.json;filename=assiette-anomalie.demande.json' \
-o rapport.zipPOST /v1/regularisations
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("assiette-anomalie.dsn")], { type: "application/octet-stream" }), "assiette-anomalie.dsn");
form.append("p1", new Blob([await readFile("origine.dsn")], { type: "application/octet-stream" }), "origine.dsn");
form.append("p2", new Blob([await readFile("assiette-anomalie.demande.json")], { type: "application/octet-stream" }), "assiette-anomalie.demande.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\":\"regulariser\",\"options\":{\"format\":\"csv\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn_mois\",\"nom\":\"assiette-anomalie.dsn\",\"taille\":2937},{\"id\":\"p1\",\"role\":\"dsn_origine\",\"nom\":\"origine.dsn\",\"taille\":3112},{\"id\":\"p2\",\"role\":\"demande\",\"nom\":\"assiette-anomalie.demande.json\",\"taille\":410}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/regularisations", {
method: "POST", headers, body, signal: AbortSignal.timeout(120000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
await writeFile("rapport.zip", new Uint8Array(await response.arrayBuffer()));POST /v1/regularisations
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\":\"regulariser\",\"options\":{\"format\":\"csv\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn_mois\",\"nom\":\"assiette-anomalie.dsn\",\"taille\":2937},{\"id\":\"p1\",\"role\":\"dsn_origine\",\"nom\":\"origine.dsn\",\"taille\":3112},{\"id\":\"p2\",\"role\":\"demande\",\"nom\":\"assiette-anomalie.demande.json\",\"taille\":410}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"assiette-anomalie.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("assiette-anomalie.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p1\"; filename=\"origine.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("origine.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p2\"; filename=\"assiette-anomalie.demande.json\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("assiette-anomalie.demande.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/regularisations",
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.zip", "wb") as output:
output.write(response.read())POST /v1/regularisations
<?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":"regulariser","options":{"format":"csv"},"pieces":[{"id":"p0","role":"dsn_mois","nom":"assiette-anomalie.dsn","taille":2937},{"id":"p1","role":"dsn_origine","nom":"origine.dsn","taille":3112},{"id":"p2","role":"demande","nom":"assiette-anomalie.demande.json","taille":410}]}' . "\r\n";
$files = [
'p0' => new CURLFile('assiette-anomalie.dsn', 'application/octet-stream', 'assiette-anomalie.dsn'),
'p1' => new CURLFile('origine.dsn', 'application/octet-stream', 'origine.dsn'),
'p2' => new CURLFile('assiette-anomalie.demande.json', 'application/octet-stream', 'assiette-anomalie.demande.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/regularisations');
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.zip', $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 assisted corrections do not do
They prepare the payroll team’s work; they do not replace it.
- It files nothing: no DSN is sent to Net-entreprises, and the original file stays intact.
- It does not calculate the payment to make, nor the use of a credit.
- It does not decide whether the error comes from payroll or from the DSN: you confirm it in the request.
- It stops when the published texts do not establish how to handle a case, for example when an individual-level correction would be needed.
- It leaves out omitted exemptions, the general reduction, salary arrears, contract end and omitted individuals.
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.