Skip to content

Check a DSN with supporting documents

The standard check reads the DSN alone. With supporting documents, DSNLint compares it with documents you supply. These comparisons are additional: a discrepancy is a warning at most, never an official rejection. In the application, choose the document in the “Compare with” list of the “Upload DSN files” window, then drop the DSN file and the document together.

Each document carries a role: dsn for the DSN, then fpoc, taux_notifies, saisie_urssaf or profil. The API receives the DSN and its documents in a multipart request, on the route POST /v1/controles/avec-pieces. DSNLint Connect builds it for you: add each document with --piece role=path.

  • Document
    Supplementary scheme forms (fpoc)
    What it contributes
    The XML forms for models 139 and 140. DSNLint compares the insurer, contract, option, population, components and periods with the DSN. A discrepancy is a contractual warning, not a rejection.
    Limits
    Up to 100 forms per call. For the same scope and model, the most recent form fully replaces the earlier ones.
  • Document
    Notified rates (taux_notifies)
    What it contributes
    The workplace accident, bonus-malus and withholding-tax rates you have received: official reports in XML, AT/MP CSV or a JSON entry. DSNLint compares them with the declared rates. A discrepancy is a warning at most. DSNLint fetches nothing from the Internet.
    Limits
    Can be repeated. Requires the etendu option.
  • Document
    Urssaf data entry (saisie_urssaf)
    What it contributes
    Your classification of AGS liability, by SIRET and period, with a mandatory justification. DSNLint never infers it from the DSN: without data entered by you, the corresponding check remains unassessed.
    Limits
    A single entry. Requires the etendu option.
  • Document
    Profile (profil)
    What it contributes
    A file of working rules. It lowers or raises a warning’s severity, hides it or adds a note to a message. It also calculates sums of declared amounts. The result under the standard is preserved alongside the internal acceptance result.
    Limits
    A single profile. A blocking anomaly under the standard can never be hidden.

One call carries a single family of supporting documents. Here is what cannot be combined:

  • A profile cannot be combined with forms, with multi_fichiers (the comparison of several files) or with a limit above 0.
  • Forms cannot be combined with a profile or with multi_fichiers.
  • Notified rates cannot be combined with a profile, forms or Urssaf data entry.
  • Urssaf data entry cannot be combined with a profile or forms.
  • No supporting document (profile, forms, notified rates or Urssaf data entry) can be combined with the jsonl format.

In the manifest of the check with supporting documents, the options object also accepts the three settings below. With DSNLint Connect, pass them as --option name=value on controler-avec-pieces. They are not URL parameters of POST /v1/controles.

  • Option
    fils
    Value and default
    1, the only accepted value and the default.
    Applied limit
    Each request is processed on a single thread.
  • Option
    max_decompresse
    Value and default
    Integer of at least 1, in bytes; 2,147,483,648 (2 GiB) by default.
    Applied limit
    Reading limit per compressed DSN file. The service’s cumulative limit still applies.
  • Option
    max_entrees
    Value and default
    Integer of at least 1; 100,000 by default.
    Applied limit
    Maximum entries per DSN ZIP archive. The service’s cumulative limit still applies.
These options can lower the reading limits, but cannot raise the service limits (see “Service limits”); the lower limit applies and exceeding it returns 413.

The supplementary scheme forms are sent with the DSN. The example compares a January 2026 DSN with an insurer’s form (model 139): 8 facts read, 8 comparisons, no discrepancy, verdict Compliant.

rapport.txt · lines 1 to 6 of 137
SYNTHÈSE DU CONTRÔLE DSN
Verdict : Conforme. 0 anomalie bloquante, 0 avertissement.
Rapprochement OC : 8 faits lus, 8 comparaisons, 0 écart.
La dernière fiche de même périmètre et modèle remplace intégralement les précédentes. Les paramètres retenus couvrent tout le mois civil, faute de texte publié sur les bornes mensuelles. Une absence dans une fiche partielle ne constitue jamais une anomalie DSN. Les écarts sont des avertissements contractuels, sans assimilation à un rejet officiel.

