Electronic invoicing becomes mandatory in Morocco from 2026, transforming tax management. This comprehensive guide details the DGI clearance model, timeline, technical requirements, and impact for Moroccan startups and SMEs. Anticipate this major reform for optimal compliance.
In Brief: Electronic Invoicing in Morocco by 2026
Electronic invoicing is set to become mandatory in Morocco starting in 2026, initially for large corporations, then progressively for SMEs and VSEs. The system is based on a 'clearance' model, requiring prior validation by the DGI platform. The precise timeline and application thresholds are still pending the publication of the implementing decree, currently undergoing validation by the General Secretariat of the Government.
Why Electronic Invoicing? A New Era for Moroccan Startups
Electronic invoicing represents a significant turning point in the modernization of Morocco's economic landscape. Since the introduction of Article 145-IX of the General Tax Code, Morocco has laid the legal groundwork for a digital transformation of its fiscal processes. The goal is to make electronic invoicing mandatory for all companies, according to a progressive schedule set to begin in 2026.
This project, spearheaded by the Directorate General of Taxes (DGI), is part of a global trend. Many countries have already adopted similar systems: Italy since 2019, Saudi Arabia since 2021, and France with progressive implementation since 2024. Morocco thus joins an international movement aimed at strengthening tax transparency and effectively combating fraud.
Beyond mere regulatory compliance, electronic invoicing offers significant advantages for businesses, particularly for agile startups looking to optimize their operations. It helps reduce costs associated with manual invoice processing (printing, mailing, data entry, physical archiving), accelerate payment times, ensure data reliability, and secure commercial exchanges.
For chartered accountants and financial departments, this reform presents both an organizational challenge and an opportunity to deeply modernize accounting processes in Morocco. For startups needing expert accounting management, this guide aims to support you in understanding and preparing for this major transition.
Legal and Regulatory Framework in Morocco
The Legal Basis: Article 145 of the General Tax Code
The obligation for electronic invoicing in Morocco finds its legal foundation in Article 145, paragraph IX of the General Tax Code (CGI). This paragraph requires taxpayers to equip themselves with a computerized invoicing system that meets technical criteria set by the administration, and refers the implementation modalities to regulatory channels (implementing decree).
Current Status (April 2026): The draft implementing decree has been submitted to the General Secretariat of the Government, but no decree has yet been published in the Official Bulletin. The Director-General of Taxes, Younès Idrissi Kaitouni, confirmed during the Grands Meetings Médias24 (April 16, 2026) that the launch is scheduled for 2026, with progressive deployment starting with large B2B companies.
Institutional Stakeholders
Several institutions are involved in the implementation of this reform:
- The Directorate General of Taxes (DGI): Project owner, it defines standards, manages the national validation platform, and ensures compliance control.
- The Ministry of Economy and Finance: Supervises the DGI, overseeing the strategic framework of the reform via the finances.gov.ma portal.
- ANRT (National Telecommunications Regulatory Agency): Intervenes on aspects related to electronic signatures and certification of service providers, in accordance with Law 43-20 on trust services for electronic transactions. More information on anrt.ma.
- xHub: Technological partner selected by the DGI for the development of the national electronic invoicing platform.
Scope of Application
Subject to the electronic invoicing obligation are:
- All companies subject to Corporate Tax (IS);
- Individuals subject to professional Income Tax (IR) maintaining regular accounts;
- Self-entrepreneurs (according to thresholds to be set by the implementing decree);
- Public establishments and administrations (B2G component).
For any startup, from its very legal entity creation, understanding these obligations is crucial for future compliance. Concerned transactions include sales invoices, credit notes, rectified invoices, and eventually, electronic purchase orders and delivery notes.
The Clearance Model: How the System Works
What is the Clearance Model?
Morocco has opted for a 'clearance' model (or prior validation), also known as CTC (Continuous Transaction Controls). This choice is fundamental because it implies that each invoice must be submitted to the DGI platform for validation before being sent to the final customer.
Concretely, without this prior validation by the tax administration, the invoice has no legal value. This model differs from the post-audit model (used, for example, in Germany), where invoices are freely exchanged between parties and audited by the administration afterwards.
The Electronic Invoice Workflow
The electronic invoicing process according to the Moroccan model follows these steps:
- Issuance: The issuing company generates its invoice in a structured format (UBL 2.1 or CII) via its invoicing software or ERP.
- Transmission to the DGI Platform: The invoice is automatically transmitted to the national DGI platform via a secure API interface.
- Validation (Clearance): The platform verifies the invoice's compliance (format, mandatory data, electronic signature, fiscal consistency). If compliant, it receives a unique validation identifier.
- Routing to the Recipient: The validated invoice is transmitted to the client via the platform or directly by the issuer.
- Archiving: The invoice is securely archived, both by the DGI and the parties involved.
The National Platform
The national electronic invoicing platform, developed by xHub under the supervision of the DGI, is based on a microservices architecture. It is designed to process a large volume of transactions in real-time, ensure high service availability, and guarantee interoperability with companies' various information systems.
The platform offers several connection modes: REST API for companies with an ERP or compatible software, a web portal for VSEs and companies with low invoicing volumes, and connection via approved dematerialization operators.
Deployment Schedule: What We Know for Startups
The deployment of electronic invoicing in Morocco follows a progressive schedule, designed to allow companies to adapt based on their size and technical capabilities.
Confirmed Progressive Deployment, but an Unofficial Calendar
The Director-General of Taxes has confirmed that deployment will be progressive, starting with large companies (B2B transactions), then extending to SMEs and VSEs. B2C transactions (with individuals) will be integrated in a later phase, after consolidation of the B2B component.
However, no detailed official calendar has been published to date. Revenue thresholds, precise effective dates for each company category, and compliance deadlines will be defined by the implementing decree, currently undergoing validation.
What We Do Know:
- The technical platform has been developed, tested, and accepted;
- Large companies will be the first affected;
- The DGI will provide a free web portal (fatourati.gov.ma) for VSEs/SMEs, an excellent resource for startups;
- Large companies can connect via an EDI platform for direct integration with their ERP;
- Launch is expected in 2026, subject to the decree's publication.
Important: Many online articles mention precise thresholds (e.g., 200 million dirhams turnover), phased effective dates, or detailed calendars. As of the update date of this article, none of these elements come from an official document published by the DGI or in the Official Bulletin. We will update this article as soon as the implementing decree is published.
Technical Requirements: Format, Signature, Archiving
Mandatory Structured Formats
The DGI requires the use of standardized structured formats for electronic invoices. Two formats are accepted:
- UBL 2.1 (Universal Business Language): An XML format standardized by OASIS, widely used internationally, particularly in the European Union. This is the preferred format for the Moroccan platform.
- CII (Cross-Industry Invoice): An XML format standardized by UN/CEFACT, offering compatibility with international invoicing standards.
Important: A simple PDF file sent by email, even if electronically signed, does not constitute a compliant electronic invoice under Moroccan regulations. The invoice must be natively structured in XML to allow its automatic processing by the DGI platform.
Mandatory Mentions
Each electronic invoice must contain the mandatory mentions provided by the CGI, plus specific elements for the electronic format:
- Tax identifier (IF) of the issuer and recipient;
- ICE (Common Enterprise Identifier) of the recipient – now an essential mention;
- Professional tax number;
- Issue date and sequential invoice number;
- Precise description of goods or services;
- HT amount, Moroccan VAT rate and amount, TTC amount;
- Payment terms;
- Unique identifier assigned by the DGI platform after validation.
Qualified Electronic Signature
Every electronic invoice must bear a qualified electronic signature, in accordance with Law 43-20 on trust services for electronic transactions. This signature guarantees:
- Authenticity of Origin: The invoice indeed comes from the declared issuer;
- Content Integrity: The document has not been modified after its signature;
- Non-repudiation: The issuer cannot deny having issued the invoice.
Qualified electronic signature certificates must be issued by a trust service provider approved by the ANRT. The average cost of a certificate is about 1,200 DH per year.
Electronic Archiving
Electronic invoices must be retained for a minimum of 10 years, in accordance with current accounting and tax obligations in Morocco. Archiving must ensure:
- The integrity of documents throughout the retention period;
- The accessibility and readability of invoices at all times;
- Full traceability (secure timestamping);
- Restitution in an exploitable format in case of a tax audit.
Companies can archive their invoices on their own servers, certified cloud solutions, or via the national DGI platform. The retention period for invoices and accounting documents is set by the CGI at ten years following their establishment year (Art. 211), on paper or electronic support; the implementing decree may specify the technical modalities for this archiving within the framework of electronic invoicing.
Transmission Deadline
The deadline for transmitting invoices to the DGI platform will be specified by the implementing decree. In the clearance model adopted by Morocco, validation occurs before sending to the client, which practically implies real-time or near real-time transmission.
Need Support for Your Startup?
Our experts are available to assist you on this topic. Free initial consultation. Contact us.
Compliance Costs for Businesses
Complying with the electronic invoicing obligation represents a variable investment depending on the size of the company, its level of digital maturity, and the chosen solution.
Cost Estimates by Business Category
Large Corporations
Large corporations generally have an ERP (SAP, Oracle, Sage X3) that will need adaptation. Anticipated cost items include:
- Updating or integrating the electronic invoicing module into the ERP;
- Developing API interfaces with the DGI platform;
- Testing, certification, and support;
- Annual recurring costs (maintenance, certificates, support).
Amounts will depend on the complexity of the existing system and invoicing volume. It is recommended to request quotes from several integrators.
SMEs and Growing Startups
For SMEs and scaling startups, costs are more contained:
- Acquisition or subscription to compatible accounting software: 15,000 to 40,000 DH in initial investment;
- Monthly SaaS subscription;
- Qualified electronic signature certificate;
- Team training;
- Support from a chartered accountant.
VSEs and Self-Entrepreneurs (Micro-Startups)
For the smallest structures, including micro-startups, the DGI provides a free web portal (fatourati.gov.ma) allowing invoices to be issued directly on the national platform. Costs would then be limited to the electronic signature certificate and eventual training.
Return on Investment
Despite the initial investment, electronic invoicing generates significant savings in the medium term:
- Reduced Processing Costs: Eliminating printing, postal mailing, and manual entry generates significant savings;
- Accelerated Payment Times: Instant transmission and real-time tracking reduce delays;
- Decreased Errors: Automatic entry eliminates risks of manual errors;
- Space Saving: Progressive elimination of physical archiving.
Impact on Accounting and Internal Processes
Transformation of Accounting Flows
Adopting electronic invoicing profoundly changes accounting processes. Manual entry of supplier invoices gives way to automatic data integration into the accounting system. This automation affects the entire purchase-sale cycle:
- Automatic Posting: Accounting entries are generated automatically from structured XML invoice data, significantly reducing processing time;
- Easier Bank Reconciliation: The direct link between invoice and payment simplifies reconciliation operations;
- Pre-filled Tax Declarations: With the DGI having real-time data, VAT declarations can be pre-filled, limiting error risks.
This means less manual entry for your team and more time for strategic analysis of your accounting management.
Revision of Procedures Manual
The introduction of electronic invoicing requires an update to the company's accounting procedures manual. New processes must document:
- The internal validation workflow for electronic invoices;
- Roles and responsibilities of each stakeholder in the invoicing chain;
- Internal control procedures adapted to the digital format;
- Modalities for archiving and retaining electronic invoices;
- Procedures for managing rejections and anomalies reported by the DGI platform.
Impact on Human Resources
The transition to electronic invoicing requires upskilling accounting and administrative teams. Affected profiles must be trained in:
- Using the new invoicing software or module;
- Technical standards (UBL, electronic signature);
- New validation and archiving procedures;
- Managing technical incidents and rejections.
This skill development is a strategic investment that contributes to the professionalization of the company's financial functions, especially for a startup looking to grow efficiently.
Enhanced Compliance with Accounting Rules
Electronic invoicing strengthens compliance with current accounting rules in Morocco by guaranteeing the reliable audit trail required by the General Accounting Standardization Code (CGNC). Each transaction is traceable end-to-end, from invoice issuance to archiving, including DGI validation and accounting.
How to Choose Your Electronic Invoicing Solution
Choosing an electronic invoicing solution is a strategic decision that warrants thorough analysis. Several criteria should guide this choice.
Essential Selection Criteria
- Regulatory Compliance: The solution must be certified compliant with DGI requirements. Verify that the provider is referenced as an approved dematerialization operator and that the software supports UBL 2.1 and CII formats.
- Integration with Existing Systems: The solution must seamlessly integrate with your existing ERP, accounting software, or CRM. Open APIs and pre-configured connectors are decisive assets.
- Scalability: Your solution must be able to support your company's growth: increasing invoice volume, adding new users, extending to new document types (credit notes, purchase orders).
- Security and Hosting: Prioritize solutions offering secure hosting, ideally on servers located in Morocco, with guarantees of confidentiality, data encryption, and regular backups.
- Support and Assistance: Responsive technical support, available in French and Arabic, is essential. Check the proposed SLAs (Service Level Agreements) and setup assistance modalities.
- Total Cost of Ownership: Beyond the acquisition price or monthly subscription, evaluate the total cost of ownership over 3 to 5 years: training, maintenance, updates, certificates, support.
Types of Solutions Available
- SaaS (Cloud) Solutions: SaaS software offers many advantages: rapid deployment, automatic updates, accessibility from any connected device, low initial cost. They are particularly suitable for SMEs and VSEs, making them ideal for many startups.
- On-Premise Solutions: For large corporations with specific security requirements or sectoral regulatory constraints, solutions installed on the company's servers may be preferable, although more costly to maintain.
- DGI Portal: The DGI provides a free web portal allowing VSEs and self-entrepreneurs (including very small startups) to create and transmit their electronic invoices directly on the national platform. This solution, while limited in functionality, is sufficient for companies with low invoicing volumes.
- Approved Dematerialization Operators: These providers act as intermediaries between the company and the DGI platform. They handle invoice conversion to the required format, electronic signature, transmission, and archiving. They are an interesting solution for companies that do not wish to invest in a dedicated tool.
The Role of the Chartered Accountant in the Transition
A Strategic Partner for Your Startup
The chartered accountant plays a central role in the successful transition to electronic invoicing. Their in-depth knowledge of tax and accounting obligations, combined with their proximity to business leaders, makes them the privileged contact person for piloting this transformation.
At ihub.ma, we have developed a structured approach to support that covers the entire spectrum of compliance.
The Chartered Accountant's Missions
- Diagnostic and Preliminary Audit: The chartered accountant conducts a comprehensive audit of existing invoicing processes: invoice volume, software used, validation workflow, archiving modalities. This diagnosis helps identify gaps against new requirements and define a personalized action plan.
- Technical Solution Choice: Drawing on their experience with various software and ERPs, the chartered accountant advises the company on choosing the most suitable solution for its size, sector, and budget. They ensure compatibility with the existing accounting system.
- Configuration and Implementation: The chartered accountant participates in configuring the chosen solution: mandatory mentions setup, accounting accounts configuration, definition of validation workflows, integration with the accounting system.
- Team Training: They organize and lead training sessions for accounting, sales, and administrative teams. This training covers software usage, new procedures, and best practices.
- Post-Deployment Monitoring: After going live, the chartered accountant ensures regular monitoring: verification of issued invoice compliance, analysis of rejections, process optimization, regulatory watch.
Why Anticipate with Your Chartered Accountant
The majority of Moroccan companies are not yet ready for this transition. According to industry professionals, the real challenge is as much organizational as technical: processes need to be reorganized, practices standardized, and financial teams upskilled. For a startup, being proactive ensures agility.
Engaging in the process now with your chartered accountant allows you to:
- Benefit from comfortable deadlines for testing and adjustments;
- Identify and resolve problems upstream;
- Train teams progressively, without pressure;
- Negotiate the best conditions with solution providers.
Sanctions and Penalties for Non-Compliance
Existing CGI Sanctions Regarding Invoicing
Important: To date, no specific sanctions for electronic invoicing have been published. Article 145-IX of the CGI refers the implementation modalities to the "regulatory channel" — the implementing decree, not yet published, will specify any sanctions specific to the e-invoicing system.
In the meantime, the general CGI sanctions regarding invoicing and accounting remain applicable:
- Article 191 bis: Failure to present accounting documents in electronic format during a tax audit;
- Article 198 ter: Omission or inaccuracy of the ICE on invoices;
- Article 191-I: Failure to present accounting documents;
- Article 192: Serious infringements (fictitious invoices, sales without invoices).
These provisions are not specific to electronic invoicing, but they will naturally apply to companies subject to this obligation once the system is in force.
Potential Fiscal Risk: Non-Deductibility of VAT
Beyond fines, a significant risk could concern VAT deductibility. Under Articles 106 and 146 of the CGI, only expenses justified by a "regular invoice" are eligible for deduction. If regulations ultimately define the electronic invoice validated by the DGI platform as the only regular format, non-compliant invoices could lose the right to deduction – a potentially much greater financial impact than administrative fines. For a growing startup, ensuring every invoice is compliant will be paramount.
Other Consequences
Non-compliance with electronic invoicing obligations can also lead to:
- Rejection of the deductibility of certain expenses during a tax audit;
- Tax adjustments for non-compliant fiscal years;
- Deterioration of the company's tax rating with the DGI, potentially leading to increased targeting during controls.
The exact modalities of these consequences within the specific framework of electronic invoicing will be specified by the implementing decree.
An Indispensable Preventive Approach
Given these risks, compliance is not an option but an economic necessity. The cost of non-compliance far outweighs that of implementation. Companies, especially startups, have every interest in anticipating and engaging in the transition well before mandatory deadlines.
Preparation Checklist for Your Startup
To ensure you are ready when the time comes, here is a detailed checklist of actions to take for a successful transition to electronic invoicing.
Step 1 – Existing Systems Audit (to be done immediately)
- Record the monthly volume of invoices issued and received;
- Identify the software and tools currently used for invoicing;
- Evaluate the company's digital maturity level;
- Verify that all clients and suppliers have a valid ICE;
- Map the current invoice validation and archiving workflow.
Step 2 – Solution Selection (3 to 6 months before the deadline)
- Compare available solutions (SaaS, on-premise, DGI portal);
- Verify the solution's compliance with DGI requirements;
- Ensure compatibility with the existing accounting system;
- Estimate the total cost of ownership over 3 years;
- Request demonstrations and trial periods.
Step 3 – Technical Implementation (2 to 4 months before the deadline)
- Install and configure the chosen solution;
- Configure the interface with the DGI platform (API or portal);
- Obtain the qualified electronic signature certificate from an ANRT-approved provider;
- Conduct invoice issuance and reception tests;
- Verify the compliance of generated invoices (format, mentions, signature).
Step 4 – Organizational Adaptation
- Update the accounting procedures manual;
- Define new internal validation workflows;
- Inform clients and suppliers of the transition;
- Communicate new invoice reception modalities.
Step 5 – Training and Support
- Train accounting teams on using the new tool;
- Train sales teams on issuing electronic invoices;
- Sensitize management to compliance issues;
- Designate an internal referent for electronic invoicing.
Step 6 – Launch and Monitoring
- Switch to production according to the planned schedule;
- Monitor rejections and anomalies during the first weeks;
- Set up a monitoring dashboard (compliance rate, validation times);
- Schedule periodic reviews with the chartered accountant.
Conclusion
Electronic invoicing in Morocco by 2026 is not just a format change: it's a profound transformation of commercial relationships, accounting processes, and the relationship between businesses and the tax administration. Companies that anticipate this transition, especially agile startups, will emerge stronger, with more efficient processes, better control over their financial flows, and impeccable tax compliance.
At ihub.ma, a chartered accounting firm in Casablanca, we support our clients at every step of this transition. From the initial audit to post-deployment monitoring, our team of experts dedicates its know-how to your compliance and performance.
Don't delay your preparation. Contact us today for a free initial consultation and ensure a smooth transition to electronic invoicing.
References:
- General Tax Code 2026 (PDF)
- Circular Note n° 737
- Finance Law 2026
- Interview with the Director General of Taxes – Médias24, April 18, 2026
Frequently Asked Questions for Startups
When does electronic invoicing become mandatory in Morocco?
Article 145-IX of the CGI establishes the principle of mandatory electronic invoicing in Morocco. The Director-General of Taxes confirmed in April 2026 that the launch is planned for 2026, starting with large companies. The precise calendar and application thresholds will be set by the implementing decree, currently undergoing validation.
Which companies are affected by electronic invoicing in Morocco?
All companies subject to VAT in Morocco will be progressively affected by the electronic invoicing obligation. Deployment will occur in waves, starting with large B2B companies, then extending to SMEs, VSEs, and finally B2C. Thresholds and the precise calendar will be set by the implementing decree. This includes most startups operating in Morocco.
What are the advantages of electronic invoicing for Moroccan companies?
Electronic invoicing reduces processing costs, accelerates payment times, decreases data entry errors, and strengthens transaction traceability. It also facilitates accounting reconciliations and improves tax compliance, offering a significant efficiency boost for startups.
How can I prepare my startup for electronic invoicing in Morocco?
Preparation involves auditing existing systems (invoicing processes, software used), choosing a compliant technical solution, updating the accounting procedures manual, training teams, and conducting preliminary tests before switching to production. Partnering with experts like ihub.ma can streamline this process.
Ready to move your project forward?
Browse our service gallery to find the right support for your immediate business needs:
Startup Legal Incorporation
Comprehensive incorporation with negative certificate, tailored articles of association, and commercial court filing.
- Choosing the appropriate legal structure
- Search and validation of 3 company names
- Clear, predictable pricing
Startup Domiciliation
Get a registered office without costly commercial leases in your city of choice in Morocco for your startup.
- Immediate professional address
- Mail reception and digital scanning
- Compliant with tax requirements
Business Plan & Pitch Decks
Financial modeling and compelling pitch deck to maximize your fundraising and investment prospects.
- Eligible file for Intilaka credit & bank financing
- 3-year cash flow forecast
- Support from financial analysts
Statutory Modifications
9 all-inclusive legal deed packages: EGM minutes, legal announcement gazette, and court registry filing.
- Change of Manager or Partner
- Transfer of registered office or business activity
- Certified update in commercial register
Bookkeeping & Accounting
Delegate your monthly accounting and tax obligations with complete peace of mind.
- VAT filings and electronic Corporate/Income tax payments
- Compliant annual financial statements and tax return
- Cost-effective fixed monthly plans
Legal Advisory & Dispute Resolution
Dedicated legal assistance to resolve administrative roadblocks or disputes.
- Court registry roadblock resolution
- Partner dispute assistance
- Responsive handling within 24h
Trademark Registration
Legally register and protect your brand and logo with OMPIC to guarantee your exclusive rights.
- In-depth prior art search
- Optimal selection of trademark product classes
- OMPIC official filing & certificate
Apps, Websites & AI Agents
Bespoke digital solutions to automate operations, save time, and generate more revenue.
- Modern Web & Mobile Applications
- AI Agents & Business Process Automation
- Fast delivery and maximized ROI
Advertising & Marketing
High-converting acquisition strategies to scale sales and grow your brand community in Morocco.
- Targeted Google Ads & Meta advertising
- Customer Acquisition & Brand Awareness
- Clear conversion analytics dashboards