TicketBAI XML validator: check your file against the XSD
Validate your TicketBAI file (registration or cancellation) for free against the XSD schemas of the foral treasury you choose: Álava, Bizkaia or Gipuzkoa. The validator shows which element fails and on which line. The XML is validated in your browser and we do not store it. It does not check the electronic signature or each treasury’s business rules.
Validate a TicketBAI file
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 TicketBAI API you don't generate or sign the file: you send the invoice as JSON and Verifacti, guarantor software in all three territories, generates the XML, signs it and sends it to the foral treasury; in Bizkaia, also to the LROE.
curl -X POST https://api.verifacti.com/ticketbai/create \
-H "Authorization: Bearer $VERIFACTI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"serie": "A",
"numero": "234634",
"fecha_expedicion": "19-11-2026",
"simplificada": false,
"nif": "A15022510",
"nombre": "Empresa de ejemplo SL",
"direccion": "Calle Mayor 15",
"cp": "48001",
"descripcion": "Descripción de la factura",
"tipo_operacion": "servicios",
"lineas": [{
"descripcion": "Línea 1",
"cantidad": "2",
"importe_unitario": "100.00",
"importe_total": "242.00"
}],
"desglose_iva": [{
"base_imponible": "200",
"tipo_impositivo": "21",
"cuota_impuesto": "42"
}],
"importe_total": "242.00"
}'How to use it
- Choose the treasury: Álava, Bizkaia or Gipuzkoa.
- Paste or upload the TicketBAI file (
TicketBaiorAnulaTicketBai). - The file must be signed: the schema requires the signature (ds:Signature) and fails without it.
- Click «Validate» and fix the errors it shows.
- Validate again.
What it checks
It validates against the TicketBAI 1.2.2 schema of the foral treasury you choose. Today the three versions differ only in their documentation texts.
| File | Schema |
|---|---|
Registration (TicketBai) | ticketbaiv1-2-2.xsd |
Cancellation (AnulaTicketBai) | anula_ticketbaiv1-2-2.xsd |
| Signature (ds:Signature) | Its structure only, with the W3C xmldsig schema |
Questions
Do I need to choose the treasury?
Does it check the signature?
Do you send the file to a server?
Does my software have to be guarantor software?
Where can I see TicketBAI examples?
Other tools
Send JSON and leave the file to the API
Test environment and test NIF included.