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

This tool only checks the schema (XSD): that the structure and the format of each field are correct. It is the basic validation. When you send your invoices with the Verifacti API, each one goes through a much more complete validation before it reaches the AEAT: that amounts and tax add up, tax rates, dates, NIFs, key combinations and the rest of the AEAT business rules. If something is wrong, we return the specific error before anything is sent, instead of an AEAT rejection. And Verifacti takes care of the hash, the chaining and the submission. and try it with the test environment and a test NIF.

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
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"}'
Test environment and test NIF included

How to use it

  1. Export the XML from your system: the full submission (with or without the SOAP envelope), the RegFactuSistemaFacturacion or a standalone RegistroAlta or RegistroAnulacion.
  2. Paste or upload it.
  3. Click «Validate» and fix the errors it shows.
  4. Validate again.

What it checks

It validates against the AEAT web service schemas. The structure being validated, in Verifactu XML structure.

Schemas it validates against
SchemaWhat it checks
SuministroLR.xsdSubmission structure (RegFactuSistemaFacturacion, header and records)
SuministroInformacion.xsdRegistroAlta, RegistroAnulacion and the types and formats of each field
Well-formed XMLThat the file can be read

Questions

Do you send my XML to a server?

No. The schemas are downloaded into your browser and validation runs there.

The XML is valid but the AEAT rejects it: why?

Because the AEAT also applies business rules the XSD does not cover (amounts, dates, NIF, chaining). See Verifactu errors.

Does it check the hash?

No. How it is computed, in hash and chaining.

Where can I see a sample Verifactu XML?

Send JSON and leave the XML to the API

Test environment and test NIF included.

Test environment and test NIF includedRead the documentation