Keeping and archiving electronic invoices in Hungary: what a business needs to know
How long and in what form a Hungarian business must keep its electronic invoices, what authenticity and integrity mean, and when a PDF is enough.
A company under the Hungarian Accounting Act must keep its electronic invoices for at least eight years, legible and retrievable, and only in electronic form: a printed PDF does not replace the original. Throughout that time it must be able to show that each invoice is authentic and unchanged, and if an XML file arrived, it must keep that too.
szamla_2026_0412.xml
SHA-2563f9a 51c0 … c21e
Intact
Most businesses now receive their invoices by e-mail, as a PDF or as an e-invoice XML file. In many offices these are printed and filed in a binder, while the original file stays in the mailbox until someone clears it out. That habit carries two risks: an electronic invoice cannot be validly kept on paper, and a mailbox is not an archive. This article sets out what counts as an electronic invoice, how long and in what form it must be kept, and what a business should watch if it wants its invoices in order.
What counts as an electronic invoice
Under the Áfa tv. (Act CXXVII of 2007 on VAT), an electronic invoice is one that was issued and received in electronic form (Áfa tv. 259. § 5. pont). An electronic invoice may be issued with the buyer's consent (Áfa tv. 175. § (3) b) pont).
According to the guidance of NAV (the Hungarian tax authority), a PDF invoice sent only by e-mail also counts as an electronic invoice. No special format or electronic signature is needed: if the invoice arrived electronically and the business received it that way, it is an electronic invoice and must be kept as one.
How long it must be kept
Three rules govern the retention period, and the longest one applies:
- Áfa tv. 179. § (1): the invoice must be kept at least until the right to assess the tax becomes time-barred.
- Art. 202. § (1): under the Art. (Act CL of 2017 on the Rules of Taxation), the right to assess the tax lapses five years after the last day of the calendar year in which the tax return had to be filed.
- Számv. tv. 169. § (2): under the számviteli törvény (Számv. tv.; the Accounting Act, Act C of 2000), accounting vouchers must be kept in legible form for at least eight years, retrievable through the accounting records.
A company under the számviteli törvény must therefore keep its invoices for at least eight years, in a legible and retrievable form.
In what form: an electronic invoice only electronically
The Áfa tv. is unambiguous: “Elektronikus okirat kizárólag elektronikus formában őrizhető meg.” (An electronic document may be kept only in electronic form.) (Áfa tv. 179. § (2)). A printout of a PDF received by e-mail therefore does not replace the original. According to NAV's guidance, a business that keeps an electronically received invoice only on paper breaches the Áfa tv. and may face a default penalty (mulasztási bírság).
If the invoice arrives as XML (or as an XML file embedded in a PDF), the XML must be kept too: the PDF view is convenient, but it is the XML that carries the invoice's data.
Authenticity, integrity, legibility
The Áfa tv. sets three requirements for an invoice, from its issue to the end of the retention period (Áfa tv. 168/A. § (1)):
- authenticity of origin: it can be ensured that the invoice was really issued by the party named on it;
- integrity of content: the content of the invoice has not changed;
- legibility: the invoice stays legible throughout the retention period.
Any business control procedure that creates a reliable link between the invoice and the transaction behind it can ensure this (Áfa tv. 168/A. § (2)); the other routes are a qualified electronic signature or EDI (Áfa tv. 175. § (2)). In practice it means that each invoice received can be linked to the delivery, the order and the payment, and that the file does not change.
The rules of electronic archiving
Under the Számv. tv., an electronic voucher must be kept in electronic form, following the rules of digital archiving (Számv. tv. 169. § (5)). Those rules are set out in the 1/2018. (VI. 29.) ITM rendelet (the ministerial decree on digital archiving), which among other things requires that:
- the electronic document is protected against deletion, alteration and unauthorised access, and stays legible throughout the retention period (3. §);
- it may be kept in a closed system (6. §);
- an electronic invoice may also be kept by sending its fingerprint (hash) to NAV in the számlaadat-szolgáltatás (invoice data reporting) and keeping the fingerprint together with the file (7. §). NAV's guidance describes the same solution for PDF invoices.
A fingerprint (SHA-256, for example) is a short value computed from the content of a file: if even a single byte of the file changes, the fingerprint changes too. That is why it can prove that the file kept is identical to the one received.
Retrievability: linking the invoice and the books
The Számv. tv. requires retrievability as well as legibility: a voucher must be traceable from the accounting records (Számv. tv. 169. § (2)). In practice this means you can get from a general ledger entry to the invoice, and from the invoice back to the entry. A consistent naming rule, or a register that links the invoice number, the issuer and the posting reference, is enough for this. In an audit it is the difference between the requested invoice turning up within minutes and a search that takes days. Which incoming invoices are on record in NAV Online Számla (the tax authority's invoice reporting system) but never arrived as documents is what reconciling invoices with NAV Online Számla shows.
Whose responsibility: the company's or the accountant's?
Keeping the invoices is the obligation of the company as taxpayer, even when its books are kept by an outside accountant. The accountant receives copies to work from, but that does not release the company. It is worth agreeing in writing where the original electronic invoices are kept (at the company, at the accountant, or in a shared system), who has access to them, and what happens when the company changes accountant. In a good arrangement the handover does not mean forwarding the files one by one, but a complete, verifiable export.
Digitising paper invoices
An invoice received on paper can also be kept electronically, but a simple scan is not enough for that. The Számv. tv. allows a paper voucher to be replaced by an electronic copy (Számv. tv. 169. § (6)), and the conditions for making the copy are set out in chapter XII of the 321/2024. (XI. 6.) Korm. rendelet (a government decree). Under it, the copy must carry a certification clause (“Az eredeti papíralapú dokumentummal egyező”, that is, identical to the original paper document), and at a business organisation it must be authenticated with a qualified electronic seal or signature (or an advanced one based on a qualified certificate) and a time stamp.
If these conditions are not met, the scanned copy is a working copy: useful for searching and for day-to-day work, but the paper original must be kept. Our guide to digitising old documents covers the scanner settings and the paper originals in detail.
When invoices arrive by e-mail: a simple routine
Most mistakes can be avoided with a few fixed steps. Have one address to which suppliers send their invoices, rather than colleagues' personal mailboxes. Save the attachment unchanged: do not open it and save it again in another program, because the file is then no longer identical to the one received. If an XML file came with the e-mail, keep it alongside the PDF. Record the invoice number, the issuer and the date of receipt, and link the invoice to the books. Finally, make sure that nothing can be deleted by accident from where the invoices are stored, and that there is a backup or an export that will survive a change of provider.
Common mistakes
- Printing the PDF and deleting the file. An electronic invoice can only be kept electronically.
- The mailbox as the archive. E-mail does not protect a file against deletion, and sooner or later the size of the mailbox makes someone start clearing it out.
- Renamed, re-saved files. Once a program has saved the PDF again, the file is no longer identical to the one received.
- Keeping only the PDF view. If the XML arrived as well, it must be kept too.
- Anyone can delete. If everyone can delete in a shared folder, retention comes down to luck.
- No backup or export. Over eight years the software, the provider and the staff may all change; the invoices have to outlast all of them.
What lies ahead
Following the EU's ViDA package (VAT in the Digital Age), the concept drawn up by NAV and the Nemzetgazdasági Minisztérium (the Ministry for National Economy) envisages mandatory e-invoicing between domestic businesses, with the XML as the authentic content of an invoice. The concept is not final and sets no date, but the direction is clear: keeping the XML will matter more and more.
Checklist
- The original file of every invoice received electronically is there: the PDF and, where there is one, the XML.
- The files are in one place, not in colleagues' mailboxes.
- They are kept for at least eight years, and can still be opened after that time.
- You can show that a file has not changed (fingerprint, log).
- Only a few people can delete, and every deletion can be traced.
- The originals of paper invoices are kept, or a certified electronic copy (hiteles másolat) has been made of them.
- The whole collection can be exported if you change provider.
How Doxy helps
Doxy takes a SHA-256 fingerprint of every incoming document, invoices included, on arrival, and the first processing step checks it again on the stored file. On the document's page you can check with one click, at any time, that the stored file is identical to the one received (“Intact ✓”), and the check itself goes into the log. Nothing overwrites the stored file, Doxy deletes nothing by itself, and deleting takes a separate permission and sends the document to the Bin, where it can be restored for 30 days. Doxy reads e-invoice XML with its own code, and the file is kept in its original form; documents can be exported at any time.
How invoices get into Doxy (by forwarding e-mails or by upload) is described on the page showing how Doxy works; the NAV reconciliation add-on also checks them against the data in NAV Online Számla and flags an invoice that is missing or differs.
Please note: Doxy is not a qualified electronic archiving service, it puts no time stamp or qualified signature on documents, and it does not make certified electronic copies of paper invoices. In detail: Security and e-archiving.
Frequently asked questions
How long must electronic invoices be kept?
At least until the right to assess the tax becomes time-barred (Áfa tv. 179. § (1)), which is five years from the end of the year in which the tax return had to be filed (Art. 202. § (1)). A company under the számviteli törvény, however, must keep its accounting vouchers for at least eight years (Számv. tv. 169. § (2)), so in practice eight years is the period that applies.
Is it enough to keep the PDF version of an invoice?
If the invoice arrived only as a PDF, the PDF is the electronic invoice itself, and that is what must be kept, unchanged and in electronic form. If the invoice also arrived as XML, or an XML file is embedded in the PDF, the XML must be kept too, because it carries the invoice's data. In neither case does a printed copy replace the original (Áfa tv. 179. § (2)).
Can paper invoices be scanned and the originals thrown away?
They can be scanned, but a simple scan is only a working copy, and the paper original must be kept alongside it. An electronic copy replaces the original only if it is made under the 321/2024. (XI. 6.) Korm. rendelet: with a certification clause and, at a business organisation, a qualified electronic seal or signature (or an advanced one based on a qualified certificate) and a time stamp (Számv. tv. 169. § (6)).
Sources cited
- 2007. évi CXXVII. törvény az általános forgalmi adóról (Act CXXVII of 2007 on VAT): 168/A. §, 175. §, 179. §, 259. § 5. pont
- 2017. évi CL. törvény az adózás rendjéről (Act CL of 2017 on the Rules of Taxation): 78. § (3), 202. § (1)
- 2000. évi C. törvény a számvitelről (Act C of 2000 on Accounting): 169. §
- 1/2018. (VI. 29.) ITM rendelet a digitális archiválás szabályairól (the ministerial decree on the rules of digital archiving)
- 321/2024. (XI. 6.) Korm. rendelet, XII. fejezet: papíralapú dokumentum elektronikus másolata (government decree; chapter XII, the electronic copy of a paper document)
- NAV: Az elektronikus számlákról (on electronic invoices; in Hungarian)
- NAV: 18. információs füzet, a számla- és nyugtakibocsátás alapvető szabályai (information booklet 18, the basic rules of issuing invoices and receipts; in Hungarian)
- NAV: ViDA implementációs koncepció (2025) (the ViDA implementation concept; in Hungarian)
This article is for information only and is not legal or tax advice.