Archiving e-invoices and keeping records: how long, in what form and how to prove it
An e-invoice you cannot produce is as bad as one you never issued. Know how long to keep records, what to keep (the XML, not only the PDF), where to keep it and how to retrieve a year-old invoice in a minute.
5 min read
In short: keep every e-invoicein electronic form and be able toretrieve it, with its XML, on request. VAT records are generally kept forsix years (some records, such as certain real-estate documents, for longer): confirm the period that applies to you with ZATCA or your accountant. Archive theXML and the PDF, thecredit and debit notes, thesupporting documents (purchase invoices, customs documents, contracts) and thebooks. Make sure the archive isbacked up,searchable andindependent of a single device or vendor, so a change of system does not lose your history. Wameed stores invoices and enforces a six-year retention floor on the books; export your own copies as well.
During an audit, the question is simple: “Show me invoice number 40,312.” The answer should take a minute, not a week.
What must be kept
| Record | Why |
|---|---|
| Sales e-invoices (XML and PDF) | Proof of tax collected |
| Credit and debit notes | Corrections and refunds |
| Purchase invoices | Support input VAT recovery |
| Customs and import documents | Support import VAT |
| VAT returns and the working papers | Reconcile to invoices |
| Books of account | Financial records |
| Contracts, delivery notes, payment proofs | Support the transactions |
| Payroll and staff records | Labour obligations |
| Device and certificate records | Show onboarding and renewals |
For how long
VAT rules generally require records to be kept for a minimum ofsix years; some categories (for example certain real-estate transactions) require longer. Company and labour laws may also have their own periods.Confirm the period for each category with ZATCA or your accountant, and apply the longest that applies. Do not delete early to save space.
Form: electronic, readable and unaltered
E-invoices must be storedelectronically, in a way that theycan be retrieved and read, andunaltered. Practical meaning:
- Store the XML, the structured invoice that carries the data, the hash and the signature, not only a printed image.
- Store the PDF or rendering for humans.
- Store the ZATCA response (accepted, warning, rejected) with the invoice.
- Prevent editing: issued invoices are never changed; corrections are credit notes.
- Keep the chain intact so the sequence is verifiable.
A photo of a receipt on a phone is not an archive.
Where to keep it
In the POS
A compliant POS keeps your invoices and lets you search by number, date, customer or amount. Check:
- How long does the vendor keep your data?
- What happens if you stop paying?
- Can you export everything, in bulk, in the original format?
Your own copy
Do not rely on one place. Keep a second copy:
- Scheduled exports of invoices (XML and PDF) to your own storage.
- Cloud backup under your control with restricted access.
- Offline copy for long-term storage, tested for readability.
Seedata and security questions.
Retrieval
Test it: pick an invoice from 11 months ago and retrieve it, with its XML and ZATCA response. If you cannot do it quickly, fix the process.
Backups and disaster recovery
- Back up daily, automatically.
- Keep copies in two places, one off-site.
- Encrypt the backups; invoices contain personal and financial data.
- Test a restore twice a year.
- Document where things are and who can access them.
Cloud systems do their own backups, but yours is the safeguard against vendor failure. SeePOS downtime procedures.
Access and privacy
Invoices hold names, phone numbers and VAT numbers. Limit who can see them, log access, and follow the data-protection rules. Keep personal data no longer than needed for the legal purpose, then delete securely where permitted. Seecustomer data and PDPL.
The books
If you keep books in your POS or accounting system, they should be protected too: posted entries not editable, period locks, an audit log. In Wameed the books have asix-year retention floor and cannot be physically purged before then. Seeperiod locks and audit trail.
Changing systems
When you change POS or accounting vendor:
- Export all invoices (XML, PDF, responses) and booksbefore you leave.
- Verify the export: open a sample and check hashes where possible.
- Keep the old data for the retention period, in a readable form.
- Keep device records and revoke old certificates.
- Do not rely on the old vendor to keep your data after the contract ends.
Seechanging POS without breaking ZATCA.
Audit readiness
Keep a folder (digital) with:
- YourVAT registration and ZATCA correspondence.
- Yourdevice and certificate list.
- Yourretention policy.
- A sampleinvoice retrieval log.
- YourVAT return copies and reconciliations. SeeVAT return prep.
- Yourcredit note procedure.
An inspector who sees an organised archive asks fewer questions.
Mistakes to avoid
- Keeping only PDFs.
- Relying on the vendor alone.
- Deleting after two years.
- No tested restore.
- No export before leaving a vendor.
- Giving everyone access.
Frequently asked questions
How long must I keep invoices?
Generally six years under the VAT rules, and longer for some records. Confirm for your case.
Do I need the XML or is the PDF enough?
Keep the XML; it carries the structured data, hash and signature.
Can I keep invoices only with my POS vendor?
Better to keep your own copy as well.
What if I change POS?
Export everything before the contract ends and keep it for the retention period.
- #أرشفة الفواتير الإلكترونية
- #مدة حفظ الفواتير
- #حفظ سجلات الضريبة
- #نسخة احتياطية للفواتير
- #invoice archive
- #ZATCA record retention
- #e-invoice storage
Share this article
Ask about your own shop
Thirty minutes on your products, your tax setup and your hardware — not a slide deck.
Keep reading
6 min read
ZATCA compliance checklist for a new shop: registration, e-invoicing, devices and the first month
Opening a shop means licences, a bank account, stock and staff. The tax side is easy to leave until later, and expensive to fix after. Here is a practical checklist to be compliant before the first sale.
6 min read
Preparing your VAT return from your invoices: a monthly routine that makes filing a 30-minute job
The VAT return is arithmetic on invoices you already hold. Reconcile sales, purchases, credit notes and adjustments before the deadline and filing is a calm half hour; leave it to the last day and it is a crisis.
7 min read
ZATCA Phase 2: the complete guide for Saudi merchants
What Phase 2 actually requires of your till, in plain language: the XML, the cryptographic stamp, the hash chain, clearance versus reporting, and the eight things to check before your wave arrives.

