Skip to content

Black Fridayup to −40%

Black FridayEnds in

Your first year, 40% cheaper

Open your account and send your first Verifactu invoice today.

The discount applies automatically when you choose your plan.

or
Continue with Google
Verifactu

in every invoice.

Find out more
Invoicing · Facturae

Your invoice to the public sector, in Facturae and signed

When you invoice a town council or a regional government department, they'll usually ask for Facturae instead of a PDF: an XML file with the body's DIR3 codes. Fube generates it from the invoice you've already issued, signs it for you if you want, and you upload it to FACe.

  • From the issued invoice, in Facturae 3.2, 3.2.1 or 3.2.2
  • The public body's DIR3 codes, saved once in its record
  • Signed by Fube, or unsigned for you to sign yourself

DIR3 codes are saved once, in the public body's record

The public sector knows where each invoice is going from three DIR3 codes: accounting office, managing body and processing unit. If one is wrong, the body sends the invoice back.

In Fube they go in the customer record, under ‘Administrative centres’, and every Facturae takes them from there. The XML is generated when you download it: if an invoice is returned because of a code, you correct it in the record and download the Facturae for the same invoice again, without issuing a new one.

From issued invoice to FACe, in four steps

  1. 01

    Save the public body's DIR3 codes.

    In its customer record, of type Company, add the accounting office, the managing body and the processing unit under ‘Administrative centres’, each with its code and role. The body gives you them.

  2. 02

    Add the case file to the invoice.

    The ‘E-invoice’ section holds the procurement case file code, the purchase order and contract references and the service period, if the body asks for them.

  3. 03

    Issue and download the Facturae.

    With the invoice issued, under ‘Download’, choose ‘Facturae (XML)’. Leave version 3.2.2 or whichever you're asked for, and ‘Download signed’ so Fube signs it.

  4. 04

    Upload it to FACe.

    Log in to FACe, or the portal the public body tells you, and upload the file. Submission and tracking are done there.

How to export an invoice in Facturae and submit it to FACe

If the contract withholds a retention, the XML includes it

You enter the percentage on the invoice and the Facturae comes out with the retained amount shown separately. The net amount, the IVA and the total don't change.

On the invoice, in ‘Retention (%)’, you enter the percentage of the net amount, usually 5%. In the XML, the retained amount appears with its percentage, and the amount payable now is reduced by that sum: that's what the public body reads. In Fube, the retained amount falls due on its own date, one year after the invoice unless you set another.

Facturae works alongside Verifactu and the rest of Fube

Verifactu records every invoice with the AEAT when it's issued, whoever it's for, and Fube does it automatically. Facturae is the format in which you deliver a specific invoice to a public body. The same invoice goes through both.

Verifactu

Every invoice is recorded with the AEAT when issued, with its hash and QR code, including the one you later export to Facturae.

Customers

The public body's record stores its administrative centres, with their DIR3 code and role, for all its invoices.

Credit notes

They're issued linked to the invoice they correct, and a credit note for a standard invoice carries that invoice, the reason and the method in its Facturae.

Business to business

Facturae is for the public sector. What the law requires for invoices between businesses, and what Fube covers today.

What each plan includes

Facturae is on all four plans, including the free one; what changes from one to another is how many invoices you issue a year.

E-invoice for the public administration

Starter

Pro

Business

Elite

Invoices per year

Starter

30

Pro

100

Business

300

Elite

Unlimited

Starter

Free

forever

Create account

Pro

€9.95

/month

Try for free

Business

€19.95

/month

Try for free

Elite

€49.95

/month

Try for free

See all plans and pricing

The public sector XML, from the invoice you already have

Everything in the Facturae comes from the issued invoice and the public body's record: nothing is typed twice.

3

Facturae schema versions: 3.2, 3.2.1 and 3.2.2

4

invoice types that can be exported: full, simplified and corrective invoices for both

€0

Facturae included in the free plan, just as in the other three

For anyone who invoices the public sector

From the freelancer who does two jobs a year for a town council to the company working with public bodies every month.

She does two or three jobs a year for town councils. She has no certificate to sign with: she downloads the XML already signed by Fube and uploads it to FACe herself.

Nerea

Freelance designer · minor contracts

Signed by FubeFree plan

He invoices Canary Islands public bodies with IGIC. The XML carries IGIC with its tax code, not IVA, and each body's DIR3 codes come from its record.

Miguel

IT maintenance · Canary Islands

IGIC 7%DIR3 in the record

An invoice was returned to her with a wrong amount. She issues a credit note linked to the original and downloads its Facturae, with the invoice it corrects, the reason and the method inside.

Rocío

Consultancy · public university

Credit noteFacturae 3.2.2

Frequently asked questions

What you ask us most about invoicing the public sector.

Your question isn't here? A human will answer you, usually in under 4 hours

It's the XML e-invoice format the Spanish public sector uses with its suppliers. When the customer is a public body, it replaces the PDF: their system reads the invoice automatically, with the body's details inside.

When you invoice a public body and it asks for an e-invoice: Fube generates it in Facturae, with its DIR3 codes and the case file. If your customers are businesses or individuals, you don't need it. If you're not sure whether it's mandatory in your case, your accountant can tell you.

No. With ‘Download signed’, Fube signs it on your behalf with its own certificate, as a trusted third party, in the signature format FACe requires. If you'd rather sign it with your own certificate, download it unsigned and sign it with AutoFirma, the government's free app, or with your usual tool.

3.2, 3.2.1 and 3.2.2, which is selected by default. You choose whichever the public body or its entry point asks for.

The DIR3 codes belong to the public body: they go in its customer record, under ‘Administrative centres’, each with its code and role. The section appears when the customer is of type Company. The case file belongs to each transaction: it goes on the invoice, in the ‘E-invoice’ section, with the purchase order and contract references and the service period. The body itself gives you the codes.

No. Fube generates the XML and, if you like, signs it. You upload it to FACe or to whichever portal the public body tells you, and you track it there.

Yes. You can export invoices, simplified invoices and credit notes for both, as long as they've been issued and have a customer. Credit notes, including those for a simplified invoice, carry in the XML the invoice they correct, the reason and the correction method.

You enter the percentage in the invoice's ‘Retention (%)’ field. The net amount, the IVA and the total don't change; the XML shows the retained amount separately, with its percentage, and the amount payable now.

Your first invoice to the public sector, in Facturae

Issue the invoice as usual, save the public body's DIR3 codes in its record and download the signed XML. Facturae is on all four plans, including the free one.

Free plan foreverFacturae on all four plansNo lock-in contracts