Skip to content

Correct a previously filed DSN

Does a filed DSN contain a contribution error? DSNLint proposes indivisible groups of correction blocks to declare in the month’s DSN. You accept the groups you want to use, then DSNLint checks them together in the corrected DSN. The DSN must stay in line with payroll: each proposal is labelled “to carry into payroll”. Nothing is filed. In the application, click “Prepare an adjustment” on the report of the month’s DSN (or the Corrections menu); the steps below describe the same service through the API.
  1. Send the files — The month’s DSN to correct (a single monthly declaration), the original DSN files where the error arose, if you have them, and a JSON request. In the API, these are the roles dsn_mois, dsn_origine and demande.
  2. Describe the error — The request can search on its own for the cases that need no entry: this is the automatique option. For a known error, each entry of erreurs gives an identifier, a nature (assiette, annulation, ctp, taux_at, exoneration_indue…), the establishment, the month in YYYY-MM format, the original file (numbered from 1), the block and the physical opening line. The individual (declared NIR or NTT) and the correct value are supplied for the cases that require them; they are not mandatory for every type of correction. Amounts are decimal strings, never floating-point numbers.
  3. Read the proposals — A first run, with an empty accepter list, produces the checked proposals.
  4. Accept group by group — A new request names in accepter the identifiers you keep and produces a new file. Acceptance applies to the whole group, never to a single block.
rapport.zip · 7 files
controle-complet.json
controle-complet.txt
controle-complet.zip
mois-regularise.dsn
propositions.json
propositions.txt
propositions.zip
controle-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 55
propositions.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 —
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: assiette-anomalie.dsn, origine.dsn, assiette-anomalie.demande.json. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.
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.zip
Each example was replayed against the API and returns the same document as the curl command, byte for byte.

The file returned is a ZIP. It contains:

  • propositions.txt, propositions.json and propositions.zip: the state of each proposal, its indivisible blocks, the rule, the official reference (page or cells), the quotation and the document fingerprint.
  • mois-regularise.dsn: the month’s DSN with only the proposals explicitly accepted, plus the message’s physical record totals. The file is absent if a blocking anomaly remains.
  • controle-complet.txt, controle-complet.json and controle-complet.zip: the full check of the corrected DSN, redone on the bytes returned.

Each proposed field identifies its source: declared (supporting document, field and physical line), entered (request field), recomputed (exact operation and dated references) or to be entered (required field). No importable block is produced for a value that remains to be entered.

The format csv, pdf, xlsx or powerbi adds a presentation to the text, JSON and CSV file, which is always returned. With powerbi, the packages propositions.zip and controle-complet.zip are replaced by their Power BI version.

What DSNLint guarantees:

  • Each proposed group includes all its counterparts. The proposals and the corrected declaration undergo a full check.
  • A DSN containing a blocking anomaly under the standard is never returned.
  • An unknown or duplicated identity in your acceptances is refused before the final file is created. A refused proposal contains no block to import.
  • No original file is modified.
  • DSNLint never chooses the origin of the error. Before any base proposal, the request must state origine_erreur (paie or dsn) and confirm paie_conforme=true. A rate correction requires absence_correction_urssaf=true; an undue exemption requires non_eligible=true.

DSNLint prepares correction proposals with their sources: each rests on an official text (Urssaf guide, Net-entreprises guidance notes, correspondence tables), and you approve them before entering them in your payroll software. A proposal that cannot be established is refused, with its message.

What DSNLint does not do:

  • For cancellations, CTP changes, rate corrections and INSEE code changes, it stops as soon as an individual-level correction would be needed: it settles no negative individual counterpart. An exact base difference, positive or negative, remains possible.
  • Out of scope: omitted exemption, general reduction, deductions on annual cumulative amounts, automatic calculation of the capped base, salary arrears and overpayments, contract end and omitted individual, transfers, payment and credit carry-forward. These are limits of the service, not regulatory prohibitions.
  • It does not compute payments to bodies (block S21.G00.20): a declared debt and a payment are not treated as the same thing. Use of any credit stays with you.
The response is a 200 with the full file. The X-DSN-Code-Sortie header is 0 if the request is processed without refusal, and 2 if a proposal or the DSN is refused, or if no candidate DSN is produced. DSNLint Connect returns this code as it is. Nothing is filed with Net-entreprises and no payment is made.
Prepare the substitute DSN
Previous section
Extract, split and pseudonymise a DSN
Next section