# How to archive your invoices before Verifactu 2027: retention periods, formats, and what you need to be able to find during an inspection

> Verifactu 2027: which invoices to keep, how many years to retain them, in what format, and how to structure folders to find them during an inspection.

- **Source (source):** https://aistohire.com/aisdrive-file-manager-116/blog/archive-invoices-verifactu-2027-deadlines-retention
- **Platform (platform):** AIstoHire
- **Language (language):** en
- **Updated (updated):** 2026-11-20

## In summary

- **Verifactu is mandatory on January 1, 2027, for corporations and on July 1, 2027, for self-employed individuals**, according to the schedule set by Royal Decree-Law 15/2025 ([Infoautónomos](https://www.infoautonomos.com/blog/verifactu-cuando-es-obligatorio-a-quien-afecta/), consulted on November 11, 2026).
- The **B2B electronic invoice** follows a different path: [Order HAC/1028/2026, of October 2](https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-20587) (BOE No. 247, of October 5, 2026; in force on October 6, 2026) started the countdown of deadlines from RD 238/2026: **October 6, 2027** for those exceeding 8 million euros and **October 6, 2028** for the rest.
- What you need to archive is not just the PDF: also the **faithful copy in UBL syntax**, the **records of registration and cancellation** with their chained fingerprint, the expense receipts, and the tickets.
- The actual retention period is **6 years** (Article 30 of the Commercial Code), not 4, and there are cases that extend it to **10 or 13 years**.
- In the event of a request, you have **10 business days**: the litmus test is not having the file, but being able to find a specific invoice by supplier, amount, or concept within it.

![Shelf of aligned file cabinets next to a desk with a laptop and a tray of paper invoices](https://cdn.aistohire.com/i/1166-jaff-qgpk-qorj-cdpj.webp)

The entire conversation about Verifactu revolves around the program that **issues** the invoice. Hardly anyone talks about the other side, which is what will get you in trouble during an inspection: the **archive that preserves it**. Your invoicing software keeps its part —the invoices you issue— and that’s where its responsibility ends; the invoices received, the fuel tickets, the expense receipts, the contract explaining that odd amount, and the emails from the client who accepted the price live somewhere else, usually in a folder on the desktop called "invoices 2026" and in the manager's WhatsApp. This guide is for that forgotten half: what to keep, for how long, in what format, and with what folder structure so that anyone —including a new advisor— can understand it. In the end, you will see how **AisDrive**, the AI file manager from **AIsToHire**, fits in: if you want to set up the archive for the year directly upon completion, you can do so in this [file manager with intelligent search and chat about your documents](/aisdrive-file-manager-116).

---

## When is Verifactu mandatory and when is the B2B electronic invoice?

These are two distinct obligations with different timelines, and it is advisable not to mix them. **Verifactu** affects the software with which you issue invoices and is mandatory on **January 1, 2027** for those taxed under the Corporate Tax and on **July 1, 2027** for self-employed individuals taxed under personal income tax for economic activity. The **mandatory electronic invoice between companies and professionals** (B2B) is another matter: it arises from Law 18/2022 "Create and Grow", is developed in RD 238/2026, and its clock started ticking on **October 6, 2026**, with the entry into force of Order HAC/1028/2026.

| Obligation | Affected parties | Date | Regulation |
|---|---|---|---|
| Verifactu | Taxpayers of Corporate Tax | January 1, 2027 | RD 1007/2023, calendar of RD-Law 15/2025 |
| Verifactu | Self-employed and other obligated under personal income tax | July 1, 2027 | RD 1007/2023, calendar of RD-Law 15/2025 |
| B2B electronic invoice | Volume of operations > 8 M€ in the previous year | October 6, 2027 (12 months) | RD 238/2026 + Order HAC/1028/2026 |
| B2B electronic invoice | Other businesses and professionals | October 6, 2028 (24 months) | RD 238/2026 + Order HAC/1028/2026 |
| Communication of states and payments | Individuals and entities in income attribution | October 6, 2029 (36 months) | RD 238/2026 + Order HAC/1028/2026 |

Sources: [text of Order HAC/1028/2026 in the BOE](https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-20587) (October 5, 2026) and the [note from the Tax Agency on the Public Electronic Invoicing Solution](https://sede.agenciatributaria.gob.es/Sede/todas-noticias/2026/octubre/7/solucion-publica-facturacion-electronica.html) (October 7, 2026). The 36-month milestone is set by the consulted sources for the obligation to **communicate the states and payments** of the invoice for individuals and entities in income attribution; until that date, it is voluntary.

According to [Infoautónomos](https://www.infoautonomos.com/blog/verifactu-cuando-es-obligatorio-a-quien-afecta/), the criterion for Verifactu is not size or sector: it is enough to issue invoices with a software program. Those already in the SII, taxpayers from the regional territories of the Basque Country and Navarra, and those who invoice exclusively by hand are excluded. And one detail that many people overlook: **software developers and marketers** have been obliged since July 29, 2025, to offer compliant versions, so if your program does not mention Verifactu at this point, the problem is not the timeline.

### Why the timeline matters for archiving, not just for the program

Because the day your software starts issuing signed and chained records, your archive must safeguard **two layers** that did not exist before: the human-readable document and the technical evidence that shows that this document has not been tampered with. If the first is in one folder and the second only within the invoicing program, a software change —or a non-payment to your SaaS provider— is enough to leave you without half of the proof.

---

## What to keep besides the invoice

Much more than what fits in a PDF. With the new framework, a complete file contains: the issued and received invoice, the **faithful electronic copy in UBL syntax** when invoicing through a private platform instead of the public solution, the **billing records of issuance and cancellation** with their chain hash, and all the supporting documents for each entry (tickets, receipts, contracts, delivery notes, statements).

Article 3.1 of Order HAC/1028/2026 is explicit about the format: electronic invoices "must comply with the EN16931 semantic data model of the European Committee for Standardization under UBL (Universal Business Language) syntax." And Article 4 adds the obligation that more people will discover late: those using private platforms must send "simultaneously upon issuance a faithful electronic copy of each invoice in UBL syntax" to the public solution. That faithful copy is a document that exists, that identifies you, and that is advisable to also keep in your own file.

On Verifactu's side, RD 1007/2023 and its [technical development of the Verifactu regulation](https://sede.agenciatributaria.gob.es/Sede/normativa-criterios-interpretativos/analisis/Desarrollo_tecnico_del_Real_Decreto_que_regula_el_reglamento__Verifactu_.html) introduce new pieces: a **registration of issuance** generated immediately before or at the same time as issuing each invoice, a **cancellation record** when an erroneously issued invoice is canceled —without deleting or overwriting the original—, the **cryptographic chaining** between records, and the **QR code** on the invoice. The Tax Agency itself describes the QR as the element whose reading "allows the recipient of that invoice to easily send certain data" ([AEAT FAQ on billing software systems](https://sede.agenciatributaria.gob.es/Sede/iva/sistemas-informaticos-facturacion-verifactu/preguntas-frecuentes.html)).

### The minimum list of a file that withstands a review

- **Issued** invoices (PDF or original format) and their faithful copies in UBL when applicable.
- **Received** invoices in the format in which they arrived, without reconverting.
- **Issuance and cancellation records** exported from your billing software, with their hash.
- **Tickets and expense receipts**, digitized and legible (thermal tickets fade in months).
- **Supporting documentation**: contracts, accepted budgets, delivery notes, payment receipts.
- **Declarations and models** submitted for the tax year, with their proof of submission.
- **Relevant correspondence** with tax significance, which Article 30 of the Commercial Code explicitly includes.

![Comparison on the same desk between a disorganized pile of tickets and the same documents classified in trays and folders](https://cdn.aistohire.com/i/5562-qnqv-izjq-yutu-dgtz.webp)

---

## How long should invoices be kept: 4 years or 6?

Six, at a minimum. The period that everyone repeats —4 years— is the **tax prescription** period of Article 66 of the General Tax Law, but Article 30 of the **Commercial Code** requires the entrepreneur to keep books, correspondence, documentation, and receipts for their business for **six years from the last entry** made in the books. Since the commercial obligation is longer and coexists with the tax one, the practical reference period is 6 years, and there are cases that extend it much further.

| Scenario | Practical conservation period | Basis |
|---|---|---|
| General tax rule | 4 years | Prescription, art. 66 LGT |
| General commercial rule | 6 years from the last entry | Art. 30 Commercial Code |
| Negative taxable bases | 10 years | Art. 26.5 LIS: the Administration can verify the NPB for 10 years |
| Movable investment goods | 9 years (5 for regularization + 4 for prescription) | Regularization of VAT deductions |
| Real estate related to the activity | 13 years (9 for regularization + 4 for prescription) | Regularization of VAT deductions |

Sources: the blog of the [General Council of Economists on invoice conservation](https://blog.economistas.es/conservacionfacturas/) and [Article 26 of the Corporate Tax Law](https://www.iberley.es/legislacion/articulo-26-ley-impuesto-sociedades) (consulted on November 12, 2026). Regarding the NPB, Article 26.5 LIS also provides that, after the period, the taxpayer must prove them by presenting the self-assessment and the accounting with its deposit in the Mercantile Registry.

The operational reading is simple: **do not delete the tax year in the fourth year**. If you had compensable losses or purchased a premises, the tax year remains active when you no longer remember it. And if you changed advisors in the meantime, no one will notify you.

---

## In what format: readability, integrity, and traceability are not embellishments

The law does not ask you to "have the files": it asks that the file guarantees specific properties and that the Administration can access it. The Billing Regulation ([RD 1619/2012](https://www.boe.es/buscar/act.php?id=BOE-A-2012-14696)) requires invoices to be preserved by means that ensure **authenticity of origin**, **integrity of content**, and **readability**, in addition to the Administration's access. And for electronic preservation, it adds that readability must be ensured "in the original format in which they were received or sent".

Three practical consequences that almost no one applies:

1. **Do not convert what you receive.** If you receive an XML, keep the XML; if you receive a signed PDF, keep the signed PDF. Printing and scanning destroys the signature and, with it, the authenticity of origin.
2. **Online access is part of the obligation.** The regulation requires that electronically preserved documents be managed by means that guarantee online access to the data, as well as its remote upload and use by the tax Administration upon any request and **without unjustified delay**. A hard drive in a drawer complies poorly; an accessible file complies well.
3. **If you preserve outside of Spain, only electronic means are valid** that guarantee that online access and remote download. That is: the cloud is valid, but a mute cloud is not.

In addition, the standard that article 29.2.j) of the LGT imposes on computer systems: they must guarantee "the integrity, preservation, accessibility, readability, traceability, and unalterability of records, without interpolations, omissions, or alterations that are not duly noted". Non-compliance is not a formal detail: **article 201 bis of the LGT** provides for a fixed fine of **50,000 euros per year** for those with non-compliant or manipulated systems, and up to **150,000 euros per year and type of system** for software manufacturers and marketers, according to analyses published by [Economist & Jurist](https://www.economistjurist.es/zreportaje/entrada-en-vigor-de-verifactu-el-nuevo-radar-de-hacienda-que-puede-disparar-multas-fijas-de-50-000-e-por-ejercicio/) and [Atharix](https://www.atharix.com/blog/sanciones-verifactu-ley-general-tributaria) (consulted on November 12, 2026).

---

## A folder structure that survives a change of advisor

The good structure is one that a third party understands in thirty seconds without you explaining anything: **year › quarter › type of document**, with a separate folder for what is not quarterly. That hierarchy works because it coincides with the way taxes are presented and with the way a request arrives (by period and by concept), not with the way papers arrive.

![Open file box with nested folders and colored dividers forming hierarchical levels](https://cdn.aistohire.com/i/6066-nndy-wpvp-fnqr-qlll.webp)

A concrete template, ready to copy:

```
2027/
  00-Permanent/
    Contracts/
    Registrations-and-census-models/
    Investment-assets/
    Loans-and-leasing/
  Q1/
    01-Issued/
    02-Received/
    03-Tickets-and-minor-expenses/
    04-Banks-and-payments/
    05-Payrolls-and-social-security/
    06-Submitted-taxes/
    07-Verifactu-Records/
      registration/
      cancellation/
    08-Faithful-copies-UBL/
  Q2/
  Q3/
  Q4/
  99-Close/
    Balances/
    Report/
    Official-books/
```

Rules that make the structure hold up:

- **Number the folders** (`01-`, `02-`): alphabetical order stops fighting with logical order and the new advisor sees the sequence without asking.
- **The year is always the first level.** When it comes time to preserve a property for 13 years, you will want to be able to take an entire folder without fishing out loose documents.
- **"00-Permanent" for what does not expire**: contracts, deeds, loans, investment assets. These are the documents that justify entries from many years at once.
- **A separate folder for Verifactu records and UBL copies.** They are technical evidence, not reading documents: mixing them with PDFs turns them into noise.
- **No heroic file names.** Do not try to include supplier, date, amount, and concept in the name: it is manual work that is abandoned in February. The path gives the period and type; the rest has to be resolved by the search.
- **No folders "various" or "pending".** They are black holes: what goes in there does not come out.

### The point at which the structure is no longer enough

A clean hierarchy answers "where do the invoices received from the second quarter go?", but does not answer "how much did I pay this supplier last year?". For that, you need the content of the documents to be searchable, not just their location. This is where a file manager with **auto-indexing** changes the game: in [AisDrive](/aisdrive-file-manager-116) you can activate auto-indexing in a folder and everything uploaded to it becomes searchable without touching anything else, with the nested folder hierarchy and the breadcrumb that allows you to build exactly the template above.

---

## The litmus test: finding an invoice in minutes, not by the file name

The real test is not having the file organized: it’s whether a request comes in and you can respond within the deadline. A request from the Tax Agency usually grants **ten working days** from the day after notification to provide the specific documentation requested, extendable by another ten at the request of the interested party. Ten days is a lot if you know where everything is, and ridiculously little if you have to open two hundred PDFs named `escaneo_0043.pdf`.

![Mobile on a tripod photographing a paper invoice with a blue glow suggesting digitization and content search](https://cdn.aistohire.com/i/9114-fgoi-mhno-dwpv-gezo.webp)

Test it today with your current file, stopwatch in hand. If any of these five questions takes you more than three minutes, you have a filing problem, not a billing one:

1. All invoices from **a specific supplier** from the last quarter.
2. The invoice for **a specific amount** whose number you don’t remember.
3. The proof of **a concept** ("van repair", "software fee") without knowing the date.
4. The **contract** explaining a recurring invoice from two years ago.
5. The **faithful UBL copy** or the registration of an issued invoice that the client claims not to have received.

The difference between passing and failing this test lies in whether your file searches **within** the documents or only by the file name. This is what AisDrive provides at this specific point, and it’s the missing piece when billing software only keeps its own:

| What you need in a request | With a plain folder file | With AisDrive |
|---|---|---|
| Locate by supplier, amount, or concept | Open PDFs one by one | Intelligent search within the content and paths of all files |
| Paper tickets and invoices | Pile of paper that gets erased | Upload from camera or scan, indexed upon entry |
| Ask "give me the invoices from this supplier for the last quarter" | Cannot be asked | AI chat about indexed documents, with the citation and link to the exact file |
| Ensure everything new is searchable | Depends on your naming discipline | Auto-indexed by folder: what is uploaded gets indexed |
| Send documentation to the advisor or inspector | Attachments by email without control | Temporary sharing links with expiration date and time |

The chat with citations deserves a separate mention because it turns the file into something consultable by anyone: instead of remembering where you stored something, you ask in natural language about your own indexed documents and the response comes with the link to the specific file it comes from. That’s exactly what they ask for in a request: not an explanation, a document.

---

## Action plan for setting up the 2027 file

The time to set it up is before the obligation comes into effect, not on January 2, 2027, with the first invoices already issued. Four steps, in order:

1. **Create the empty folder tree for the 2027 file**, using the template above, and activate automatic indexing where documentation will be placed. A well-structured empty file fills itself; a full and disorganized file never gets fixed.
2. **Close 2026 and open exercises** with the same structure, starting with those that have negative taxable bases or investment goods: they are the ones that will last 10 or 13 years.
3. **Export the registration of issuance and cancellation** from your billing software and save them in the file, outside the program. If you change providers tomorrow, the technical evidence remains yours.
4. **Take the test of the five questions** with the stopwatch. If you pass, you have a file; if not, you have a folder.

---

## Frequently Asked Questions about the invoice file and Verifactu

### When does Verifactu come into effect exactly?

On January 1, 2027, for companies and on July 1, 2027, for the self-employed, following the deferrals approved by Royal Decree-Law 15/2025. The underlying regulation remains RD 1007/2023.

### Is Verifactu the same as mandatory electronic invoicing?

No. Verifactu regulates the requirements for the software that issues invoices and the submission of records to the Tax Agency; mandatory B2B electronic invoicing regulates the format and channel in which invoices circulate between companies, with its own timeline (October 6, 2027, for those exceeding 8 million euros and October 6, 2028, for the rest).

### How many years do I have to keep invoices?

At least six years, according to Article 30 of the Commercial Code, although the tax prescription is four. If you have pending negative tax bases, the period extends to ten years, and if you have deducted VAT on a property related to the activity, it can reach thirteen.

### Can I throw away paper invoices if I scan them?

For the digital copy to replace the paper with full guarantees, the digitization must preserve the readability, integrity, and authenticity of the document's origin, which is what the Invoicing Regulation requires. In practice, the prudent criterion is to digitize everything with quality and keep the paper for items that have unique evidentiary value (contracts, deeds) while the fiscal year is open.

### Is it okay to store invoices in the cloud as a tax file?

Yes, as long as it guarantees online access to the data and its remote upload and use by the tax administration without unjustified delay, a requirement that RD 1619/2012 expressly imposes and which is also the only valid way to store outside of Spain.

### What happens if I can't find an invoice that the Tax Agency is requesting?

You lose the associated deduction and expose yourself to the corresponding penalty. The request usually gives you ten business days, extendable by another ten; failing to respond has consequences in itself, regardless of the substance of the matter.

### Do I have to keep the faithful copies in UBL?

Order HAC/1028/2026 requires those invoicing through private platforms to send a faithful electronic copy of each invoice in UBL syntax to the public solution at the time of issuance. Aside from that submission, keeping it in your own archive is also wise: it is the structured version of your invoice and does not depend on maintaining the contract with the platform.

### How much do fines cost for not having the system in order?

Article 201 bis of the LGT provides for a fixed fine of 50,000 euros per year for those with non-compliant or manipulated invoicing computer systems, and up to 150,000 euros per year and type of system for those who manufacture or market them.

## Set up the file for the 2027 fiscal year today

Verifactu and mandatory electronic invoicing will finally organize how invoices are issued in Spain. What neither of the two regulations will resolve is the filing: that part remains yours, and it is judged the day a request arrives with a ten-day deadline. Setting up the folder structure by fiscal year, quarter, and type takes an afternoon; reconstructing it later, with four fiscal years in between and a change of advisor in the middle, takes weeks.

If you want to do it with a tool that also searches within documents, **AisDrive** —the AI file manager from **AIsToHire**— allows you to create the nested folder tree, activate auto-indexing so that everything you upload is searchable, search by content in your scanned PDFs, and ask the chat for a specific invoice, receiving the link to the exact file, as well as sharing with the advisor through temporary links with expiration date and time. Start by creating the folder `2027` in the [file manager with auto-indexing and content search from AisDrive](/aisdrive-file-manager-116) and paste the template from this article: when January arrives, the file will already be waiting for the invoices.

> Set up the archive for the 2027 fiscal year in AisDrive today: create the folder tree by quarter and type, enable auto-indexing, and ensure you can find any invoice by supplier, amount, or concept before the obligation comes into effect.

- [AisDrive – File Manager](https://aistohire.com/aisdrive-file-manager-116)

## About the platform

**AisDrive – File Manager** — an app by AIstoHire. Available at: https://aistohire.com/aisdrive-file-manager-116/blog/archive-invoices-verifactu-2027-deadlines-retention

### Other languages

- `es`: https://aistohire.com/es/aisdrive-gestor-archivos-116/blog/archivar-facturas-verifactu-2027-plazos-conservacion
- `fr`: https://aistohire.com/fr/aisdrive-gestionnaire-fichiers-116/blog/archiver-factures-verifactu-2027-delais-conservation
- `it`: https://aistohire.com/it/aisdrive-gestore-file-116/blog/archiviare-fatture-verifactu-2027-termini-conservazione
- `pt`: https://aistohire.com/pt/aisdrive-gerenciador-arquivos-116/blog/arquivar-faturas-verifactu-2027-prazos-conservacao
- `de`: https://aistohire.com/de/aisdrive-dateimanager-116/blog/rechnungen-archivieren-verifactu-2027-fristen-aufsbewahrung
- `bg`: https://aistohire.com/bg/aisdrive-menidzhar-na-faylove-za-proekti-ais-to-hire-116/blog/arhivirane-na-fakturi-verifactu-2027-srokove-za-sahranenie
- `ja`: https://aistohire.com/ja/fairu-kanri-manager-116/blog/seikyusho-archive-verifactu-2027-hozon-kikan
- `nl`: https://aistohire.com/nl/aisdrive-bestandsbeheer-voor-projecten-ais-to-hire-116/blog/facturen-archiveren-verifactu-2027-bewaartermijnen
- `ko`: https://aistohire.com/ko/aisdrive-file-manager-pail-gwanlija-116/blog/verifactu-2027-invoice-bogwan-gigan-hyeongsik
- `sv`: https://aistohire.com/sv/aisdrive-filhanterare-for-projekt-ais-to-hire-116/blog/arkivera-fakturor-verifactu-2027-bevarandetider
- `da`: https://aistohire.com/da/aisdrive-filhandtering-til-projekter-ais-to-hire-116/blog/arkivere-fakturaer-verifactu-2027-opbevaringsfrister
- `ar`: https://aistohire.com/ar/aisdrive-mdir-mlfat-llmsharia-ais-to-hire-116/blog/archive-invoices-verifactu-2027-retention
- `no`: https://aistohire.com/no/aisdrive-filbehandler-for-prosjekter-ais-to-hire-116/blog/arkivere-fakturaer-verifactu-2027-oppbevaringsfrister
- `fi`: https://aistohire.com/fi/aisdrive-tiedostonhallinta-projekteille-ais-to-hire-116/blog/laskujen-arkistointi-verifactu-2027-sailytysajat
- `zh`: https://aistohire.com/zh/aisdrive-file-manager-116/blog/verifactu-2027-invoice-archive-retention
- `pl`: https://aistohire.com/pl/aisdrive-menedzer-plikow-dla-projektow-ais-to-hire-116/blog/archiwizacja-faktur-verifactu-2027-okresy-przechowywania
- `he`: https://aistohire.com/he/aisdrive-mnhl-kbtsim-lproiktim-ais-to-hire-116/blog/archuv-heshbonit-verifactu-2027-mishchei-shmira
- `cs`: https://aistohire.com/cs/aisdrive-spravce-souboru-pro-projekty-ais-to-hire-116/blog/archivace-faktur-verifactu-2027-doby-uchovavani
- `id`: https://aistohire.com/id/aisdrive-pengelola-file-untuk-proyek-ais-to-hire-116/blog/mengarsipkan-faktur-verifactu-2027-jangka-waktu-penyimpanan
