ERP & DGI E-Invoicing7 min read

Electronic Invoicing in Morocco in 2026: Complete Guide (DGI, ERP, Odoo)

Complete 2026 guide to mandatory electronic invoicing in Morocco under CGI Art. 145-IX: DGI phased rollout, structured formats, Odoo l10n_ma readiness, and MOWAKABA funding.

iBrahim Bouraye — Founder & Lead IT Architect · NETREGIA Casablanca
iBrahim BourayeFounder & Lead IT Architect · NETREGIA Casablanca

Direct Answer · Executive Summary

Mandatory electronic invoicing in Morocco begins phasing in from 2026 under CGI Article 145-IX, starting with large enterprises before extending to SMEs and micro-businesses. Even before your emission wave, your accounting team must receive and compliantly archive structured e-invoices from large partners. Using a localised ERP like Odoo 17/18 (PEPPOL plus l10n_ma) simplifies compliance.

Key Takeaways

  • Under CGI Article 145-IX, DGI rolls out mandatory e-invoicing in phases starting with large enterprises in 2026, followed by SMEs and micro-businesses.
  • SMEs must prepare early to receive, validate, and legally archive structured e-invoices from compliant large suppliers and enterprise customers.
  • Compliant systems require structured EDI/PEPPOL data—not emailed PDFs—paired with qualified electronic signatures, audit-proof archiving, and DGI API connectors.
  • Odoo 17/18 natively supports PEPPOL and Morocco's l10n_ma module (CGNC, VAT, ICE/IF/RC), with MOWAKABA grants available to help fund ERP upgrades.
Table of Contents (6)

Electronic invoicing is becoming mandatory in Morocco in phased waves starting in 2026. Led by Morocco's General Tax Directorate (DGI) under Article 145-IX of the General Tax Code (CGI), this reform transforms how Moroccan businesses issue, receive, and archive invoices. This guide explains the schedule, concrete obligations, and what your ERP (Odoo, SAP, Sage) must guarantee to stay compliant.

In short: electronic invoicing rolls out in Morocco starting in 2026—large enterprises first, then SMEs. Even outside the first wave, prepare now to receive electronic invoices from your large clients and suppliers. A localised ERP (such as Odoo with its Moroccan l10n_ma module) is the simplest foundation for issuing structured, digitally signed, and compliantly archived invoices matching DGI requirements.

What Is Electronic Invoicing in Morocco?

Electronic invoicing replaces paper bills with a structured invoice issued, transmitted, and archived electronically in an interoperable format compatible with the tax administration's platform. In practice, a compliant Moroccan e-invoice must carry every mandatory legal mention of a standard invoice (seller and buyer identification, ICE, IF, RC, business tax ID, VAT, dates, quantities, and unit prices) while incorporating electronic signature and compliant archiving mechanisms.

CGI Article 145-IX establishes the legal basis for this mandate, and the DGI oversees deployment of the exchange platform and technical specifications. For businesses, the stakes are not purely regulatory: this is also an opportunity to modernise billing cycles, bank reconciliation, and cash-flow visibility.

DGI 2026 Schedule: Who Is Affected and When?

In spring 2026, the DGI confirmed a phased deployment of mandatory electronic invoicing:

Phase 1 — Large enterprises, starting in 2026. Phase 2 — SMEs, in a second stage (final modalities and cutoff dates to be specified by the tax administration). Phase 3 — Micro-enterprises and self-employed entrepreneurs, in the final stage.

One detail frequently overlooked: even if your business is not yet in a mandatory issuing wave, you will very soon need to receive and archive electronic invoices whenever your suppliers or major buyers are already compliant large enterprises. Preparation therefore cannot wait until your specific statutory deadline.

Because full DGI platform technical specifications (payload schema and APIs) continue to be published progressively, Moroccan integrators are engineering connectors ahead of cutover—making a local partner tracking regulatory updates essential.

Why Prepare Right Now (Even as an SME)

Three reasons not to wait:

1. You will receive electronic invoices before issuing them. Large enterprise buyers and key suppliers transition first; your accounting department must be able to ingest and archive those documents cleanly.

2. Compliance starts inside the ERP. Accurate legal identifiers (ICE, IF, RC, business tax ID), exact VAT calculations, and sequential invoice numbering are fixed at the source—not during year-end closing.

3. Remediation costs rise the longer you delay. A business already running a localised ERP upgrades at modest cost; a company still invoicing manually faces an urgent, full-scale rebuild.

What Your ERP Must Guarantee for Electronic Invoicing

