← Back to guides ANAF · 6 minLegal archiving of electronic invoices: how long and how An electronic invoice must be kept in its original form (XML) together with the SPV proofs, for the full period required by law. An incomplete archive is a problem at the first audit. This guide explains what to archive, for how long and how to maintain document integrity and accessibility. How to archive correctlyKeep the original XML, not just the PDFThe legal document is the XML, not the PDF rendering. Archive the original XML file plus the SPV submission/receipt proof. The PDF alone isn't enough.Respect the legal retention periodInvoices are kept for the period required by law (generally 10 years for financial-accounting documents). Don't delete documents before the period expires.Ensure integrity and accessibilityThe archive must guarantee documents haven't been altered and can be retrieved quickly on request. A non-searchable archive is as bad as no archive in an audit.Structured archive with AzuvioAzuvio keeps the original XML, SPV proofs and links to payments/records in an archive searchable by partner, period and status. In an audit, you find any document in seconds. Bottom line Legal archiving isn't just 'keeping files' — it's keeping the right documents (XML + proofs), for the right period, in a searchable way. That turns an audit into a formality, not a crisis. Last updated: 2026-07-07 Frequently askedWhat must I archive for an electronic invoice?The original XML file (the legal document) plus the SPV submission/receipt proof. The PDF rendering alone is not enough.How long do I keep electronic invoices?For the period required by law — generally 10 years for financial-accounting documents. Don't delete documents before the period expires.What integrity requirements apply?The archive must show documents haven't been altered and allow quick retrieval on request. A non-searchable archive is an audit risk.How do I make a searchable archive?Azuvio keeps the XML, SPV proofs and payment links in an archive searchable by partner, period and status, ready for audits. Related glossary termse-Factura (RO e-Invoice)SPV (Virtual Private Space)SAF-T (D406 return) Where Azuvio fitsConformitate fiscală ANAFReconciliere bancară automată Related guidesHow to download received invoices from SPV and process them automaticallyHow to prepare for an ANAF audit on e-Factura