Prepare the substitute DSN
- File (role)
- dsn
- Content
- The DSN files for the periods concerned, at least one.
- Required
- Yes
- File (role)
- CRM 124 (role crm124)
- Content
- The CRM 124: the Urssaf annual reminder report, one document only.
- Required
- Yes
- File (role)
- CRM 120 (role crm120)
- Content
- The CRM 120: the monthly report, one document only.
- Required
- No
- File (role)
- saisie
- Content
- Your data entry: confirmation of the latest March CRM, notification date and declaration deadlines, one document only.
- Required
- No
DSN de substitution
Lecture du CRM 124 fourni ; seuls les chiffres de l’Urssaf sont repris, non recalculés
2 données substituables lues ; 0 exclusion certaine observée.
Montants repris de l’Urssaf, non recalculés.
Urssaf — Foire aux questions sur la DSN de substitution ; III.1.c — Réémission des CRM de rappel — Actualisation du 20 juillet 2026 — 20 juillet 2026
Seules les anomalies substituables restituées au sein du dernier CRM de rappel annuel transmis sont éligibles à la DSN de substitution.
Urssaf — Foire aux questions sur la DSN de substitution ; II — Contrôles éligibles à la substitution — Actualisation du 20 juillet 2026 — 20 juillet 2026
Une anomalie est signalée dès qu’un écart strictement supérieur à 1 € (en valeur absolue) est constaté entre l’assiette plafonnée déclarée et celle calculée par l’Urssaf pour au moins un mois de l’année civile contrôlée.
Pièce : CRM-FICTIF — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B002.R001 ; octet 371
Version : P26V01 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.R001 ; octet 52
Établissement : 00000036400018 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B000.R004 ; octet 199
Production — distincte de la notification : 23 mars 2026 à 09:00:00 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B002.R011 ; octet 769
Liste annuelle CRM 124
1000000364000001 — 00000036400018 — 1er juin 2025 au 30 juin 2025
Établissement, période et salarié retrouvés ; montants DSN déclarés, sans consolidation des régularisations
Traitement : UR_ANO_ASS_PLF_DIPA01i — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B004.R001 ; octet 826
Établissement : 00000036400018 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B000.R004 ; octet 199
Salarié : 1000000364000001 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B006.R002 ; octet 1538
Début : 1er juin 2025 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B007.R005 ; octet 2127
Fin : 30 juin 2025 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B007.R006 ; octet 2166
Donnée concernée : S21.G00.78.004 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B007.R001 ; octet 2012
Déclaré restitué par l’Urssaf : 1 000,00 — CRM 124 de l’URSSAF — nominal-i.xml ; RO.B007.R002 ; octet 2055dsnlint-connect substitution periode.dsn --piece crm124=nominal-i.xml --format textcurl -X POST "$DSNLINT_API_URL/v1/substitutions" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"substitution","options":{"format":"text"},"pieces":[{"id":"p0","role":"dsn","nom":"periode.dsn","taille":2955},{"id":"p1","role":"crm124","nom":"nominal-i.xml","taille":2714}]};type=application/json' \
-F 'p0=@periode.dsn;filename=periode.dsn' \
-F 'p1=@nominal-i.xml;filename=nominal-i.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("periode.dsn")], { type: "application/octet-stream" }), "periode.dsn");
form.append("p1", new Blob([await readFile("nominal-i.xml")], { type: "application/octet-stream" }), "nominal-i.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\":\"substitution\",\"options\":{\"format\":\"text\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"periode.dsn\",\"taille\":2955},{\"id\":\"p1\",\"role\":\"crm124\",\"nom\":\"nominal-i.xml\",\"taille\":2714}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/substitutions", {
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\":\"substitution\",\"options\":{\"format\":\"text\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"periode.dsn\",\"taille\":2955},{\"id\":\"p1\",\"role\":\"crm124\",\"nom\":\"nominal-i.xml\",\"taille\":2714}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"periode.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("periode.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p1\"; filename=\"nominal-i.xml\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("nominal-i.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/substitutions",
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":"substitution","options":{"format":"text"},"pieces":[{"id":"p0","role":"dsn","nom":"periode.dsn","taille":2955},{"id":"p1","role":"crm124","nom":"nominal-i.xml","taille":2714}]}' . "\r\n";
$files = [
'p0' => new CURLFile('periode.dsn', 'application/octet-stream', 'periode.dsn'),
'p1' => new CURLFile('nominal-i.xml', 'application/octet-stream', 'nominal-i.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/substitutions');
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); }What the preparation does:
- It keeps only the substitutable anomalies of the latest March CRM 124 received. DSNLint does not know which reports you have received: if you do not supply this confirmation, it stays “à saisir” (to be entered).
- It recognises capped-base differences between two amounts already in the CRM: this is not a recomputation, and no DSN value takes part in the comparison.
- It matches the DSN files supplied: for each line of the annual list, it finds the establishment, the period and the individual, and shows the value declared in the DSN next to the Urssaf amounts, without consolidating corrections. Supply the DSN for each period concerned: without it, the line says that the DSN or the individual is still to be found.
- It keeps the monthly CRM 120 apart: its anomalies never add to the annual list.
- It restates Urssaf’s overall impact with its sign, without splitting it between periods. It is listed once, even if it is repeated in a presentation by period: do not add those repetitions together.
- A missing amount does not always mean an exclusion: ask Urssaf for it.
The entry is a small versioned JSON file. Its fields are version_format, dernier_crm_mars, date_notification and echeances_declaratives. The two declaration deadlines are those of the establishment: they must follow the notification. Without a notification and without these two deadlines, the final date stays “à saisir” (to be entered): DSNLint assumes no due day and no calendar carry-over. An invalid date, or deadlines in the wrong number or order, cause the entry to be refused.
If you dispute an anomaly, submit your objection as follows:
- In writing, preferably in Urssaf’s Suivi DSN service. Without access to Suivi DSN: through the form in the online area of urssaf.fr or by post.
- With the individuals, the periods and arguments tied to the anomaly.
- You write the grounds: DSNLint suggests none. Supporting documents are optional.
- No reply does not mean agreement: substitution waits for the reply. The stated period of 8 to 12 days is a target processing time, not a statutory period for acceptance.
The CRM reader is strict. An unknown element, an incorrect parent or order, a duplicate field, a missing mandatory item or a non-compliant value causes the whole CRM to be rejected, with no partial report. In the API, this is a 422 error, annexe_invalide. A rejection never means that there is no anomaly.