To issue and receive compliant electronic invoices, your billing system (ERP or accounting software) must cover four technical requirements:

1. Structured invoices. Generation of an interoperable data file (EDI/PEPPOL style), not merely a flat PDF.

2. Electronic signature. Cryptographic issuer authentication and document integrity.

3. Compliant archiving. Tamper-evident long-term storage built to withstand tax audits.

4. DGI interoperability. Capability to exchange documents with the tax authority's platform via an integrator-maintained connector once specifications publish.

If your billing still depends on Word, Excel, or non-localised software, achieving compliance requires an implementation project (typically an ERP rollout)—which makes choosing the right platform and integrator strategic.

Odoo and Electronic Invoicing in Morocco

Odoo is particularly well positioned for this reform. Odoo 17 and 18 natively embed the PEPPOL framework (the European electronic invoicing standard), and the Moroccan localisation module l10n_ma manages the CGNC chart of accounts, Moroccan VAT, and mandatory statutory mentions (ICE, IF, RC, business tax ID). Local Moroccan integrators develop and maintain DGI platform connectors aligned with the administration's technical specifications.

In other words, a company running localised Odoo starts with a decisive head start: its accounting and tax core is already valid, leaving only connector activation and structured workflows to configure. See our 2026 comparison of the best ERPs in Morocco and our Odoo ERP & DGI e-invoicing solutions page.

How to Prepare: The 6-Step Method

  1. Audit your current invoicing. Verify mandatory tax fields (ICE, IF, RC, business tax ID), invoice numbering continuity, VAT treatments, and archiving practices.
  2. Evaluate your existing software. Check whether your ERP or accounting package includes Moroccan localisation (CGNC, VAT) and can produce structured invoice files.
  3. Select a compliant ERP if needed. For SMEs and manufacturers, localised Odoo generally delivers the strongest cost-to-coverage ratio.
  4. Partner with a local integrator. Choose a team tracking DGI technical specifications to keep your clearance connector continuously compliant.
  5. Train your internal teams. Accounting, sales, and purchasing staff must all understand the updated billing and validation flows.
  6. Follow the DGI rollout schedule. Schedule your migration ahead of your mandatory compliance wave rather than scrambling at the deadline.
Frequently Asked Questions

Practical Answers for Decision-Makers

When will electronic invoicing become mandatory for my SME in Morocco?

The DGI is rolling out the reform in waves starting in 2026: large enterprises first, followed by SMEs, and finally micro-enterprises and self-employed professionals. Exact cutover dates per tier are set by the tax administration, so monitor official DGI announcements closely.

Am I affected even if my company is not in the first wave?

Yes, in practice: you will have to receive and archive electronic invoices as soon as your large enterprise clients or suppliers become compliant, well before your own mandatory issuing deadline.

Is Odoo compatible with Moroccan electronic invoicing?

Yes. Odoo 17 and 18 natively support PEPPOL, and the l10n_ma module covers Moroccan localisation (CGNC, VAT, and ICE/IF/RC tax mentions). Connectors to the DGI platform are provided by local integrators as official specifications publish.

What is a structured electronic invoice?

It is an interoperable data file (EDI/PEPPOL format) containing all mandatory invoice fields, electronically signed and archived in a compliant way—not a plain PDF sent by email.

What are the risks if I fail to prepare?

Beyond statutory penalties for in-scope taxpayers, the immediate risk is operational: inability to process invoices from major enterprise partners, an expensive emergency billing overhaul, and heightened exposure during a tax audit.

How much does e-invoicing compliance (ERP + connector) cost?

For an SME already running a localised ERP, the cost remains modest (enabling structured flows and the DGI connector). Without an ERP, plan an implementation project ranging from around MAD 30,000 to over MAD 600,000 depending on scope, with public co-funding options available such as the MOWAKABA support program.

Dedicated Enterprise Solution

Ready to deploy: Odoo ERP Integration & DGI 2026 E-Invoicing

Our Casablanca engineering team delivers an actionable technical audit, clear architecture roadmap, and contractual ~5 min SLA response.

iBrahim Bouraye — Founder & Lead IT Architect · NETREGIA Casablanca
About the Author

iBrahim Bouraye

Founder & Lead IT Architect · NETREGIA Casablanca

Founder and Principal Systems Architect at NETREGIA in Casablanca with 18+ years of field experience designing Odoo ERP deployments, DGI 2026 e-invoicing pipelines, Multi-WAN high-availability networks, and Zero Trust security for Moroccan enterprises.

Schedule a technical consultation
CallWhatsApp24h Audit