D406 SAF-T RO 2.4.9 validator
Romanian SAF-T (D406 declaration)
The Romanian standard audit file a company files as the D406 declaration: ledger, partners, invoices and payments
Nothing is uploaded: the file is read and checked in your browser
About
Romanian companies report their accounts to ANAF as SAF-T in the D406 informative declaration: monthly or quarterly with the general ledger, customers, suppliers, tax table, sales and purchase invoices and payments (HeaderComment L or T), the fixed assets in an annual file (A) and the stock on request (C). Large taxpayers started in 2022, everyone else followed by 2025.
The file is based on the OECD SAF-T 2.0. ANAF publishes the XSD with a workbook of the element tables and code lists (tax codes, charts of accounts, invoice types), and the DUKIntegrator validator that every file passes before it is signed and filed.
Good to know
- The schema checks structure and data types. DUKIntegrator also checks the codes against ANAF's nomenclatures (TaxCode, accounts, CustomerID and SupplierID prefixes, CUI check digits, IBANs), the totals and that the ledger balances, which is not done here.
- ANAF publishes the XSD under the namespace of D406T, the test declaration (mfp:anaf:dgti:d406t:declaratie:v1). Our copy has the D406 namespace, which a D406 file carries and ANAF's D406 validator reads; nothing else is changed.
- The example is by xmlvalid.com: a monthly file with one sale and one purchase at 21 % VAT, tax codes 310344 and 301104 from ANAF's nomenclature, dummy CUIs with valid check digits.
Files
1 file · 127.6 KB · Download all (.zip)-
Ro_SAFT_Schema_v249_2025.xsd main
Example document
d406-monthly.xml · 19.9 KB · valid against this schema
In CI and from code
The same schema by its name, ro-saft-d406, through the API.
npx @xmlvalid/cli validate "**/*.xml" --schema ro-saft-d406
- uses: xmlvalid/validate-action@v1
with:
files: "**/*.xml"
schema: ro-saft-d406
api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
-H "Authorization: Bearer $XMLVALID_API_KEY" \
-F document=@d406-monthly.xml \
-F schema=ro-saft-d406
Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups