
Who this is for: finance managers, business owners, and compliance leads at SMEs and foreign-owned companies operating in Morocco who need to know when their company must switch to electronic invoicing, what the technical requirements are, and what happens if they miss the deadline.
Key Takeaways
- E-invoicing in Morocco becomes mandatory in phases starting in 2026, under Article 145 of the Code Général des Impôts (CGI), reinforced by the Loi de Finances 2026.
- Large taxpayers move first in 2026, medium-sized companies follow during 2026, and SMEs and very small businesses are folded in during 2027-2028.
- Morocco uses a clearance model: the Direction Générale des Impôts (DGI) must validate each invoice through its SIMPL platform before it is legally valid.
- Invoices must use the UBL 2.1 XML format or UN/CEFACT CII, carry the buyer’s ICE (Identifiant Commun de l’Entreprise), and be digitally signed.
- Non-compliant invoices carry a fine of 500 MAD each, capped at 50,000 MAD per year — and from 2027, they also lose the right to a VAT deduction.
If your company issues invoices in Morocco, e-invoicing in Morocco is no longer optional — it is a phased legal mandate rolling out between 2026 and 2028 under the DGI’s new electronic invoicing system. The core answer is this: large taxpayers must comply from 2026, medium-sized companies follow within the same year, and SMEs and very small businesses (TPE) are brought in during 2027-2028. This guide explains exactly when your company must comply, what the DGI’s clearance model requires technically, and what it costs to get it wrong.
What Is E-Invoicing Under Morocco’s DGI Mandate?
E-invoicing in Morocco is a legal requirement to issue invoices as structured electronic documents that the tax authority validates before they become legally valid, replacing PDF or paper invoices for companies within scope. It is administered by the Direction Générale des Impôts (DGI), Morocco’s General Tax Directorate, under the legal basis of Article 145 of the Code Général des Impôts (CGI).
This is not simply “emailing a PDF instead of printing an invoice.” Morocco has adopted a clearance model, the same regulatory approach used in Saudi Arabia, Turkey, and Mexico. Under this model, an invoice does not become legally valid the moment your accounting software creates it — it becomes valid only after the DGI validates it through the government’s SIMPL platform. Practically, this means your invoicing software (or your ERP) needs to talk directly to a government system before a sale can be documented in a way that survives an audit.
The mandate applies to companies subject to corporate tax (Impôt sur les Sociétés, IS) and to certain taxpayers under the Net Profit Regime (Régime du Bénéfice Net Réel, BNR). It covers B2B transactions first, with B2C flows added in a later phase.
Who Must Comply, and When
The DGI is rolling out e-invoicing in three broad waves rather than forcing every company to switch on the same date. Company size and tax bracket determine which wave applies.
Table 1: Morocco’s E-Invoicing Rollout by Company Category — this table shows which companies must comply in each phase and the practical deadline pressure each group faces.
| Phase | Company category | Compliance window | What this means in practice |
|---|---|---|---|
| 1 | Large taxpayers (grandes entreprises) | 2026 | First to connect to the DGI’s clearance system; highest scrutiny |
| 2 | Medium-sized companies | During 2026 | Follows large taxpayers within the same rollout year |
| 3 | SMEs and very small businesses (TPE) | 2027-2028 | Generalized rollout; Certified Service Providers expected to help smaller firms connect |
If you are a foreign-owned SME or a growing local company, your comfortable-sounding “2027-2028” window can close faster than it looks. Software selection, staff training, and a test-and-fix cycle with your accountant typically take several months — starting that process the year your obligation begins is cutting it close.
How the DGI’s Clearance Model Works
Under the clearance model, invoice issuance is a four-step exchange between your company and the DGI, not a one-way document you create and send.
- Generate the invoice in a structured format (UBL 2.1 or CII) from your accounting software or ERP.
- Transmit it to the DGI’s SIMPL platform for validation before it reaches your customer.
- Receive DGI validation — the invoice is checked, digitally signed, and returned with a legal status.
- Deliver the validated invoice to the buyer, who can rely on it for their own VAT deduction.
Under Morocco’s clearance model, an invoice is not legally valid until the DGI validates it in real time through the SIMPL platform — a fundamental shift from the previous system, where a company issued an invoice first and only faced scrutiny later, during a tax audit. This changes how finance teams think about invoicing: it becomes a real-time compliance event, not a back-office task you can correct after the fact.
Technical Requirements: Format, ICE, and Digital Signature
Three technical requirements sit underneath the clearance model, and all three need to be handled correctly before an invoice can be validated.
Structured Format: UBL 2.1 or CII
Invoices must be issued as structured XML documents in Universal Business Language (UBL) 2.1 or UN/CEFACT Cross-Industry Invoice (CII) format — not as a scanned PDF or a Word document converted to PDF. Most modern accounting and ERP platforms can generate one of these two formats, but older or heavily customized systems in Morocco often cannot without an add-on module.
Mandatory ICE on B2B Invoices
Every B2B invoice must carry the buyer’s Identifiant Commun de l’Entreprise (ICE), Morocco’s unique business identification number. Missing or incorrect ICE data is one of the most common causes of invoice rejection during DGI validation, according to guidance from e-invoicing compliance vendors tracking the rollout.
Digital Signature
Each invoice must be digitally signed for authentication before or during DGI validation, confirming the document has not been altered after the tax authority approved it.
Penalties for Non-Compliance
The DGI has attached two separate penalties to non-compliant invoicing, and they apply on different timelines.
- Immediate fine: 500 MAD per non-compliant invoice, capped at 50,000 MAD per year.
- From 2027, loss of VAT deduction: invoices that do not go through DGI validation will no longer support a VAT input deduction for the buyer.
Non-compliant invoices carry a fine of 500 MAD each, capped at 50,000 MAD per year — but from 2027, the larger cost is losing the right to deduct VAT on those invoices altogether. For a company processing hundreds of B2B invoices a month, a blocked VAT deduction is a bigger financial hit than the capped fine, since it directly increases the real cost of every purchase your business makes from a non-compliant supplier.
E-Invoicing vs. Traditional Invoicing in Morocco
Table 2: E-Invoicing vs. Traditional Invoicing in Morocco — this table compares how a traditional PDF/paper invoice differs from a DGI-validated e-invoice on the points that matter most to a finance team.
| Point of comparison | Traditional invoicing (PDF/paper) | E-invoicing under the DGI mandate |
|---|---|---|
| Legal validity | Valid on issuance | Valid only after DGI clearance |
| Format | Free-form PDF, Word, or paper | Structured UBL 2.1 or CII XML |
| Tax authority involvement | Reviewed later, during an audit | Reviewed in real time, before delivery |
| VAT deduction risk | Low, if documentation is otherwise correct | Blocked from 2027 if not DGI-validated |
| Buyer identification | Often informal | ICE mandatory on every B2B invoice |
How to Prepare: A Compliance Checklist
Use this checklist to move from “aware of the mandate” to “ready for your compliance date”:
- Identify your phase — confirm whether your company falls into the large-taxpayer, medium-sized, or SME/TPE category based on your IS bracket, and note the applicable window from Table 1.
- Confirm your ICE is active and correctly registered with the DGI, since a bad ICE is a common cause of invoice rejection.
- Audit your invoicing software or ERP for UBL 2.1 or CII output capability, or budget for an add-on module.
- Test the transmission and validation flow with your accountant or a compliance provider before your mandatory date arrives.
- Train your accounting and sales teams on the new invoice workflow, since a validated invoice can no longer be edited after the fact the way a PDF could.
- Set an internal deadline several months ahead of your official DGI compliance date to leave room for testing and fixes.
What is e-invoicing in Morocco?
E-invoicing in Morocco is the DGI’s mandatory system requiring companies to issue invoices as structured electronic documents (UBL 2.1 or CII format) that the tax authority validates in real time through its SIMPL platform before the invoice becomes legally valid, replacing free-form PDF or paper invoices.
When does e-invoicing become mandatory in Morocco?
Large taxpayers must comply starting in 2026, medium-sized companies follow during 2026, and SMEs and very small businesses are brought into the mandate during 2027-2028, under the legal basis of Article 145 of the CGI and the Loi de Finances 2026.
What happens if my company doesn’t comply with Morocco’s e-invoicing mandate?
Non-compliant invoices carry a fine of 500 MAD each, capped at 50,000 MAD per year. From 2027, non-compliant invoices also lose their VAT deduction eligibility, which raises the real cost of any purchase documented that way.
Do small businesses need to comply with e-invoicing in Morocco?
Yes, but later than large companies. SMEs and very small businesses (TPE) are generalized into the mandate during 2027-2028, giving smaller companies more time to select software and test their compliance process than large taxpayers, who start in 2026.
Conclusion
E-invoicing in Morocco is not a future proposal — it is a phased legal mandate already underway, with large taxpayers required to comply from 2026, medium-sized companies during 2026, and SMEs following in 2027-2028. Getting the technical pieces right — UBL 2.1 or CII formatting, a correct ICE on every B2B invoice, and a tested connection to the DGI’s SIMPL clearance platform — before your mandatory date arrives is what separates a smooth transition from a scramble that risks fines or blocked VAT deductions. If you are not yet sure which phase applies to your company or whether your current invoicing software can meet the format requirements, that is the first question to get answered, well before your compliance date is on the calendar.

Brahim Rami | Member of institute of chartered accountants in Morocco
He is a CPA and tax advisor, founder of NeoExpertise.net, a Legal and Tax firm helping foreign companies with business setup, due diligence, payroll, and tax compliance in Morocco and Africa.




