Skip to content

Receive DSN checks as JSON Lines

The jsonl format returns the check as a stream: one line per file checked, then a summary line. Each line is a complete JSON object that can be validated on its own against its schema. The media type is application/jsonl.

The stream is UTF-8 text with no BOM: one complete JSON object per line, each line ending with LF. To request it, put format=jsonl in the address of the simple check, or options.format set to jsonl in the manifest of the check with supporting documents, when no file is attached. With DSNLint Connect, add --format jsonl and --sortie, which writes the stream byte for byte. The API returns the file directly, under the fixed name rapport.jsonl, with no envelope and no added line break.

  • Line
    One per file, of type fichier
    What it carries
    type, version_format (23), fichier, sha256, normes, statut, nb_bloquants, nb_avertissements and anomalies. The anomalies carry the same field names as the public JSON, with titre and action.
  • Line
    The last one, of type bilan
    What it carries
    type, version_format, fichiers, valides, avec_avertissements, non_valides, illisibles, nb_bloquants, nb_avertissements and options, the effective options.

What to know about the stream:

  • Even a single file is followed by the summary line.
  • The file lines follow the order of the inputs of the check. With the check with supporting documents, the API sorts and deduplicates the DSN files by full label.
  • An unreadable file has the status ERREUR, counters at zero and an empty list of anomalies. It counts in the summary, in the number of illisibles; exit code 3 signals an unreadable input.
  • The values read in the DSN (that of the anomaly and those of the fields related to it) and raw messages are present only without masking.
  • Each line validates on its own against the check-line schema, version 23.

With the check with supporting documents, the X-DSN-Code-Sortie header gives the code of the check:

  • 0 with no blocking anomaly.
  • 1 with a warning, when the strict option is requested.
  • 2 with a blocking anomaly.
  • 3 if an input is unreadable.

The request below checks four DSN files from the demonstration set, January to April 2026, as JSON Lines. The stream has five lines: one per file, then the summary. Three files are compliant; mars-2026.dsn is not, with 6 blocking anomalies and 2 warnings, and X-DSN-Code-Sortie is 2. The summary states the effective options: without masking, masquer_valeurs does not appear in it.

