FacturaE Format
FacturaE · Format
FacturaE 3.2.2 Format
Section titled “FacturaE 3.2.2 Format”Understanding the XML structure of FacturaE invoices.
XML Structure
Section titled “XML Structure”<?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>Key Elements
Section titled “Key Elements”| Element | Description | Required |
|---|---|---|
SchemaVersion | Always “3.2.2” | Yes |
Modality | I (individual) or L (batch) | Yes |
InvoiceIssuerType | EM (issuer), RE (receiver), or TR (third party) | Yes |
SellerParty | Invoice issuer data | Yes |
BuyerParty | Invoice recipient data | Yes |
Invoice | Invoice details | Yes |
Simplified Input
Section titled “Simplified Input”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 }}Validation
Section titled “Validation”Kreyo validates against the official AEAT XSD schema before signing.