declaration_validate_xml
Validates ANAF tax declaration XML files with ANAF's own DUKIntegrator validators, returning official errors and warnings verbatim, plus a namespace-corrected XML, so you can fix issues before filing in SPV.
Instructions
Validate an ANAF tax declaration XML (D212 Declaratia unica, C168 rent contract registration, D177, D700, D100, D112, D300, D390, D394 …) with ANAF's own DUKIntegrator validators, the same jars the ANAF portal uses. Public endpoint: no account needed, nothing is stored, 60 requests/hour per IP. Returns ANAF's errors and warnings verbatim. When the root namespace is missing or belongs to another reporting period, Storno applies the namespace ANAF asks for and returns the corrected XML (namespaceCorrected=true): upload that one. Use it before filing in SPV, or in a build → validate → fix loop when assembling a declaration from a taxpayer's documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | Yes | The declaration XML document (max 4 MB) | |
| type | No | Form code, e.g. D212, C168, D300. Inferred from the root element when omitted. |