RAPPORT DE CONTRÔLE DSN
rapport.txt · lines 106 to 129 of 137
FICHES FOURNIES ET COUVERTURE
Fiche 1 : référence CYCLEA, modèle 139, création 2025-12-01T10:00:00 — en vigueur.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  DSN déclarée (S21.G00.15.002) : « P0002 » ; fiche fournie (CodeOC) : « P0002 ».
  DSN déclarée (S21.G00.15.001) : « CTR-A » ; fiche fournie (ReferenceContrat) : « CTR-A ».
  Organisme déclaré : « P0002 » ; période déclarée : S20.G00.05.005 — mois principal déclaré ; fiche en vigueur : 1.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  DSN déclarée (S21.G00.15.003) : « DAERO1 » ; fiche fournie (CodeDELEG) : « DAERO1 ».
  Organisme déclaré : « P0002 » ; période déclarée : S20.G00.05.005 — mois principal déclaré ; fiche en vigueur : 1.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  DSN déclarée (S21.G00.70.005) : « POP-A » ; fiche fournie (CodePopulation) : « POP-A ».
  DSN déclarée (S21.G00.70.004) : « OPT-A » ; fiche fournie (CodeOption) : « OPT-A ».
  Organisme déclaré : « P0002 » ; période déclarée : S20.G00.05.005 — mois principal déclaré ; fiche en vigueur : 1.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  DSN déclarée (S21.G00.78.001) : « 31 » ; fiche fournie (Enveloppe des bases OC) : « 31 ».
  DSN déclarée (S21.G00.79.001) : « 11 » ; fiche fournie (Type de composant demandé) : « 11 ».
  Organisme déclaré : « P0002 » ; période déclarée : S21.G00.78.002/.003 ou S21.G00.82.003/.004 — rattachement ; fiche en vigueur : 1.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  Organisme déclaré : « P0002 » ; période déclarée : S21.G00.78.002=2026-01-01 ; S21.G00.78.003=2026-01-31 ; fiche en vigueur : 1.
Mois 2026-01 — contrat « CTR-A », établissement 73282932000074 : Paramètre couvrant tout le mois. fiche 1, contrat « CTR-A », population « POP-A », option « OPT-A », paramètres du 01/01/2026 au 31/12/2026 [1 occurrence].
  DSN déclarée (S21.G00.15.003) : « DAERO1 » ; fiche fournie (CodeDELEG) : « DAERO1 ».
  Organisme déclaré : « P0002 » ; période déclarée : S21.G00.78.002=2026-01-01 ; S21.G00.78.003=2026-01-31 ; fiche en vigueur : 1.
Référence : Cahier technique DSN NEODeS CT2026.1.2, GIP-MDS, version CT2026.1.2, datée 2025-12-24 — S21.G00.15.003 — Code délégataire de gestion. https://www.net-entreprises.fr/declaration/norme-et-documentation-dsn/
Référence : Fiche de paramétrage DSN — Organismes complémentaires, modèles 139 et 140, Fédérations des organismes complémentaires, version R1.3.9 / R1.4.0, datée 2026-07-21 — Données — Organisme du paramètre contrat, CodeDELEG. https://www.net-entreprises.fr/media/documentation/fiches-de-parametrage-oc.zip
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: oc-a-ecart.dsn, oc-a-ecart.xml. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.

The same request in curl is a multipart: a JSON manifest first, then each document under its identifier. The sizes in the manifest are those of your files.

POST /v1/controles/avec-pieces
curl -X POST "$DSNLINT_API_URL/v1/controles/avec-pieces" \
  -H "Authorization: Bearer $DSNLINT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F 'manifeste={"version":1,"fonction":"controle_avec_pieces","options":{"etendu":true,"format":"text"},"pieces":[{"id":"p0","role":"dsn","nom":"oc-a-ecart.dsn","taille":3255},{"id":"p1","role":"fpoc","nom":"oc-a-ecart.xml","taille":1102}]};type=application/json' \
  -F 'p0=@oc-a-ecart.dsn;filename=oc-a-ecart.dsn' \
  -F 'p1=@oc-a-ecart.xml;filename=oc-a-ecart.xml' \
  -o rapport.txt
Each example was replayed against the API and returns the same document as the curl command, byte for byte.

