Skip to content

FacturaE Format

FacturaE · Format

Understanding the XML structure of FacturaE invoices.

<?xml version="1.0" encoding="UTF-8"?>
<Facturae xmlns="http://www.facturae.gob.es/formato/Versiones/Facturaev3_2_2.xml">
<FileHeader>
<SchemaVersion>3.2.2</SchemaVersion>
<Modality>I</Modality>
<InvoiceIssuerType>EM</InvoiceIssuerType>
</FileHeader>
<Parties>
<SellerParty>...</SellerParty>
<BuyerParty>...</BuyerParty>
</Parties>
<Invoices>
<Invoice>...</Invoice>
</Invoices>
</Facturae>
ElementDescriptionRequired
SchemaVersionAlways “3.2.2”Yes
ModalityI (individual) or L (batch)Yes
InvoiceIssuerTypeEM (issuer), RE (receiver), or TR (third party)Yes
SellerPartyInvoice issuer dataYes
BuyerPartyInvoice recipient dataYes
InvoiceInvoice detailsYes

Kreyo accepts simple JSON and generates valid XML:

{
"seller": {
"nif": "B12345678",
"name": "Mi Empresa S.L.",
"address": "Calle Mayor 1"
},
"buyer": {
"nif": "P2813400E",
"name": "Ministerio de Hacienda",
"address": "Calle Alcalá 5"
},
"invoice": {
"number": "F-2024-001",
"date": "2024-01-15",
"total": 1210.00
}
}

Kreyo validates against the official AEAT XSD schema before signing.