
Automation7 min
Electronic archiving of invoices in Morocco: retention period, rules and best practices
How long to keep invoices, what the law says about electronic writing, and how to organise the archiving of supplier and customer invoices with a document management system.
Supplier invoices, customer invoices, statements, purchase orders: these documents pile up quickly, often in binders or e-mail folders. Archiving them properly means being able to find them in seconds during an inspection, an audit or a dispute.
How long should invoices be kept?
Under the Commercial Code, accounting documents and supporting documents (invoices, statements, journals) are kept for ten years. For other documents (contracts, staff files, tax documents), the periods depend on the applicable texts: draw up a retention schedule with your accountant or adviser.
What does the law say about electronic documents?
Law No. 53-05 on the electronic exchange of legal data recognises electronic writing, provided its author can be identified and its integrity is guaranteed. Law No. 43-20 covers electronic signatures and time-stamping, among other things. If your invoices contain personal data, Law No. 09-08 also applies.
The value of a digital copy depends on the type of document and its use: some paper originals must still be kept. Have your archiving policy confirmed by your accountant or a legal adviser before destroying any paper.
How to organise invoice archiving
- Choose a filing plan: by year, by supplier or customer, by type of document.
- Name each file uniformly, for example with the date, the third party and the number.
- Import each invoice as soon as it is received: scanner, e-mail or upload.
- Decide who can view, edit or delete invoices.
- Check regularly that the filing plan is followed.
What a system like ArchiDoc brings
ArchiDoc receives invoices from a scanner, an e-mail or an upload, then applies OCR, AI classification and indexing. You find an invoice by keyword in its content, or by asking the AI assistant a question.
- Role-based access: only authorised people view the invoices.
- Data encryption and an audit log for each document.
- Use on computer and mobile (iOS and Android).
An invoice filed as soon as it arrives is an invoice you find in seconds.
Where to start
Start with a frequently used category, for example this year’s supplier invoices, then extend gradually. For the general framework, read our guide on electronic archiving in Morocco and the one on DMS and shared folders, or ask for an ArchiDoc demonstration.
This article provides general information, up to date as of 13 November 2026; it is neither legal nor accounting advice.
Got a project in mind?
Let’s talk about your brand, your website or your visibility.
Get in touch Discover the product: ArchiDoc





