SaaS Development

E-invoicing in Morocco: what is decided, what is announced, and how to prepare

Dates are circulating, often presented as final. Not all of them are. Here is what is actually decided on e-invoicing in Morocco, and what your business can do now.

E-invoicing in Morocco: what is decided, what is announced, and how to prepare

Mandatory e-invoicing in Morocco is one of the Directorate General of Taxes' (DGI) major projects. For months, timelines with precise dates for large, mid-sized and small companies have been circulating. The problem: many of these articles present as final what is only announced. This guide separates what is decided, what is announced and what remains to be confirmed, as of 24 October 2026, then explains how a business can prepare without waiting. It is useful for Moroccan companies and for foreign companies with a Moroccan entity.

What is decided

  • The legal basis exists: the e-invoicing obligation rests on Article 145, paragraph IX, of the General Tax Code, introduced by the 2018 Finance Law.
  • The DGI is leading the reform and has publicly confirmed its launch. In April 2026, its director general announced a start in 2026, beginning with large companies.
  • The model is pre-clearance, according to public presentations: the invoice is sent to a government platform, which validates it before it takes effect.
  • The formats cited are standard structured formats, UBL 2.1 and UN/CEFACT CII, in XML. A PDF sent by email is not an e-invoice under the reform.

What is announced but not yet official

The timeline most often repeated in the press and by software vendors is a phased rollout:

  • Large companies: from 2026.
  • Mid-sized companies: during 2026 according to some sources, 2027 according to others.
  • SMEs and micro-businesses: from 1 January 2027 according to the most cited sources, later according to others, with turnover thresholds that vary between sources.

These dates and thresholds depend on an implementing decree. As of this article, we found no record of its publication in the Official Bulletin: several sources report that a draft was sent to the General Secretariat of the Government in spring 2026. The penalty amounts circulating do not, to our knowledge, rest on a published text either.

Why prepare anyway

  • Technical lead times are real: adapting software, cleaning customer data and training the accounts team takes weeks or months.
  • Your customers and suppliers will move first: a large customer may ask for invoices in a usable format, and you will need to receive e-invoices from suppliers.
  • The benefits exist regardless: no more manual entry, reliable numbering, automatic reminders, better cash tracking.
  • Year-end is busy: preparing now avoids a rushed scramble when the decree lands.

What your business can do now

  1. Inventory your invoicing: which tool (Excel, Word, software, ERP), how many invoices a month, who issues them, how they are archived.
  2. Clean your data: ICE, tax ID and address for every customer, product and service catalogue, VAT rates.
  3. Ask your vendor: will the software export UBL or CII and connect to the DGI platform? On what timeline?
  4. Stop hand-made invoices in Word or Excel, which cannot produce a structured format.
  5. Plan for receiving: how will supplier e-invoices flow into your accounting?
  6. Name an owner for the topic, working with your accountant.

Our DGI-ready invoicing software checklist details what to check with your vendor or provider.

Three scenarios for your tool

  • Off-the-shelf software: the vendor will update the product. Your job is to check its commitment and timeline and keep your data clean.
  • An ERP such as Odoo: the Moroccan localisation and e-invoicing modules will need updating or extending by your integrator.
  • Custom business software that issues your invoices: you have to evolve it yourself (XML generation, platform connection, archiving). See building or adapting compliant invoicing software.

Mistakes to avoid

  • Buying in a rush a tool that promises "guaranteed compliance" before final specifications are published.
  • Confusing a PDF invoice with an e-invoice: a PDF is not a structured format.
  • Neglecting incoming invoices, which will affect even companies whose issuing obligation comes later.
  • Forgetting archiving: storing e-invoices will need to be organised and secured.

We can help

We build custom business and invoicing software and evolve existing tools: structured invoice generation, connections to external platforms, archiving and dashboards. See our SaaS and software development service. If your invoicing runs on an in-house tool, let's talk: a quick review will tell you what needs to change.

Frequently asked questions

Is e-invoicing mandatory in Morocco?

The principle is written into Article 145-IX of the General Tax Code. The application dates by company category and the thresholds are to be set by an implementing decree which, to our knowledge, was not published as of 24 October 2026.

When will SMEs be covered?

The most cited timeline targets 1 January 2027 for SMEs, but other sources mention 2027 to 2028. Only the decree will set the final date and thresholds.

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

No. The reform covers invoices in a structured format (XML, UBL 2.1 or CII) sent through the government platform, not plain PDF files.

What if my software has no plan?

Ask your vendor for its timeline. For custom tools or vendors not following the reform, plan an upgrade or migration, ideally before the decree is published.