rapport.jsonl
{"type":"fichier","version_format":23,"fichier":"avril-2026.dsn","sha256":"e7bf7cc84029dc7fb6e33c86267ad69d84acd3b8e6407e1f9f8155765878c893","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"fevrier-2026.dsn","sha256":"83d970d4c7ec4f34734c5d353b1eb5a537bffb6f1f6e9aa11ac24dfb25af1480","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"janvier-2026.dsn","sha256":"5179554878fe6b5515717265cecd25c6f5887f58ffd9d96183889de439a1fb1b","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"mars-2026.dsn","sha256":"6a1dcbb1eb052666f11d5b4919af8a6b2abfb1d83131b839ff12068c7d4e7e3b","normes":["P26V01"],"statut":"NON_VALIDE","nb_bloquants":6,"nb_avertissements":2,"anomalies":[{"code":"S21.G00.30.006/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.30.006","libelle":"Date de naissance","ligne":528,"titre":"Date de naissance incohérente avec le NIR","action":"Corriger la date de naissance ou le NIR de l’individu pour rendre leurs années cohérentes.","valeur":"08071994","message":"année de naissance 1994 incohérente avec l'identifiant"},{"code":"S21.G00.40.021/SIG-11","gravite":"AVERTISSEMENT","rubrique":"S21.G00.40.021","libelle":"Motif de recours","ligne":1128,"titre":"Motif de recours du CDD absent","action":"Indiquer le motif de recours du contrat à durée déterminée.","message":"Motif de recours attendu pour le contrat non concerné par un dispositif de politique publique."},{"code":"S21.G00.40.010/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.40.010","libelle":"Date de fin prévisionnelle du contrat","ligne":1136,"titre":"Fin prévisionnelle du contrat antérieure à son début","action":"Corriger la date de fin prévisionnelle du contrat.","valeur":"31122025","message":"fin 31122025 antérieure au début 01012026"},{"code":"S21.G00.81.001/SIG-18","gravite":"AVERTISSEMENT","rubrique":"S21.G00.81.001","libelle":"Code de cotisation","ligne":1402,"titre":"Cotisation de retraite complémentaire incomplète","action":"Vérifier le paramétrage des cotisations de retraite complémentaire de l’individu.","valeur":"076","message":"cotisation 131 sans 142 sous le même versement (mois déclaré)"},{"code":"CSL-04","gravite":"BLOQUANT","rubrique":"S21.G00.50.001","libelle":"Date de versement","ligne":2062,"titre":"Date qui n’existe pas au calendrier","action":"Saisir une date réelle au format prévu par la norme dans le logiciel de paie.","valeur":"30022026","message":"La rubrique ne respecte pas les contraintes calendaires."},{"code":"S21.G00.40.004/CRE-11","gravite":"BLOQUANT","rubrique":"S21.G00.40.004","libelle":"Code profession et catégorie socioprofessionnelle (PCS-ESE)","ligne":2232,"titre":"Code de profession (PCS-ESE) inconnu de la nomenclature","action":"Choisir le code de profession dans la nomenclature PCS-ESE en vigueur.","valeur":"999z","message":"valeur '999z' hors nomenclature [CRE-11]"},{"code":"CST-03","gravite":"BLOQUANT","rubrique":"S21.G00.30.004","libelle":"Prénoms","ligne":2823,"titre":"Rubrique obligatoire absente","action":"Renseigner la rubrique manquante dans le logiciel de paie.","message":"Absence de la rubrique S21.G00.30.004."},{"code":"S21.G00.50.009/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.50.009","libelle":"Montant de prélèvement à la source","ligne":3068,"titre":"Prélèvement à la source différent de l’assiette multipliée par le taux","action":"Recalculer le prélèvement à la source : montant soumis au PAS multiplié par le taux, à un euro près.","valeur":"119.24","message":"Le montant de prélèvement à la source ne correspond pas à l'assiette multipliée par le taux (tolérance d'un euro).","valeurs_liees":[{"rubrique":"S21.G00.50.006","libelle":"Taux de prélèvement à la source","valeur":"1.00"},{"rubrique":"S21.G00.50.013","libelle":"Montant soumis au PAS","valeur":"1924.49"}]}]}
{"type":"bilan","version_format":23,"fichiers":4,"valides":3,"avec_avertissements":0,"non_valides":1,"illisibles":0,"nb_bloquants":6,"nb_avertissements":2,"options":{"annee_controle":2026,"complet":false,"fils":1,"limite":0,"masquer_comptes":false,"max_decompresse":2147483648,"max_entrees":100000,"strict":false}}
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: avril-2026.dsn, fevrier-2026.dsn, janvier-2026.dsn, mars-2026.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.

With masquer_valeurs, the same request returns a masked stream. Each file line names the file by its rank (fichier-1.dsn to fichier-4.dsn) and keeps its SHA-256. In the anomalies, the values read in the DSN and raw messages are absent, and each anomaly names its individual by rank. The summary states true in options.masquer_valeurs. To request it, set options.masquer_valeurs to true in the manifest, or add --option masquer_valeurs=true to the DSNLint Connect command, which the Command tab of the proof shows.

rapport.jsonl
{"type":"fichier","version_format":23,"fichier":"fichier-1.dsn","sha256":"e7bf7cc84029dc7fb6e33c86267ad69d84acd3b8e6407e1f9f8155765878c893","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"fichier-2.dsn","sha256":"83d970d4c7ec4f34734c5d353b1eb5a537bffb6f1f6e9aa11ac24dfb25af1480","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"fichier-3.dsn","sha256":"5179554878fe6b5515717265cecd25c6f5887f58ffd9d96183889de439a1fb1b","normes":["P26V01"],"statut":"VALIDE","nb_bloquants":0,"nb_avertissements":0,"anomalies":[]}
{"type":"fichier","version_format":23,"fichier":"fichier-4.dsn","sha256":"6a1dcbb1eb052666f11d5b4919af8a6b2abfb1d83131b839ff12068c7d4e7e3b","normes":["P26V01"],"statut":"NON_VALIDE","nb_bloquants":6,"nb_avertissements":2,"anomalies":[{"code":"S21.G00.30.006/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.30.006","libelle":"Date de naissance","ligne":528,"titre":"Date de naissance incohérente avec le NIR","action":"Corriger la date de naissance ou le NIR de l’individu pour rendre leurs années cohérentes.","individu":"Individu 3"},{"code":"S21.G00.40.021/SIG-11","gravite":"AVERTISSEMENT","rubrique":"S21.G00.40.021","libelle":"Motif de recours","ligne":1128,"titre":"Motif de recours du CDD absent","action":"Indiquer le motif de recours du contrat à durée déterminée.","individu":"Individu 6"},{"code":"S21.G00.40.010/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.40.010","libelle":"Date de fin prévisionnelle du contrat","ligne":1136,"titre":"Fin prévisionnelle du contrat antérieure à son début","action":"Corriger la date de fin prévisionnelle du contrat.","individu":"Individu 6"},{"code":"S21.G00.81.001/SIG-18","gravite":"AVERTISSEMENT","rubrique":"S21.G00.81.001","libelle":"Code de cotisation","ligne":1402,"titre":"Cotisation de retraite complémentaire incomplète","action":"Vérifier le paramétrage des cotisations de retraite complémentaire de l’individu.","individu":"Individu 7"},{"code":"CSL-04","gravite":"BLOQUANT","rubrique":"S21.G00.50.001","libelle":"Date de versement","ligne":2062,"titre":"Date qui n’existe pas au calendrier","action":"Saisir une date réelle au format prévu par la norme dans le logiciel de paie.","individu":"Individu 2"},{"code":"S21.G00.40.004/CRE-11","gravite":"BLOQUANT","rubrique":"S21.G00.40.004","libelle":"Code profession et catégorie socioprofessionnelle (PCS-ESE)","ligne":2232,"titre":"Code de profession (PCS-ESE) inconnu de la nomenclature","action":"Choisir le code de profession dans la nomenclature PCS-ESE en vigueur.","individu":"Individu 3"},{"code":"CST-03","gravite":"BLOQUANT","rubrique":"S21.G00.30.004","libelle":"Prénoms","ligne":2823,"titre":"Rubrique obligatoire absente","action":"Renseigner la rubrique manquante dans le logiciel de paie.","individu":"Individu 6"},{"code":"S21.G00.50.009/CCH-11","gravite":"BLOQUANT","rubrique":"S21.G00.50.009","libelle":"Montant de prélèvement à la source","ligne":3068,"titre":"Prélèvement à la source différent de l’assiette multipliée par le taux","action":"Recalculer le prélèvement à la source : montant soumis au PAS multiplié par le taux, à un euro près.","individu":"Individu 7"}]}
{"type":"bilan","version_format":23,"fichiers":4,"valides":3,"avec_avertissements":0,"non_valides":1,"illisibles":0,"nb_bloquants":6,"nb_avertissements":2,"options":{"annee_controle":2026,"complet":false,"fils":1,"limite":0,"masquer_comptes":false,"masquer_valeurs":true,"max_decompresse":2147483648,"max_entrees":100000,"strict":false}}
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: avril-2026.dsn, fevrier-2026.dsn, janvier-2026.dsn, mars-2026.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.

Compare the two streams: the first shows the values and the raw messages of mars-2026.dsn, the second shows only the rank of the individual. The verdicts and the counters are identical.

See the possible integrations on the API page

Check without any value read from the DSN
Previous section
Compare two versions of a set of DSN files
Next section