Electronic invoicing in Morocco is becoming an obligation, rolled out gradually from 2026. Driven by the Directorate General of Taxes (DGI), the reform requires companies to issue their invoices in a structured electronic format and provides for their prior validation by a tax administration platform. This is no longer a mere modernisation: it is a change of method that will concern, in stages, every Moroccan company — B2G operations of large companies in 2026, SMEs and mid-sized companies in 2027-2028, micro-businesses after 2028. This guide reviews what electronic invoicing really is, the announced timeline, the 'clearance' model chosen, the planned penalties, and how to prepare with confidence — distinguishing what has been published from what remains to be specified.
Electronic invoicing in Morocco in 2026: what are we talking about?
Electronic invoicing does not mean sending a PDF by email, nor scanning a paper invoice. It means issuing each invoice in a structured electronic format, readable by computer systems, intended to be validated by the DGI's electronic invoicing platform. A plain PDF does not fit this logic: the structured standards cited are UBL 2.1 and UN/CEFACT CII. The Moroccan profile — list of required fields, signature terms — has not been published yet.
The platform was developed for the DGI by the company xHub; its public name and technical specification have not been published so far. It should not be confused with SIMPL, the DGI's online services portal, whose SIMPL-TVA module is used to declare and pay VAT. For the State, the reform has a twofold aim: fighting VAT fraud and making tax collection more reliable, by gaining a more direct view of transactions between businesses.
- Structured format: UBL 2.1 and UN/CEFACT CII are the standards cited (a plain PDF is not enough).
- Data: the mentions already mandatory on any invoice, including the ICE; the detailed Moroccan profile is still to be published.
- Prior validation by the DGI's electronic invoicing platform: principle announced, technical terms not published.
- Scope: operations with the public sector (B2G) first, then a gradual extension to other companies.
The announced DGI mandate timeline
The reform applies in stages, starting with the largest organisations before extending to smaller ones. The broad lines were announced in June 2026; the precise timeline, with effective dates and thresholds, must be set by a decree that has not been published so far. For any official date, refer to the DGI portal (tax.gov.ma), and see our article on the electronic invoicing timeline in Morocco to place your company (Electronic invoicing timeline in Morocco). The announced stages are as follows:
- 2026: B2G operations, for around 1,655 large companies with turnover above 200 million dirhams.
- 2027-2028: SMEs and mid-sized companies (ETI).
- After 2028: very small businesses (TPE), through simplified solutions.
The 'clearance' model: what has been announced
Morocco has announced a so-called 'clearance' model, or prior validation, comparable to those adopted by countries such as Mexico, Turkey or Saudi Arabia. In principle, an invoice is transmitted to the tax administration's platform, which checks and validates it before it takes effect: it is no longer the company alone that decides an invoice is issued. The technical terms of this circuit — exchange flows, validation responses, deadlines, handling of rejections — have not been published so far.
This logic changes the timing of invoicing. Where an invoice could once be issued and then corrected at will, it will have to be right the first time, in a structured format, in the flow of business. For the company, this requires reliable data and a tool able to produce structured invoices and then, once the specification is published, to exchange with the platform — a task no Word template or spreadsheet can perform.
Penalties and stakes: why you should not wait for the deadline
Electronic invoicing will not be a recommendation: failing to comply carries penalties and, above all, a direct tax risk for the company. Postponing preparation means exposing yourself both to that risk and to a last-minute bottleneck, at the very moment when every company in the same category will be trying to get equipped at once.
The points to keep in mind:
- Announced penalties: tax penalties, and prosecution in cases of serious fraud; no amount has been published so far.
- Disallowance of expense deductions for non-compliant invoices.
- A plain PDF is not a structured electronic invoice.
- Companies that anticipate approach the reform calmly; those who wait endure the rush.
Preparing with a Moroccan ERP: Crystal ERP
Preparing for electronic invoicing is not just about ticking a box: it is an opportunity to integrate invoicing into the rest of management rather than handling it separately. That is the approach of Crystal ERP (erp.crystalit.ma), the Moroccan SaaS ERP developed by CRYSTAL IT: quotes, orders and deliveries turn into invoices with no re-entry, and each invoice automatically feeds payment tracking and accounting. Crystal ERP checks each invoice's readiness (ICE, mandatory mentions, structure) and exports it in standard UBL 2.1 format; transmission to the DGI platform will be added once its specification is published. Available in SaaS mode, the product benefits from continuous updates — a decisive point when regulation is being specified step by step.
Developed in Rabat by a company with more than 20 years of experience, Crystal ERP comes with local support that understands the Moroccan tax context. This guide opens a series devoted to the reform: the announced timeline (Electronic invoicing timeline in Morocco), the UBL format and mandatory mentions (UBL 2.1 format for electronic invoicing in Morocco: complete guide), and SME preparation (Preparing for mandatory e-invoicing). For the precise tax terms and the timeline applicable to your company, please refer to the official DGI portal (tax.gov.ma) or your chartered accountant.
Mandatory electronic invoicing is not a threat, but a milestone to cross — and it is better to prepare early, with the right tool. Beyond simply issuing invoices, the challenge for Moroccan companies is to adopt management where invoicing is integrated, structured and ready to evolve with the DGI's electronic invoicing platform as soon as its specification is published. Crystal ERP, powered by Crystal IA, places invoicing at the heart of all-in-one management and evolves in step with the reform. To take stock of your situation and anticipate the deadline calmly, request a personalised demonstration from the CRYSTAL IT teams in Rabat, with no obligation. (For the precise timeline and tax terms, please refer to the DGI portal, tax.gov.ma, or your chartered accountant.)
The CRYSTAL IT solution on this topic
Have a project or a question? Let's talk with a CRYSTAL IT expert.
Request a demo


