🇪🇸Spain E-Invoice Errors
Spanish Facturae and TicketBAI validation errors (BR-ES-xx codes) for Spanish e-invoicing compliance.
15 errors documented
ES-R-002facturaecountryBLOCKEDInvalid FacturaE format
Spanish B2G invoices must use FacturaE 3.2.x format.
ES-R-003facturaecountryINPUTFACe routing codes required
Spanish B2G invoices need OC (oficina contable), OG (organo gestor), UT (unidad tramitadora).
ES-R-004facturaecountryBLOCKEDDigital signature required
Spanish FacturaE invoices require XAdES digital signature.
BR-ES-01peppol-bis-3countryINPUTSpanish NIF/CIF required
Spanish invoices must include the NIF (individuals) or CIF (companies) tax identifier.
ES-R-005ubl-2.1countryINPUTSII reporting reference
Invoices reported to Spanish SII should include reporting reference.
ES-R-006ubl-2.1countryINPUTRecargo de equivalencia for retailers
Spanish retail sales may require equivalence surcharge.
BR-ES-02verifactucountryBLOCKEDMissing VeriFACTU hash chain
Spanish VeriFACTU invoices must include the hash chain for audit trail.
SII-001SIIcountryINPUTClave de régimen especial missing
SII requires a regime key (clave de régimen especial) for each invoice indicating the type of operation: 01=General, 02=Export, 03=Gold operations, etc.
FACE-001FacturaecountryINPUTNIF/CIF format invalid
Spanish tax ID must be valid NIF (individuals) or CIF (companies) format with correct checksum letter. NIF uses 8 digits + letter, CIF uses letter + 7 digits + control character.
FACE-002FacturaecountryINPUTDIR3 codes missing or invalid
FACe B2G invoices require three administrative unit codes (DIR3): Órgano Gestor, Unidad Tramitadora, and Oficina Contable. These codes route the invoice within government.
FACE-003FacturaecountryBLOCKEDDigital signature invalid
Facturae requires XAdES-EPES digital signature with a valid Spanish digital certificate (certificado digital) from an accredited CA.
FACE-004SIIcountryBLOCKEDSII deadline exceeded
SII (Suministro Inmediato de Información) subjects must report invoices within 4 days of issue. Late submissions are flagged.
FACE-005FacturaecountryBLOCKEDIVA calculation mismatch
Tax calculation must be correct: base imponible × tipo = cuota. Spanish IVA rates are 21% (general), 10% (reduced), 4% (super-reduced), 0% (exempt).
FACE-006FacturaecountryINPUTRecargo de equivalencia missing
Retail equivalence surcharge (recargo de equivalencia) must be included for certain retail customers who operate under this special regime.
ES-01CIUS-ES (Spain)countryBLOCKEDSpanish sellers should include NIF/CIF
Spanish sellers should include NIF/CIF. This validation rule ensures Invoice compliance with CIUS-ES (Spain).
Handle Spain Errors in Your Pipeline
The compliance engine auto-remediates Spain e-invoicing errors with controlled safety policies.