Billing
•
11 min read
•
Electronic invoicing in Morocco in 2026: what every merchant needs to know
Electronic invoicing is gradually becoming mandatory in Morocco. Legal framework, the DGI’s Clearance model, accepted formats: here’s what every merchant needs to understand before the 2026 deadline.

What is electronic invoicing?
Electronic invoicing is not just a PDF sent by email. It is an invoice issued, transmitted, and stored in a structured and standardized format, readable by both software and the tax administration. In Morocco, this transformation is led by the General Directorate of Taxes (DGI) and will eventually concern more than 1.2 million businesses.
A now-clear legal framework
The obligation is grounded in Article 145-IX of the General Tax Code, introduced by the 2024 Finance Act. This text requires taxpayers to adopt an invoicing IT system that complies with the technical criteria set by the administration. The precise implementation terms are deferred to an implementing decree.
The “Clearance” model: real-time validation
Morocco has adopted one of the strictest models in the world, known as “Clearance”. In practice, each invoice must be validated in real time by the DGI’s national platform before being sent to the customer. Without this electronic approval, the invoice has no legal value.
The technical platform was developed by the Moroccan company xHub, under a public contract worth around 6.3 million dirhams.
Which formats are accepted?
A simple PDF is explicitly excluded. The invoice must be based on an internationally recognized structured format:
UBL (Universal Business Language): a standardized XML format widely used for commercial exchanges.
CII (Cross Industry Invoice): another XML standard recognized by the DGI.
Electronic signature: each invoice must be electronically signed to guarantee its integrity and authenticity.
Why prepare now?
Even if your business is only affected in 2027, anticipating the switch to electronic invoicing helps you avoid last-minute rushing, train your teams, and calmly choose suitable software. The reform is not just a constraint: it reduces data-entry errors, speeds up payments, and simplifies your tax filings. Equipping yourself early with compliant invoicing software is the best way to approach the deadline stress-free.
Was this article helpful?
Billing

How Long to Keep Invoices?
A medida que las empresas buscan simplificar sus procesos y mejorar la eficiencia, el software de facturación ha ganado popularidad como herramienta de gestión financiera. Sin embargo, ¿usar un software de facturación es un requerimiento legal o simplemente una opción estratégica?
11 min read

Is It Mandatory to Use Invoicing Software?
A medida que las empresas buscan simplificar sus procesos y mejorar la eficiencia, el software de facturación ha ganado popularidad como herramienta de gestión financiera. Sin embargo, ¿usar un software de facturación es un requerimiento legal o simplemente una opción estratégica?
10 min read

How to Choose the Right Invoicing Software?
Invoicing can quickly become a time-consuming task, especially when you have many clients and invoices to manage. Invoicing software can help you automate and simplify the invoicing process, allowing you to focus on other aspects of your business. However, with numerous software options available, choosing the right one can be challenging.
9 min read


