Editorial illustration of Spain's FACe B2G invoicing portal workflow for the spain face b2g electronic invoicing guide
    E-Invoicing Compliance

    Spain FACe B2G E-Invoicing: Government Invoice Submission Guide

    Updated:
    8 min read

    Tax & Compliance Series

    This guide is part of a comprehensive series. Explore all 202 topics:

    Spain's FACe (Punto General de Entrada de Facturas Electrónicas) is the mandatory electronic invoicing portal for all B2G (Business-to-Government) transactions, operational since January 15, 2015. All suppliers to Spanish public administrations — state, regional (Comunidades Autónomas), and local governments — must submit invoices through FACe in Facturae 3.2.2 XML format. Invoices submitted outside FACe are rejected, and payment is withheld until a valid e-invoice is received.

    What Is FACe?

    FACe is Spain's centralized government invoice reception platform managed by the Ministry of Finance (Ministerio de Hacienda).

    FACe is Spain's centralized government invoice reception platform managed by the Ministry of Finance (Ministerio de Hacienda). Key features:

    • Single entry point: One portal for all public administrations
    • Facturae format: XML format version 3.2.2 defined by the Ministry
    • Digital signature: XAdES qualified electronic signature required
    • Status tracking: Real-time invoice processing status (registered, approved, paid)
    • DIR3 codes: Routing codes identifying the specific government accounting office, management body, and processing unit

    What Is the Facturae 3.2.2 Format?

    Facturae is Spain's electronic invoice format for B2G transactions:

    Facturae is Spain's electronic invoice format for B2G transactions:

    ElementDescription
    FileHeaderSchema version, modality (individual/batch), batch info
    PartiesSeller and buyer details with NIF, name, address
    InvoicesInvoice data — number, dates, items, taxes, totals
    ExtensionsAdditional data specific to the contracting authority

    What Are DIR3 Codes?

    DIR3 (Directorio Común de Unidades Orgánicas y Oficinas) codes are essential for routing invoices within the public administration:

    DIR3 (Directorio Común de Unidades Orgánicas y Oficinas) codes are essential for routing invoices within the public administration:

    • Oficina contable: Accounting office code
    • Órgano gestor: Management body code
    • Unidad tramitadora: Processing unit code

    Incorrect DIR3 codes are the most common cause of FACe invoice rejection. Codes are published at face.gob.es.

    What Are Common FACe Rejection Reasons?

    Common FACe Rejection Reasons includes: Invalid DIR3 codes: Wrong or outdated routing codes (~40% of rejections) Missing digital signature: XAdES signature absent or invalid

    • Invalid DIR3 codes: Wrong or outdated routing codes (~40% of rejections)
    • Missing digital signature: XAdES signature absent or invalid
    • Format errors: Non-compliant Facturae 3.2.2 XML structure
    • Missing contract reference: Many administrations require the contract or expediente number
    • Duplicate invoice: Same invoice number already registered in the system

    Step-by-Step: Submitting an Invoice Through FACe

    Step-by-Step: Submitting an Invoice Through FACe includes: Obtain the DIR3 codes from your contracting public administration or look them up on face. gob.

    1. Obtain the DIR3 codes from your contracting public administration or look them up on face.gob.es
    2. Generate a Facturae 3.2.2 XML file with all required fields
    3. Sign the XML with a qualified XAdES electronic signature
    4. Submit via FACe portal (web upload, web services API, or email)
    5. Monitor status through the FACe tracking portal

    Invoicemonk supports FACe B2G invoicing with automated Facturae 3.2.2 XML generation, DIR3 code lookup, digital signature application, and FACe submission via API — ensuring government invoices are accepted on the first submission.

    Tags:
    spain
    FACe
    B2G
    facturae
    government-invoicing
    OO
    Olayinka Olayokun

    Digital Marketing, SEO Specialist, Content Creator & Product Professional

    CIM Certified
    MBA in Digital Marketing and Business Transformation

    Olayinka is a digital marketer, content creator, growth and SEO specialist with 10+ years helping businesses in Nigeria, the UK, the US, Australia, and Dubai achieve their goals online.

    More from Tax & Compliance