Extract, split and pseudonymise a DSN
- Tool
- Extract
- What for
- Read the data in a spreadsheet: the whole DSN, or that of a few individuals.
- What you receive
- Your choice of a ZIP holding the 27-column CSV and its JSON manifest, the CSV alone, or the manifest alone.
- Tool
- Split
- What for
- Separate complete declarations, one establishment per file.
- What you receive
- A ZIP: one DSN file per output segment and a JSON manifest.
- Tool
- Pseudonymise
- What for
- Share a file without the real identities.
- What you receive
- A ZIP: the pseudonymised DSN files and a JSON manifest.
One call accepts from 1 to 512 DSN files, within a limit of 512 supporting documents in total: a pseudonymisation key submitted as a supporting document therefore leaves room for at most 511 DSN files. The API accepts ZIP and gzip files, with their uncompressed size declared.
extraire, decouper and pseudonymiser accept the options.parametres object in the multipart manifest. Every field is optional; an omitted field keeps its default. With DSNLint Connect, parametres must be in the JSON object read through --options-fichier, never passed through --option.
- Field in parametres
fils_maximum- Default
- 1
- Accepted values and effect
- Integer fixed at 1. Each request is processed on a single thread.
- Field in parametres
max_decompresse- Default
- Without a value, the service limits apply.
- Accepted values and effect
- Integer of at least 1, in bytes. Reading limit per compressed DSN file.
- Field in parametres
max_entrees- Default
- Without a value, the service limits apply.
- Accepted values and effect
- Integer of at least 1. Maximum entries per DSN ZIP archive.
max_decompresse and max_entrees; fils becomes parametres.fils_maximum in the manifest.CSV extraction
Extraction keeps every field present with its value and its official label where one exists, one line per occurrence, with the block, the source line, the individual and the contract. Collective amounts are not split between individuals: no proration is invented. Its options:
- par: rubrique (the default) or salarie.
- salaries: the list of individuals to isolate, mandatory with
par=salarie.Each element is the exact NIR, payroll number or NTT of the individual wanted; the whole extraction is rejected if an identifier is missing. - The list of individuals is never placed in the address of the request: the API receives it only in the body, and DSNLint Connect reads it from the options file named by
--options-fichier. - pseudonymiser: replaces the identities of the selection. This option exists only with
par=salarie, like the pseudonymisation key. - tolerant: explicitly returns the unreadable lines. It is not allowed with
par=salarie. - document: dossier (the ZIP holding the CSV and its manifest), csv or manifeste. The last two return the exact bytes of the matching file.
- The CSV of an extraction can never be filed. It is distinct from the ZIP of CSV tables in the business reports.
version_format;source_id;norme;ligne_source;declaration_id;bloc_id;bloc_code;parent_bloc_id;rattache;etablissement_bloc_id;siren;nic;individu_bloc_id;nir;ntt;contrat_bloc_id;numero_contrat;etat_rattachement;rubrique;libelle_rubrique;valeur;libelle_valeur;etat_libelle;source_libelle;article_libelle;empreinte_source;etat_lecture
1;"s1";"P26V01";1;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.001";"Nom du logiciel utilisé";"ZAAAA";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";2;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.002";"Nom de l'éditeur";"YAAAA";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";3;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.005";"Code envoi du fichier d'essai ou réel";"01";"envoi fichier test";"publie";"datatypes-2026.xlsx";"Data Types!H22";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";4;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.006";"Numéro de version de la norme utilisée";"P26V01";"Année 2026 Version 1";"publie";"datatypes-2026.xlsx";"Data Types!H83";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";5;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.007";"Point de dépôt";"01";"Net-entreprises";"publie";"datatypes-2026.xlsx";"Data Types!H84";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";6;"";"s1:l1";"S10.G00.00";"";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.00.008";"Type de l'envoi";"01";"envoi normal";"publie";"datatypes-2026.xlsx";"Data Types!H76";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";7;"";"s1:l7";"S10.G00.01";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.01.001";"Siren de l'émetteur de l'envoi";"900000019";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";8;"";"s1:l7";"S10.G00.01";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.01.002";"Nic de l'émetteur de l'envoi";"00019";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";9;"";"s1:l7";"S10.G00.01";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.01.003";"Nom ou raison sociale de l'émetteur";"ZAAAA";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";10;"";"s1:l7";"S10.G00.01";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.01.005";"Code postal";"75001";"";"source_absente";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"HEX ; ligne 138071";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";11;"";"s1:l7";"S10.G00.01";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S10.G00.01.006";"Localité";"VAAA";"";"non_codee";"";"";"";"lisible"dsnlint-connect extraire mensuelle-complete.dsn --option par=rubrique --option document=csvThis selection isolates fictitious employee numbers 0001 and 0002 in the April demonstration DSN. The selection.json file passed to --options-fichier sets par = salarie, salaries = 0001 and 0002, and document = dossier. The ZIP contains the extracted CSV and its manifest; the manifest retains the selection options and states that the extract cannot be submitted.
extraction.csv
extraction.csv.manifest.jsonversion_format;source_id;norme;ligne_source;declaration_id;bloc_id;bloc_code;parent_bloc_id;rattache;etablissement_bloc_id;siren;nic;individu_bloc_id;nir;ntt;contrat_bloc_id;numero_contrat;etat_rattachement;rubrique;libelle_rubrique;valeur;libelle_valeur;etat_libelle;source_libelle;article_libelle;empreinte_source;etat_lecture
1;"s1";"P26V01";17;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.001";"Nature de la déclaration";"01";"DSN Mensuelle";"publie";"datatypes-2026.xlsx";"Data Types!H85";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";18;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.002";"Type de la déclaration";"01";"déclaration normale";"publie";"datatypes-2026.xlsx";"Data Types!H87";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";19;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.003";"Numéro de fraction de déclaration";"11";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";20;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.004";"Numéro d'ordre de la déclaration";"1";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";21;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.005";"Date du mois principal déclaré";"01042026";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";22;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.007";"Date de constitution du fichier";"05052026";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";23;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.008";"Champ de la déclaration";"01";"déclaration totale";"publie";"datatypes-2026.xlsx";"Data Types!H104";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";24;"s1:l17";"s1:l17";"S20.G00.05";"s1:l1";"true";"";"";"";"";"";"";"";"";"hors_individu";"S20.G00.05.010";"Devise de la déclaration";"01";"euro";"publie";"datatypes-2026.xlsx";"Data Types!H156";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";25;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.001";"SIREN";"732829320";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";26;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.002";"NIC du siège";"00074";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";27;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.003";"Code APEN";"8211Z";"Services administratifs combinés de bureau";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"NAF ; ligne 2685";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";28;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.004";"Numéro, extension, nature et libellé de la voie";"18 RUE DES DOSSIERS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";29;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.005";"Code postal";"75011";"";"source_absente";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"HEX ; ligne 138081";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";30;"s1:l17";"s1:l25";"S21.G00.06";"s1:l17";"true";"";"";"";"";"";"";"";"";"hors_individu";"S21.G00.06.006";"Localité";"PARIS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";31;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.001";"NIC";"00074";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";32;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.002";"Code APET";"8211Z";"Services administratifs combinés de bureau";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"NAF ; ligne 2685";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";33;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.003";"Numéro, extension, nature et libellé de la voie";"18 RUE DES DOSSIERS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";34;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.004";"Code postal";"75011";"";"source_absente";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"HEX ; ligne 138081";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";35;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.005";"Localité";"PARIS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";36;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.017";"Nature juridique de l'employeur";"01";"Privée";"publie";"datatypes-2026.xlsx";"Data Types!H176";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";37;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.022";"Code convention collective principale";"2098";"Convention collective nationale du personnel des prestataires de services dans le domaine du secteur tertiaire";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"IDCC ; ligne 795";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";38;"s1:l17";"s1:l31";"S21.G00.11";"s1:l25";"true";"s1:l31";"732829320";"00074";"";"";"";"";"";"hors_individu";"S21.G00.11.023";"Opérateur de compétences (OPCO)";"07";"AKTO";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"OPCO ; ligne 1306";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";122;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.001";"Numéro d'inscription au répertoire";"2820375056801";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";123;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.002";"Nom de famille";"MOREAU";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";124;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.004";"Prénoms";"CLAIRE";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";125;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.005";"Sexe";"02";"féminin";"publie";"datatypes-2026.xlsx";"Data Types!H82";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";126;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.006";"Date de naissance";"14031982";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";127;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.007";"Lieu de naissance";"PARIS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";128;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.008";"Numéro, extension, nature et libellé de la voie";"11 RUE DES TILLEULS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";129;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.009";"Code postal";"75011";"";"source_absente";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"HEX ; ligne 138081";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";130;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.010";"Localité";"PARIS";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";131;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.013";"Codification UE";"01";"France";"publie";"datatypes-2026.xlsx";"Data Types!H178";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";132;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.014";"Code département de naissance";"75";"";"source_absente";"";"";"";"lisible"
1;"s1";"P26V01";133;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.015";"Code pays de naissance";"FR";"FRANCE";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"PAYS ; ligne 132820";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";134;"s1:l17";"s1:l122";"S21.G00.30";"s1:l31";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"";"";"absent";"S21.G00.30.019";"Matricule de l'individu dans l'entreprise";"0001";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";135;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.001";"Date de début du contrat";"01092018";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";136;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.002";"Statut du salarié (conventionnel)";"04";"autres cadres au sens de la convention collective (ou du statut pour les régimes spéciaux)";"publie";"datatypes-2026.xlsx";"Data Types!H66";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";137;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.003";"Code statut catégoriel Retraite Complémentaire obligatoire";"01";"cadre (article 4 et 4bis)";"publie";"datatypes-2026.xlsx";"Data Types!H71";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"
1;"s1";"P26V01";138;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.004";"Code profession et catégorie socioprofessionnelle (PCS-ESE)";"372b";"Cadres de l'organisation ou du contrôle des services administratifs et financiers";"publie";"NEODESP26_P26V01_NEODESP26_CUMUL_P26V01.csv";"PCSESE ; ligne 2835";"d1dec1e071bdc764bf1cea9b8fbfaf5603ff4497bfec5c792ae17499b16b80f0";"lisible"
1;"s1";"P26V01";139;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.006";"Libellé de l'emploi";"Responsable administrative";"";"non_codee";"";"";"";"lisible"
1;"s1";"P26V01";140;"s1:l17";"s1:l135";"S21.G00.40";"s1:l122";"true";"s1:l31";"732829320";"00074";"s1:l122";"2820375056801";"";"s1:l135";"CTR-001";"univoque";"S21.G00.40.007";"Nature du contrat";"01";"Contrat de travail à durée indéterminée de droit privé";"publie";"datatypes-2026.xlsx";"Data Types!H58";"adb774b4ee7c584ecf359f20564106490c00ba97b2717ae4d47e11dbaf9d8af8";"lisible"{
"$schema": "urn:intek-center:dsnlint:extraction:manifeste:10",
"document": "extraction",
"fichiers": [
{
"id": "f1",
"nom": "avril-2026.dsn",
"origine_empreinte": "disponible",
"origine_nom": "declaree",
"raison": null,
"role": "dsn",
"sha256": "e7bf7cc84029dc7fb6e33c86267ad69d84acd3b8e6407e1f9f8155765878c893"
}
],
"moteur": {
"nom": "dsnlint",
"version": "1.3.0"
},
"normes": [
"P26V01"
],
"options": {
"annee_controle": 2026,
"cle_fournie": false,
"fils": 1,
"masquer_comptes": false,
"max_decompresse": 2147483648,
"max_entrees": 100000,
"par": "salarie",
"pseudonymiser": false,
"salaries": [
"0001",
"0002"
],
"tolerant": false
},
"resultat": {
"deposable": false,
"empreinte_sortie": "fbbd0cf3487537ad06b9fe18430256997a6d48678da2cd38c51264375852ac22",
"lignes_sortie": 424,
"limites": [
"Extrait salarié non déposable ; aucun montant collectif n'est réparti.",dsnlint-connect extraire avril-2026.dsn --options-fichier selection.jsoncurl -X POST "$DSNLINT_API_URL/v1/extractions" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"extraire","options":{"par":"rubrique","document":"csv"},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643}]};type=application/json' \
-F 'p0=@mensuelle-complete.dsn;filename=mensuelle-complete.dsn' \
-o extraction.csvimport { 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("mensuelle-complete.dsn")], { type: "application/octet-stream" }), "mensuelle-complete.dsn");
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\":\"extraire\",\"options\":{\"par\":\"rubrique\",\"document\":\"csv\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/extractions", {
method: "POST", headers, body, signal: AbortSignal.timeout(120000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
await writeFile("extraction.csv", 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\":\"extraire\",\"options\":{\"par\":\"rubrique\",\"document\":\"csv\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"mensuelle-complete.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("mensuelle-complete.dsn", "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/extractions",
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("extraction.csv", "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":"extraire","options":{"par":"rubrique","document":"csv"},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643}]}' . "\r\n";
$files = [
'p0' => new CURLFile('mensuelle-complete.dsn', 'application/octet-stream', 'mensuelle-complete.dsn'),
];
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/extractions');
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('extraction.csv', $response) === false) { exit(1); }Splitting by establishment
Splitting accepts only par=etablissement. Declarations for one establishment (SIREN and NIC) are grouped in one complete DSN file, with its collective data, when they have the same edition of the standard and a compatible envelope. An incompatible envelope produces another file. The declarations remain distinct: none is merged, and no collective amount is split between individuals. The input DSN is checked before splitting, then each output file and their groupings are checked before delivery. Input with a blocking anomaly is rejected, never corrected. The output files are for analysis and local sharing; they give no new right to file.
manifeste.json
morceau-00000001.dsn{
"$schema": "urn:intek-center:dsnlint:decoupage:manifeste:10",
"document": "decoupage",
"fichiers": [
{
"id": "f1",
"nom": "mensuelle-complete.dsn",
"origine_empreinte": "disponible",
"origine_nom": "declaree",
"raison": null,
"role": "dsn",
"sha256": "3dc07e40edc864e032293e6ad55779146ec8be97f23bbabab6b8ce986fec701f"
}
],
"moteur": {
"nom": "dsnlint",
"version": "1.3.0"
},
"normes": [
"P26V01"
],
"options": {
"annee_controle": 2026,
"fils": 1,
"masquer_comptes": false,
"max_decompresse": 2147483648,
"max_entrees": 100000,
"par": "etablissement"
},
"resultat": {dsnlint-connect decouper mensuelle-complete.dsn --option par=etablissementcurl -X POST "$DSNLINT_API_URL/v1/decoupages" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"decouper","options":{"par":"etablissement"},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643}]};type=application/json' \
-F 'p0=@mensuelle-complete.dsn;filename=mensuelle-complete.dsn' \
-o rapport.zipimport { 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("mensuelle-complete.dsn")], { type: "application/octet-stream" }), "mensuelle-complete.dsn");
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\":\"decouper\",\"options\":{\"par\":\"etablissement\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/decoupages", {
method: "POST", headers, body, signal: AbortSignal.timeout(120000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
await writeFile("rapport.zip", 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\":\"decouper\",\"options\":{\"par\":\"etablissement\"},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"mensuelle-complete.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("mensuelle-complete.dsn", "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/decoupages",
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.zip", "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":"decouper","options":{"par":"etablissement"},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643}]}' . "\r\n";
$files = [
'p0' => new CURLFile('mensuelle-complete.dsn', 'application/octet-stream', 'mensuelle-complete.dsn'),
];
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/decoupages');
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.zip', $response) === false) { exit(1); }Pseudonymisation
Pseudonymisation replaces names, first names, addresses, NIR, payroll numbers and contracts with consistent fictitious values: the same value gets the same pseudonym throughout the set of DSN files. It keeps the source’s diagnostics and refuses the transformation rather than repairing it. Amounts and useful dates remain: the result is personal data within the meaning of the GDPR, it is not anonymous and it can never be filed. As for the key:
- Without a key, each new submission draws new randomness from the system and produces new pseudonyms.
- With a private key, the same supporting documents and key produce the same pseudonyms.
- The key holds from 1 to 1,048,576 bytes. The API receives it in a separate binary part named
cle_pseudonymisation. It is distinct from the API key and enters neither the options, nor the receipts, nor the logs, nor the response. - DSNLint Connect reads the key from the variable DSNLINT_PSEUDONYMISATION_KEY (UTF-8 bytes) or from a private file, named by DSNLINT_PSEUDONYMISATION_KEY_FILE or by
--cle-pseudonymisation-fichier. No key value is accepted as an argument. - The key file must be an ordinary file, with no symbolic link, owned by your user and accessible to that user alone, with no extended ACL on macOS.
- DSNLint keeps no correspondence between real identities and pseudonyms.
- For 900 seconds at most, replaying the same completed submission with the same idempotency key, in the same workspace and mode, returns 204: no result is kept, so keep your first response.
S21.G00.30.001,'1900175001001'
S21.G00.30.002,'ZAAAAAB'
S21.G00.30.004,'YAAAAAB'
S21.G00.30.005,'01'
S21.G00.30.006,'01011990'
S21.G00.30.001,'2900175001002'
S21.G00.30.002,'ZAAAAAC'
S21.G00.30.004,'YAAAAAC'
S21.G00.30.005,'02'
S21.G00.30.006,'01011990'
S21.G00.30.001,'1900175001003'
S21.G00.30.002,'ZAAAAAD'manifeste.json
pseudonyme-00000001.dsnS21.G00.30.001,'1900175607567'
S21.G00.30.002,'HOYVJXE'
S21.G00.30.004,'KCGMXZC'
S21.G00.30.005,'01'
S21.G00.30.006,'01011990'
S21.G00.30.001,'2900175768037'
S21.G00.30.002,'HOYVJXF'
S21.G00.30.004,'KCGMXZD'
S21.G00.30.005,'02'
S21.G00.30.006,'01011990'
S21.G00.30.001,'1900175607569'
S21.G00.30.002,'HOYVJXG'dsnlint-connect pseudonymiser mensuelle-complete.dsn \
--cle-pseudonymisation-fichier cle-fictive.bincurl -X POST "$DSNLINT_API_URL/v1/pseudonymisations" \
-H "Authorization: Bearer $DSNLINT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'manifeste={"version":1,"fonction":"pseudonymiser","options":{},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643},{"id":"p1","role":"cle_pseudonymisation","nom":"cle-fictive.bin","taille":35}]};type=application/json' \
-F 'p0=@mensuelle-complete.dsn;filename=mensuelle-complete.dsn' \
-F 'p1=@cle-fictive.bin;filename=cle-fictive.bin' \
-o rapport.zipimport { 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("mensuelle-complete.dsn")], { type: "application/octet-stream" }), "mensuelle-complete.dsn");
form.append("p1", new Blob([await readFile("cle-fictive.bin")], { type: "application/octet-stream" }), "cle-fictive.bin");
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\":\"pseudonymiser\",\"options\":{},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643},{\"id\":\"p1\",\"role\":\"cle_pseudonymisation\",\"nom\":\"cle-fictive.bin\",\"taille\":35}]}", "\r\n", await encoded.arrayBuffer(),
]);
const response = await fetch(process.env.DSNLINT_API_URL + "/v1/pseudonymisations", {
method: "POST", headers, body, signal: AbortSignal.timeout(120000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
await writeFile("rapport.zip", 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\":\"pseudonymiser\",\"options\":{},\"pieces\":[{\"id\":\"p0\",\"role\":\"dsn\",\"nom\":\"mensuelle-complete.dsn\",\"taille\":7643},{\"id\":\"p1\",\"role\":\"cle_pseudonymisation\",\"nom\":\"cle-fictive.bin\",\"taille\":35}]}".encode("utf-8"), b"\r\n",
]
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p0\"; filename=\"mensuelle-complete.dsn\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("mensuelle-complete.dsn", "rb") as source:
chunks.extend([source.read(), b"\r\n"])
chunks.append(("--" + boundary + "\r\nContent-Disposition: form-data; name=\"p1\"; filename=\"cle-fictive.bin\"\r\nContent-Type: application/octet-stream\r\n\r\n").encode())
with open("cle-fictive.bin", "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/pseudonymisations",
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.zip", "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":"pseudonymiser","options":{},"pieces":[{"id":"p0","role":"dsn","nom":"mensuelle-complete.dsn","taille":7643},{"id":"p1","role":"cle_pseudonymisation","nom":"cle-fictive.bin","taille":35}]}' . "\r\n";
$files = [
'p0' => new CURLFile('mensuelle-complete.dsn', 'application/octet-stream', 'mensuelle-complete.dsn'),
'p1' => new CURLFile('cle-fictive.bin', 'application/octet-stream', 'cle-fictive.bin'),
];
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/pseudonymisations');
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.zip', $response) === false) { exit(1); }All the DSNLint Connect commands