Start free trial
14 days free trial - no credit card needed
Hisab
Pricing
Sales: +212 649 22 43 64
Start free trial

14 days free trial - no credit card needed

Login

The 2026 mandate

Morocco's e-invoicing mandate, explained

Everything you need to know about the mandatory e-invoicing law and how to prepare your business for DGI compliance

Last updated 5 June 2026

By Salah Eddine Boussettah - Founder & CEO, Marrakech

01

What is the 2026 E-Invoicing Mandate?

Understanding Morocco's digital transformation initiative

Starting in early 2026, Morocco will implement a mandatory e-invoicing system for all businesses. Led by the General Directorate of Taxes (DGI), this initiative aims to enhance fiscal efficiency, strengthen transparency, and combat tax evasion.

Under this mandate, every business in Morocco must issue invoices electronically using standardized formats (UBL 2.1) and obtain clearance from the DGI before the invoice is legally valid. This clearance model means that invoices must be pre-validated by the tax authority.

The system is built on Article 145 of Morocco's General Tax Code (CGI), and xHub, a Moroccan software engineering firm, has been selected as the technological partner to develop the national e-invoicing platform.

Key figures

The verified numbers behind the reform, sourced from the DGI.

~1,655
large companies covered by the first phase (2026)
> MAD 200M
turnover threshold for the first phase
2027-2028
gradual extension to SMEs and micro-businesses
Oct. 2024
public consultation launched

Source: General Directorate of Taxes (DGI) - statements by Director-General Younes Idrissi Kaitouni, Médias24, April 2026.

02

The road to 2026

Key milestones in Morocco's e-invoicing rollout

  1. October 2024

    Proposal Launch & Public Consultation

    The DGI launched the first e-invoicing system proposals and opened public consultations with businesses, accountants, and economic actors to gather feedback and refine the requirements.

  2. October 2025

    Pilot Phase Rollout

    Selected businesses and partners began testing the system in a pilot phase. This allows early adopters to provide feedback, test integrations, and help refine the platform before full implementation.

  3. Early 2026

    Mandatory Implementation

    E-invoicing becomes mandatory for ALL eligible businesses in Morocco. Every invoice must be validated through the DGI clearance system to be legally compliant.

03

Key Stakeholders

Who is leading Morocco's e-invoicing transformation

DGI - Direction Générale des Impôts

Tax Authority & Initiative Leader

The General Directorate of Taxes is Morocco's tax authority leading the e-invoicing mandate. The DGI is responsible for defining compliance requirements, ensuring proper implementation, and managing the clearance system.

  • Define technical and legal requirements for e-invoicing
  • Manage the invoice clearance and validation system
  • Ensure compliance and enforce the mandate

xHub

Technology Partner & Platform Developer

xHub is a Moroccan software engineering firm selected by the DGI to build the national e-invoicing platform. They are developing the technological infrastructure that will power invoice clearance and validation.

  • Build and maintain the e-invoicing platform infrastructure
  • Provide API access for businesses and software providers
  • Ensure system reliability, security, and scalability
04

Technical Requirements

What your business needs to comply with the mandate

  1. A

    Standard Formats

    Invoices must be in UBL 2.1 or UN/CEFACT CII XML format - internationally recognized e-invoicing standards

  2. B

    DGI Clearance

    Every invoice must be pre-validated by the DGI clearance system before it becomes legally valid

  3. C

    ICE Number Validation

    Seller and buyer ICE (Identifiant Commun de l'Entreprise) numbers must be included and validated

  4. D

    10-Year Archive

    Invoices must be stored in immutable, audit-ready format for 10 years as required by Moroccan law

05

How to prepare your business

Four essential steps to ensure compliance by 2026

1

Understand the Requirements

Learn what the mandate requires and how it affects your business operations

  • Read the official DGI guidelines and regulations
  • Identify which invoices and transactions are covered
  • Assess your current invoicing process and gaps
2

Choose a Compliant Solution

Select software that meets all DGI requirements and simplifies compliance

  • Evaluate e-invoicing platforms like Hisab that support UBL/CII
  • Ensure the solution handles DGI clearance automatically
  • Check for features like archive vault and multi-language support
3

Register & Set Up

Get your business registered and configure your invoicing system

  • Ensure your ICE number is valid and up to date
  • Set up your company profile with correct legal information
  • Configure tax rates, invoice templates, and customer database
4

Test & Train Your Team

Practice using the system and train employees before the mandate goes live

  • Create test invoices and familiarize yourself with the workflow
  • Train your accounting and finance teams on the new process
  • Run a pilot with a few customers to ensure everything works
06

Benefits of E-Invoicing

How the mandate improves business and the economy

Enhanced Transparency

Real-time visibility into business transactions reduces fraud and increases trust

Improved Efficiency

Automated workflows eliminate manual data entry and reduce processing time

Better Security

Digital signatures and encryption protect invoices from tampering and unauthorized access

Better VAT Collection

Automated reporting helps ensure accurate VAT collection and reduces revenue leakage

Reduced Fraud

Pre-validation and audit trails make it much harder to create fake or duplicate invoices

Digital Transformation

Moves Morocco toward a paperless, modern economy aligned with international standards

07

Frequently asked questions

Morocco's 2026 e-invoicing mandate, answered

When does Morocco's e-invoicing mandate start?

Morocco's e-invoicing mandate becomes mandatory for all eligible businesses in early 2026. It follows a public consultation launched in October 2024 and a pilot phase in 2025. The legal basis is Article 145 of the Moroccan General Tax Code (CGI).

Who is affected by the DGI e-invoicing mandate?

All businesses subject to Moroccan tax that issue invoices are concerned - companies and professionals first, with smaller businesses phased in. B2B and B2G transactions are covered by the clearance model, with B2C following in later stages.

What is the DGI clearance model?

Under the clearance model, each invoice is transmitted to and validated by the DGI platform before it reaches the customer. Only invoices cleared by the DGI are legally valid, which lets the tax authority verify transactions in near real time.

What invoice format does the DGI require?

Morocco's mandate is based on international XML standards - UBL (Universal Business Language) and CII (Cross-Industry Invoice). Invoices must also carry mandatory identifiers such as the ICE (Identifiant Commun de l'Entreprise).

How long must electronic invoices be kept?

Electronic invoices must be archived securely for the legal retention period - 10 years in Morocco - in a tamper-evident form that preserves their integrity and keeps them available for audits.

How do I prepare for the 2026 mandate?

Understand the requirements, choose a DGI-ready e-invoicing solution, register and onboard, then test your invoice flow before the deadline. Starting early avoids a last-minute rush and gives time to adapt your processes.

Is Hisab ready for the DGI mandate?

Hisab is DGI-ready today: it generates UBL 2.1 invoices validated against the official structure and rules, with secure long-term archiving. The clearance submission pipeline is already built and will be activated as soon as the DGI publishes its official clearance API.

Where can I find the official DGI rules?

The authoritative source is the DGI (Direction Générale des Impôts) at tax.gov.ma. The mandate is grounded in Article 145 of the General Tax Code (CGI). Always verify the latest official guidance, as details can evolve.

Official sources & references

This guide reflects publicly available information as of the date above. For binding rules, always consult the official DGI sources:

Hisab is an independent e-invoicing software provider and is not affiliated with, or endorsed by, the DGI.

Get Ready for 2026 Today

Join hundreds of Moroccan businesses preparing for the e-invoicing mandate with Hisab's compliant platform