Skip to content

Electronic invoice archiving in Poland: how long to keep invoices and in what form

B2Bnetwork team · · 7 min

Regulations

In brief

In Poland, invoices must be kept until the tax liability becomes time-barred, usually 5 years from the end of the year in which the tax payment deadline fell. Invoices sent to KSeF, Poland's national e-invoicing system, are stored by KSeF itself for 10 years from the end of the year of issue. Invoices outside KSeF (emailed PDFs, paper, foreign invoices) the company keeps itself, ensuring authenticity of origin, integrity of content and legibility, in Poland or abroad with online access for the tax authorities.

How long: the retention table

The retention period comes from three statutes at once, and the same document can fall under different periods. The longest one wins.

DocumentHow long to keep itLegal basis
invoices and VAT recordsuntil the tax liability is time-barredArticles 112 and 112a of the VAT Act
invoices in KSeF10 years from the end of the year of issue, in KSeFArticle 112aa(1) of the VAT Act
tax books and related documentsuntil the tax liability is time-barredArticle 86 § 1 of the Tax Ordinance
accounting booksat least 5 yearsArticle 74(2)(1) of the Accounting Act
accounting records for loans, credit, commercial contracts, claims5 years from the start of the year after the matter was closed or settledArticle 74(2)(4) of the Accounting Act
complaint and warranty documents1 year after the warranty expires or the complaint is settledArticle 74(2)(6) of the Accounting Act
approved annual financial statementsat least 5 years from the start of the year after approvalArticle 74(1) of the Accounting Act

The tax limitation period is 5 years, counted from the end of the calendar year in which the tax payment deadline fell (Article 70 § 1 of the Tax Ordinance). An invoice from December 2026 relates to VAT due in January 2027, so the period runs from the end of 2027 to the end of 2032. The period can also be extended, for example when it is suspended. That is why an archive should store a "keep at least until" date that accounting can extend, rather than a fixed deletion date.

KSeF changes the rules, but not all of them

Since February 1, 2026, structured invoices, as well as invoices issued in offline and emergency modes once sent to KSeF, are stored in KSeF for 10 years from the end of the year of issue. Articles 112 and 112a of the VAT Act do not apply to them. The Accounting Act has a similar provision for accounting records (Article 73a). If the 10 years in KSeF end before the tax limitation period or the Accounting Act period, the company keeps these documents itself until the longer period ends.

In practice, three groups of documents still need a company archive:

  1. Invoices outside KSeF. Invoices from foreign suppliers, consumer invoices issued outside KSeF, bills and notes, customs documents.
  2. Supporting documents. Contracts, purchase orders, acceptance reports, complaint correspondence: everything that justifies a cost.
  3. Working copies of KSeF invoices. KSeF does not replace the company archive for day-to-day work. The ERP and document workflow keep the XML file, the KSeF number and the official receipt (UPO) with the document anyway, because accountants, auditors and the legal team need them.

How to receive and post cost invoices from KSeF is covered in KSeF and purchase invoices.

In what form: authenticity, integrity, legibility

The VAT Act requires invoices to be stored by settlement period, in a way that makes them easy to find and ensures authenticity of origin, integrity of content and legibility (Article 112a(1)). For invoices in KSeF, the system ensures this. For the rest, the company decides how it does it (Article 106m(1a)). That can be a reliable audit trail between the invoice and the supply, a qualified electronic signature, or EDI under an agreement that guarantees authenticity and integrity.

In system terms, this means a few concrete requirements:

Statutory requirementWhat the system does
authenticity of originrecords where the file came from: sender address, date received, message ID
integrity of contentkeeps the original file unchanged together with its hash; every change creates a new version
legibilitystores a format that will still open in 10 years, such as PDF/A or XML with its schema
easy retrievalindexes documents by period, counterparty, number and KSeF number
access for the tax officeallows invoices to be made available and downloaded without delay (Article 112a(4))

The Accounting Act adds requirements for books kept in software: protection against unauthorized changes, regular backups and durable records for the whole retention period (Article 71). How to set up backups and restores is covered in Cloud backups.

Where the files may live

A company based in Poland keeps its invoices in Poland. The exception: electronic invoices may be kept abroad if the tax authorities have online access to them by electronic means (Article 112a(2) and (3)). A cloud archive outside Poland is therefore allowed, but you need to be able to show how the tax office gets to the invoices without visiting a server room.

Accounting records may also be kept by external companies that provide document storage services (Article 73(4) of the Accounting Act). The contract with such a provider should say how quickly you get a document on request and what happens to the data when the contract ends.

Paper accounting records may be transferred to an electronic medium that keeps their content in a durable and unchanged form, but this does not apply to, among others, documents transferring rights to real estate and significant contracts (Article 73(2) of the Accounting Act). Before destroying paper invoice originals after scanning, write down a scanning procedure and agree it with a tax advisor, because VAT rules assess integrity and legibility over the whole retention period.

An archive that survives a tax audit

A good archive is not a folder on a network drive but a few rules that work on their own:

  1. One entry point. Every document, whether from KSeF, email, a supplier portal or a scanner, enters one queue with metadata.
  2. An untouchable original. The source file is read-only, and descriptions, coding and comments are stored as separate data.
  3. Retention period as a field. Calculated from the document type, with the option to extend it, for example during a dispute.
  4. Deletion after the period, with approval. The list of documents due for deletion goes to accounting, and every deletion leaves a log entry.
  5. A restore test. Once a year, random documents from previous years are restored from backup and opened.

The same rules help with personnel records, which have their own periods and requirements, described in Electronic personnel files. The Polish JPK files that link invoices with the books are covered in JPK_VAT and JPK_CIT: what data your ERP must deliver.

At DYNAMINDS Labs, cost invoices from KSeF and the invoices@ mailbox are coded by the Cost accountant AI Worker: it proposes the account, cost center and VAT treatment, and the proposal with its rationale goes to an accountant for approval. A single document queue assigned to client and period is shown in the project on automating settlements in an accounting firm.

Questions and answers

Do I have to store invoices that are in KSeF?

No. For 10 years from the end of the year of issue KSeF stores them, and Articles 112 and 112a of the VAT Act do not apply. If the tax limitation period runs longer, you keep them yourself after those 10 years. In practice it still pays to keep the XML and KSeF number in the ERP, because for daily work and disputes you do not want to depend on downloading from KSeF.

How long do I keep a PDF invoice received by email?

Until the tax liability is time-barred, usually 5 years from the end of the year in which the VAT payment deadline for that invoice's period fell. If the invoice documents a contract, a loan or a claim, the Accounting Act may require a longer period. Keep the original file with the date received and the sender, not a printout.

Can I keep my invoice archive in a cloud outside Poland?

Yes, if the invoices are electronic and the tax authorities have online access to them by electronic means (Article 112a(3) of the VAT Act). Where invoices contain personal data, the GDPR also applies, so a transfer outside the European Economic Area needs a basis under Chapter V of the GDPR.

When can I delete old invoices?

When the longest of these periods has passed: the tax limitation period, the Accounting Act period for that type of record, and any period resulting from contracts or disputes. Run deletion once a year, on a list approved by accounting, with a log of what was deleted and when.

What it looks like in a project

Preparing your systems for an audit? Talk to an engineer.

Let's talk

Read more: Regulations

All in Regulations →