Skip to content

Read the official DSN returns: BAN and CRM

After a filing, the bodies send files back: acknowledgements, anomaly reports, feedback reports. DSNLint reads them, names each one and attempts to match it with the DSN files supplied, identifying insufficient or ambiguous links. It files nothing and fetches nothing from Net-entreprises: you send it the files. In the application, upload them in Returns; through the API, send them to POST /v1/retours.
  1. Gather the returns — Take the files you have downloaded: electronic acknowledgements of registration (AEE) or rejection notices (ARE), anomaly reports (BAN), business feedback reports (CRM). An unknown file is named, never ignored. The API also accepts ZIP and gzip archives, with their uncompressed size declared.
  2. Add the DSN files — Attach the DSN files concerned if you have them: they are optional. With them, DSNLint looks for candidate declarations and searches its own check for the anomalies the return announces; a link is established only when the available identifiers allow it. Without a DSN, it reads the returns alone.
  3. Choose the format — Text, JSON, CSV, PDF, XLSX or Power BI. JSON is the normalised file your platform can keep: DSNLint keeps no return.
  4. Read the exit code — Code 0 means the whole set of files was read in full. Code 10 means a warning: a file that was not read, is non-compliant or partial, or a DSN that is unavailable. It is not an error: the response is still a 200 with its document.
rapport.txt · lines 1 to 24 of 53
Retours officiels — dossier normalisé
États du retour et rapprochements : information.
Conservation CRM PAS : 6 ans de date à date — Net-entreprises, fiche 2972 (23 mars 2025).

DSN fournie : declaration-a.dsn — SHA-256 10839e1a7156280adf9eed697439a3e0e62f6be43a91eaff3f10f349498c853a — contrôlée
aee.xml — AEE — Lu
SHA-256 : e68d8ead86733fc00a00bcf58105b7db631916aa9f644e957a5ca1a99f83f4d7
État du retour : OK (retour)
Organisme : point de dépôt DSN (retour)
Version : v02r01 (retour)
Date de réception : 20 janvier 2026 (retour)
Heure de réception : 09:00:00 (retour)
Lien DSN : Non relié — Identifiants déclaratifs insuffisants ; le nom du fichier ne prouve pas son identité à l’octet.
Source : dsn_bilans_v02r01.xsd — v02r01 — capture du 11 septembre 2026 — rapport ; rapport_comp_type
https://www.net-entreprises.fr/declaration/norme-et-documentation-dsn/

ban.xml — BAN — Lu
SHA-256 : 4d602d64260ccc2cd7eeb70ededdb81e8ca34c8822a2298fa1cbd3669856fe5a
État du retour : ANO (retour)
Organisme : point de dépôt DSN (retour)
Version : v02r01 (retour)
Date de réception : 20 janvier 2026 (retour)
Heure de réception : 09:00:00 (retour)
Déclaration 1 — état : ANO (retour)
Excerpts from a real DSNLint API response, received with DSNLint Connect 1.3.0 on 5 December 2026, for public examples with fictitious data: aee.xml, ban.xml, crm-neores.xml, declaration-a.dsn. Engine outputs are in French. The same request sent with curl returns the same document, byte for byte.
POST /v1/retours
curl -X POST "$DSNLINT_API_URL/v1/retours" \
  -H "Authorization: Bearer $DSNLINT_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -F 'manifeste={"version":1,"fonction":"retours","options":{"format":"text"},"pieces":[{"id":"p0","role":"retour","nom":"aee.xml","taille":465},{"id":"p1","role":"retour","nom":"ban.xml","taille":1451},{"id":"p2","role":"retour","nom":"crm-neores.xml","taille":2673},{"id":"p3","role":"dsn","nom":"declaration-a.dsn","taille":346}]};type=application/json' \
  -F 'p0=@aee.xml;filename=aee.xml' \
  -F 'p1=@ban.xml;filename=ban.xml' \
  -F 'p2=@crm-neores.xml;filename=crm-neores.xml' \
  -F 'p3=@declaration-a.dsn;filename=declaration-a.dsn' \
  -o rapport.txt
Each example was replayed against the API and returns the same document as the curl command, byte for byte.
A single return, without a DSN, can also be sent as it is, as application/octet-stream. The parameters fichier, format, profil_csv and masquer_comptes then go in the address. For an archive, several returns or DSN files, use the multipart request above.

For each file, the report gives:

  • Its name and its SHA-256 fingerprint, calculated on the bytes received, after decompression if the file is inside an archive.
  • The state of the return, for example OK for an acknowledgement or ANO for an anomaly report, and the body that issued it.
  • For a recognised return, the version of the schema or specification it was read against, and the reception dates when the return carries them; for any other file, the reason it was only partly read or not read.
  • The link with the DSN: “relié” (linked) when all identifiers present in the return that can be compared match the DSN; “non_relié” (not linked) when they are insufficient; “ambigu” (ambiguous) when several declarations fit: all remain candidates (values relié, non_relié and ambigu in the JSON). The report lists the criteria it could not compare.
  • For an anomaly report, each reported anomaly is marked “trouvée” (found) or “non trouvée” (not found) by DSNLint.
  • Masked identities: a NIR or an NTT read in the return or in a DSN supplied appears only as its last four characters, free-text messages included. An NTT quoted only in free text, with no DSN supplied to recognise it, may remain visible.
  • What is not read: a file of a version with no supported schema, a PDF or an export with no specification is flagged, never guessed.

A return that has been read does not prove everything. Keep these limits in mind:

  • A return that has been read does not prove the filing was accepted: the accepted or rejected state of a return remains information.
  • A file name does not prove a file’s identity. A “relié” link also does not prove that the DSN supplied is the one that was filed, byte for byte: the line numbers reported in the return are valid only if the file supplied is the one that was filed.
  • An anomaly announced but not found again in DSNLint’s check is an informative signal, not a verdict.
  • A file for a different version is never read using the schema for another version: it is flagged as unread.
  • The retention of PAS declarations and of the matching CRM is stated as six years to the day (Net-entreprises, sheet 2972, version of 23 March 2025).
An official return read on its own adds no individuals to the billing count. Only the DSN files you attach count, like any DSN file submitted.

See the returns route in the API reference

Produce documents from DSN files
Previous section
Prepare the substitute DSN
Next section