E-invoicing: the 2026-2027 timeline explainedRead the guide

Type at least 2 letters.

Tax

E-invoicing in Morocco: the 2026-2027 guide

Morocco is rolling out e-invoicing in waves. What changes, who is affected, when, and what you can do today so you are not caught out.

Updated 4 min read The IXO Solutions team

Calculator on printed charts next to a laptop

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.

  1. 2026 · announcedLarge companies

    First wave announced, for large companies subject to corporate tax (IS). When it takes effect depends on the implementing decree.

  2. Mid-2026 · announcedMedium-sized companies

    Second wave announced, with the same caveat.

  3. 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. 1. IssueYour software produces the invoice in a structured format (XML).
  2. 2. CheckThe DGI platform checks the invoice: identifiers, amounts, format.
  3. 3. ValidationThe validated invoice receives its identifier. Without validation, it has no tax value.
  4. 4. ReceiptThe customer receives the validated invoice and can load it straight into their own software.
  5. 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.

How IXO Gestion gets you ready

IXO Gestion was designed for this reform:

  • Every invoice and credit note already exports to XML UBL 2.1, with the seller’s and customer’s ICE, IF and RC.
  • The ICE is checked (15 digits) and a warning shows while an identifier is missing.
  • An issued invoice is locked and the numbering stays continuous.
  • The connection to the DGI platform will be added by update as soon as the official specifications are published. It is included in the subscription and in the maintenance contract.

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.

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).

FAQ

Frequently asked questions

Is a PDF invoice sent by e-mail an e-invoice?

No. Under the reform, an e-invoice is a structured file (XML) validated by the DGI platform. A PDF is still a document people can read, but not an e-invoice in the sense of the reform.

When will e-invoicing become mandatory for SMEs?

The most cited date for SMEs and very small businesses is January 2027, but the final timeline depends on the implementing decree, which has not been published yet. Some sources mention a longer timeline for the smallest businesses.

Do I need to change software?

If you invoice with Word, Excel or software that can only produce PDFs, yes: you will need a tool that can generate structured invoices and connect to the platform, directly or through a provider.

Will IXO Gestion be compatible?

IXO Gestion already exports invoices and credit notes to XML UBL 2.1. The connection to the DGI platform will come by update as soon as the specifications are published, included in the subscription and maintenance.

Get ready for e-invoicing now.

A 30-minute demo to see the UBL 2.1 export on your own invoices.

The software is in French. Demos and support in French or Arabic.

A question? Get a call back

Get a call back

Leave your number: we will call you back when it suits you.

Let’s talk about your project

The demo is free, at our office in Casablanca or remotely. Payment by bank transfer or cheque, as agreed with you.

Book a free demo