Verifactu XML validator: check your record against the XSD
Validate your Verifactu XML for free against the official Spanish Tax Agency (AEAT) schemas (XSD) before sending it: the validator shows which element fails, on which line and why. The XML is validated in your browser and we do not store it. Passing the schema does not guarantee the AEAT accepts the record: it also applies its own business rules.
Validate an XML
The XML is validated in your browser: we do not send it to any server or store it.
Automate it with the API
With the Verifactu API you don't generate the XML: you send the invoice as JSON, the API validates it against its rules before sending it and returns the QR. Verifacti generates the XML, chains it and sends it to the AEAT.
curl -X POST https://api.verifacti.com/verifactu/create \
-H "Authorization: Bearer $VERIFACTI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"serie": "A", "numero": "1", "fecha_expedicion": "19-11-2026", "tipo_factura": "F1",
"descripcion": "Servicios de consultoría", "nif": "A15022510", "nombre": "Empresa Cliente SL",
"lineas": [{"base_imponible": "200.00", "tipo_impositivo": "21", "cuota_repercutida": "42.00"}],
"importe_total": "242.00"}'How to use it
- Export the XML from your system: the full submission (with or without the SOAP envelope), the RegFactuSistemaFacturacion or a standalone RegistroAlta or RegistroAnulacion.
- Paste or upload it.
- Click «Validate» and fix the errors it shows.
- Validate again.
What it checks
It validates against the AEAT web service schemas. The structure being validated, in Verifactu XML structure.
| Schema | What it checks |
|---|---|
| SuministroLR.xsd | Submission structure (RegFactuSistemaFacturacion, header and records) |
| SuministroInformacion.xsd | RegistroAlta, RegistroAnulacion and the types and formats of each field |
| Well-formed XML | That the file can be read |
Questions
Do you send my XML to a server?
The XML is valid but the AEAT rejects it: why?
Does it check the hash?
Where can I see a sample Verifactu XML?
Other tools
Send JSON and leave the XML to the API
Test environment and test NIF included.