Key points
- A PDF invoice sent by e-mail is not an e-invoice: an e-invoice is a structured file (XML) validated by the DGI platform.
- Morocco has chosen a prior clearance model: the administration checks the invoice before it reaches the customer.
- The rollout happens in waves, from large companies to SMEs. The implementing decree setting the final timeline is still awaited.
- Get ready now: ICE for all your customers, continuous numbering, complete mandatory details and software that can produce XML.
What is an e-invoice?
An e-invoice is not a scanned invoice or a PDF attached to an e-mail. It is an invoice issued, sent and received as structured data, in a format software can read automatically: number, date, seller and customer ICE, lines, VAT rates and amounts, total.
In the Moroccan reform, the invoice goes through the platform of the Direction générale des impôts (DGI), the tax administration, which checks and validates it before it counts as issued. The administration thus has invoicing data in real time, which should make VAT checks easier and, over time, help prepare tax returns.
Who is affected, and when?
The rollout happens in waves, starting with the largest companies. The timeline below is the one most widely announced; it still depends on the implementing decree being published, and sources do not all agree on the thresholds and dates of the last waves.
- 2026 · announcedLarge companies
First wave announced, for large companies subject to corporate tax (IS). When it takes effect depends on the implementing decree.
- Mid-2026 · announcedMedium-sized companies
Second wave announced, with the same caveat.
- 2027 and later · announcedSMEs and very small businesses
Most cited date: January 2027. Some sources mention a longer timeline for the smallest businesses.
These are the publicly announced dates: they do not say whether a wave is already in force. Until the implementing decree is published, none of them is final. Check the current status on the DGI website: only its texts and the Bulletin officiel are authoritative.
Auto-entrepreneurs and very small businesses could be affected later, under terms still to be defined. In any case, your VAT-registered customers will sooner or later ask you for invoices they can load into their own systems.
The prior clearance model
According to information released by the DGI, Morocco has chosen a so-called prior clearance model. In practice, an invoice follows this path:
- 1. IssueYour software produces the invoice in a structured format (XML).
- 2. CheckThe DGI platform checks the invoice: identifiers, amounts, format.
- 3. ValidationThe validated invoice receives its identifier. Without validation, it has no tax value.
- 4. ReceiptThe customer receives the validated invoice and can load it straight into their own software.
- 5. ArchivingThe invoice is kept electronically for the legal retention period.
This model is already used in other countries (Mexico, Turkey, Egypt, Saudi Arabia…). It means your invoicing software must be able to talk to the platform, directly or through a service provider.
Which file format?
The final technical specifications are to be published by the DGI. The most cited formats are international XML standards, in particular UBL 2.1 (Universal Business Language, an OASIS standard) and CII (Cross Industry Invoice, a UN/CEFACT standard), used in many countries.
A standard format has one advantage: software that can already produce a complete UBL 2.1 invoice will usually only need adjustments (Morocco-specific fields, signature, platform connection) once the specifications are published.
What you can do right now
Without waiting for the decree, several things can be done today. They will help you even before the obligation, because they reduce disputes and late payments.
- Collect the ICE of all your business customers and check it has 15 digits.
- Check your own identifiers: ICE, IF, RC, business tax, RIB.
- Keep continuous numbering, with no gaps or duplicates: correct with a credit note, never delete.
- Complete the mandatory details on every invoice (see our checklist).
- Move off Word and Excel to invoicing software that can produce structured files.
- Organise the archiving of your invoices for the legal retention period.
This guide is general information, not legal or tax advice. The rules change: check your situation with your accountant and the official sources (DGI, CNSS, Bulletin officiel).



How IXO Gestion gets you ready
IXO Gestion was designed for this reform:
We do not claim to be “certified”: no certification can exist before the rules are published. What we do commit to is following the texts and delivering the update to our customers.