🇪🇸Spain E-Invoice Errors

Spanish Facturae and TicketBAI validation errors (BR-ES-xx codes) for Spanish e-invoicing compliance.

15 errors documented

errorES-R-002facturaecountryBLOCKED

Invalid FacturaE format

Spanish B2G invoices must use FacturaE 3.2.x format.

errorES-R-003facturaecountryINPUT

FACe routing codes required

Spanish B2G invoices need OC (oficina contable), OG (organo gestor), UT (unidad tramitadora).

errorES-R-004facturaecountryBLOCKED

Digital signature required

Spanish FacturaE invoices require XAdES digital signature.

errorBR-ES-01peppol-bis-3countryINPUT

Spanish NIF/CIF required

Spanish invoices must include the NIF (individuals) or CIF (companies) tax identifier.

warningES-R-005ubl-2.1countryINPUT

SII reporting reference

Invoices reported to Spanish SII should include reporting reference.

warningES-R-006ubl-2.1countryINPUT

Recargo de equivalencia for retailers

Spanish retail sales may require equivalence surcharge.

errorBR-ES-02verifactucountryBLOCKED

Missing VeriFACTU hash chain

Spanish VeriFACTU invoices must include the hash chain for audit trail.

errorSII-001SIIcountryINPUT

Clave 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.

errorFACE-001FacturaecountryINPUT

NIF/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.

errorFACE-002FacturaecountryINPUT

DIR3 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.

errorFACE-003FacturaecountryBLOCKED

Digital signature invalid

Facturae requires XAdES-EPES digital signature with a valid Spanish digital certificate (certificado digital) from an accredited CA.

errorFACE-004SIIcountryBLOCKED

SII deadline exceeded

SII (Suministro Inmediato de Información) subjects must report invoices within 4 days of issue. Late submissions are flagged.

errorFACE-005FacturaecountryBLOCKED

IVA calculation mismatch

Tax calculation must be correct: base imponible × tipo = cuota. Spanish IVA rates are 21% (general), 10% (reduced), 4% (super-reduced), 0% (exempt).

warningFACE-006FacturaecountryINPUT

Recargo de equivalencia missing

Retail equivalence surcharge (recargo de equivalencia) must be included for certain retail customers who operate under this special regime.

warningES-01CIUS-ES (Spain)countryBLOCKED

Spanish 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.