DGI E-Invoicing in Morocco 2026: Is Your E-Commerce Store Actually Ready?
In February 2026, the Director of Morocco's DGI told the CGEM publicly that the majority of Moroccan businesses are not yet ready for mandatory e-invoicing.
If you run an e-commerce store in Morocco, that statement concerns you directly. Not because you'll be among the first affected — the rollout starts with large companies and extends progressively to SMEs and micro-businesses. But because preparing at the last minute in e-commerce costs significantly more than getting ahead of it now.
Here's what changes, and five concrete questions to assess where you stand.
What the reform actually changes for e-commerce operators
Most guides on DGI e-invoicing 2026 explain the reform from a general tax perspective. What matters to an e-commerce operator is what it changes in day-to-day operations.
The reform imposes the Clearance model: every B2B invoice must be transmitted to the DGI platform, validated in real time, and receive a unique identifier before it reaches your client. Without that validation, the invoice has no legal standing.
What that means in practice:
A PDF sent by email is no longer sufficient, even with an electronic signature
The mandatory format is UBL 2.1 — a standardised XML structure, not a Word or Excel document exported as PDF
Every B2B invoice must include your client's ICE number
All your invoices must be archived for a minimum of ten years
For an e-commerce operator selling primarily B2C with cash on delivery, the immediate impact is limited. But if you have B2B clients (resellers, companies, wholesalers) or plan to, the question is relevant now.
5 questions to find out if you're ready
1. Can your e-commerce platform generate invoices in UBL 2.1 format?
This is the baseline question and for most stores in Morocco, the honest answer is no, not yet.
Shopify, WooCommerce and YouCan generate PDF invoices. That is sufficient today. It will not be once your business falls under the mandatory rollout. The question is not to panic now, but to find out whether your platform has a planned update or whether you will need an external solution connected to your billing system.
Check with your platform or developer whether an integration with the DGI platform (developed by xHub) is on the roadmap, and by when.
2. Do you have complete ICE numbers for all your B2B clients?
The ICE number (Identifiant Commun de l'Entreprise) is mandatory on every B2B electronic invoice. If you have professional clients in your database, the question is straightforward: do you have their ICE recorded correctly?
For many merchants, the answer is no. Either the ICE was never collected systematically, or it was collected incompletely or incorrectly. Fixing that data across hundreds or thousands of clients under time pressure is one of the main causes of delay in compliance projects.
Start now. It is time-consuming but simple work, and it does not require waiting for the DGI platform to be finalised.
3. Is your invoicing software on the DGI's certified solutions list?
The DGI will publish an official list of certified solutions. A solution that technically generates XML files is not necessarily compliant if it is not recognised by the DGI. A compliance setup built on an uncertified tool can still result in penalties even if the invoice looks technically correct.
If you use external accounting or invoicing software (Sage, Ciel, or a local ERP) check with your provider on their certification timeline. If you are still invoicing on Excel or directly through your e-commerce platform without dedicated software, this is the right moment to change.
4. Are your internal processes ready for real-time validation?
The Clearance model introduces a step most SMEs have never had to manage: the invoice must be validated by the DGI before it is sent to the client. That means your invoicing process must be sequential and internet-connected at every point of issue.
For an e-commerce store generating dozens or hundreds of invoices per day, this is a genuine workflow change. If your team currently creates invoices manually, in batches, or at end of day, that process will need to evolve.
This is not a reason to panic. It is a reason not to wait until the last minute to understand what it means for your team.
5. Is your archiving structured to last ten years?
The ten-year archiving obligation sounds distant. It is not, if you consider that your 2026 invoices will need to be accessible and readable until 2036 in a certified format, not just on a local hard drive that can fail.
If your invoicing data currently lives in a spreadsheet, your inbox, or only on your e-commerce platform without structured export, that is a risk to fix. A compliant electronic archiving solution, with integrity checks, timestamps, and security, needs to be in place before mandatory rollout hits your tier.
What "not yet ready" actually costs
The reform creates two types of risk for a Moroccan e-commerce operator.
The first is direct: invoices not validated by the DGI will have no legal standing. Your B2B clients will not be able to deduct VAT on purchases from you. In a market where B2B relationships are built on consistency and reliability, losing the ability to invoice correctly is a real commercial vulnerability.
The second is indirect: catching up under pressure costs significantly more than preparing in advance. A compliance audit today, when time is not a constraint, is an investment. The same work done in a rush three months before the deadline is a forced expense, at a higher price.
Where to start
The right first step is not choosing a technical solution. It is taking stock of where you actually are.
In practice, that means:
Identifying all your B2B clients and checking the completeness of their ICE data
Contacting your e-commerce platform or developer to understand their DGI roadmap
Getting your current invoicing setup audited against UBL 2.1 and Clearance requirements
Assessing your archiving solution
If you want a clear picture of what needs to be done before you are ready to connect to the DGI infrastructure, we offer a compliance audit built specifically for Moroccan e-commerce operators.
We analyse your current setup, map the gaps against DGI requirements, and give you a concrete roadmap.
Morocco's e-invoicing reform is coming regardless. The businesses that prepare now will have a real operational advantage over those that wait for the ultimatum. The window is still open.