Check a DSN with supporting documents
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.
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.
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 DSNFICHES 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.zipdsnlint-connect controler-avec-pieces oc-a-ecart.dsn \
--piece fpoc=oc-a-ecart.xml \
--option etendu=true \
--format textThe 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.
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.txtimport { 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("oc-a-ecart.dsn")], { type: "application/octet-stream" }), "oc-a-ecart.dsn");
form.append("p1", new Blob([await readFile("oc-a-ecart.xml")], { type: "application/octet-stream" }), "oc-a-ecart.xml");
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\":\"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}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/controles/avec-pieces", {
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()));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\":\"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}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"oc-a-ecart.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("oc-a-ecart.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p1\"; filename=\"oc-a-ecart.xml\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("oc-a-ecart.xml", "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/controles/avec-pieces",
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())<?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":"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}]}' . "\r\n";
$files = [
'p0' => new CURLFile('oc-a-ecart.dsn', 'application/octet-stream', 'oc-a-ecart.dsn'),
'p1' => new CURLFile('oc-a-ecart.xml', 'application/octet-stream', 'oc-a-ecart.xml'),
];
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/controles/avec-pieces');
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); }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.
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 dudsnlint-connect controler-avec-pieces at-ecart.dsn \
--piece taux_notifies=at.csv \
--option etendu=true \
--format textA 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.
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 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.dsnlint-connect controler-avec-pieces avertissement.dsn \
--piece profil=promouvoir.json \
--format textAll the API routes and their parameters