Notified rates are compared with the rates in the DSN. Here, the DSN declares a workplace accident rate of 2.50 and the AT/MP file notifies 3.41. The report flags the discrepancy as information, with rule AT-3. The file carries no notification date: the discrepancy is never blocking.

rapport.txt · lines 332 to 355 of 395
Ces avertissements sont distincts du verdict normatif et du score.
  Information complémentaire — ligne 18 : Comparaison facultative ou lecture informative ;
  conventions de comparaison du produit.
    declare : 2.50
    notifie : 3.41
    source : CSV AT/MP at.csv ; colonnes de la fiche DSN-info 2043 ; dialecte accepté par
    DSNLint
    date_effet : 2026-01-01
    periode : 20260301 — 20260331
    niveau : INFORMATION
    arbitrage : Convention de comparaison : source officielle ou saisie complète ET date de
    calcul/notification + 15 jours au plus tard au premier jour du MPD ; L242-5 CSS ; jamais
    bloquant.
    regle : AT-3
    date_calcul : date non fournie
    motif : Écart avec l'ensemble des taux AT notifiés de l'établissement, CTP de format A
    qualifiant 920 (Guide Urssaf : comment déclarer et régulariser les cotisations Urssaf en
    DSN, §1.4).
    texte_officiel : Taux de cotisation applicable au "code risque accident du travail", que
    vous avez indiqué dans la DSN en rubrique S21.G00.40.040 .
    Référence : Cahier technique DSN 2026.1.2, section Cahier technique DSN, S21.G00.40.040 et
    S21.G00.40.043 ; Guide Urssaf : comment déclarer et régulariser les cotisations Urssaf en
    DSN, §1.4.
    Référence : Code de la sécurité sociale — article L242-5, section L242-5 CSS ; convention du
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: at-ecart.dsn, at.csv. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.

A profile consists of rules. Each rule selects either a specific check, by its code, field and original severity, or a family, by its original severity and, optionally, certain fields. It then applies an action:

  • Action
    attenuer
    Applies to
    A warning
    Effect in the working view
    A visible piece of information.
  • Action
    masquer
    Applies to
    A warning
    Effect in the working view
    The occurrence is removed from the working list but remains in the archive and audit trail.
  • Action
    promouvoir
    Applies to
    A warning
    Effect in the working view
    A visible internal blocking result.
  • Action
    completer_message
    Applies to
    A warning or a blocking anomaly
    Effect in the working view
    A separate note, attributed to the user; the official message is kept.

With a profile, the report keeps two distinct results: the result under the standard (Compliant, Compliant with warnings or Non-compliant) and the internal acceptance (Accepted or Refused). Internal acceptance is refused whenever a blocking anomaly under the standard or a promotion exists.

A blocking anomaly under the standard can never be hidden. A profile disables no check, changes no threshold and replaces no official message.

In this example, a fictional profile makes the only warning of a DSN blocking for internal acceptance. The report shows side by side the result under the standard, “Compliant with warnings”, and the internal acceptance, “Refused”.

rapport.txt · lines 1 to 24 of 25
RAPPORT DE CONTRÔLE DSN
Fichier : avertissement.dsn
Norme : DSN P26V01
Période : janvier 2026
Établissement : 00000001800002

Résultat au regard de la norme : Conforme avec avertissements
Aucune anomalie bloquante ; 1 avertissement.
138 lignes contrôlées.

Acceptation interne : Refusée
Profil utilisateur : Exemple utilisateur fictif — révision 1
Les réglages de ce profil ne changent pas le résultat au regard de la norme.

Réglages appliqués
• Avertissement rendu bloquant pour l’acceptation interne : Choix de priorité interne.
  1 occurrence retenue ; aucune occurrence écartée par priorité ; aucune occurrence hors champ.

Vue de travail
• Blocage interne — ligne 138 : Ligne vide après le dernier enregistrement : signalée sans rejet.

Sources des définitions
• Cahier technique DSN 2026.1.2 — Net-entreprises (GIP-MDS), page 77.
  Publication : 24 décembre 2025 ; consultation : 11 septembre 2026.
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: avertissement.dsn, promouvoir.json. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.

All the API routes and their parameters

DSN check options
Previous section
DSN report formats
Next section