E-invoicing

E-invoicing in Morocco: what is confirmed and how to prepare

Hassan II Mosque in Casablanca overlooking the Atlantic Ocean

E-invoicing in Morocco is entering a decisive phase. At the Grands Rendez-vous de Médias24 on 16 April 2026, Younès Idrissi Kaitouni, Director General of Taxes, shared further details on the planned framework: invoice standard, electronic signature, real-time clearance, certified service providers, access models and phased rollout.

The change goes far beyond replacing paper with a PDF. It introduces a natively electronic, structured, signed and controlled invoice before delivery to the customer, directly affecting information systems, ERPs, accounting processes, payment terms and VAT operations.

What the DGI has confirmed

TopicAnnounced direction
Invoice natureA structured electronic document, not a PDF or scanned paper invoice
Announced standardThe international UBL format
Authenticity and integrityA qualified electronic signature is expected to secure the invoice
Exchange modelReal-time validation or clearance before delivery to the customer
Initial scopeB2B transactions, with a phased rollout
SME accessA free online entry portal announced at fatoura.gov.ma
Integrated businessesEDI integration with ERP systems
Role of CSPsCertified private providers may validate and route invoices
Initial phaseThe DGI will initially provide the portal and integration service
ProgressThe platform was announced as developed, tested and accepted
Go-liveA rollout announced for 2026 under a timetable to be set by decree

1. A normative standard: structured invoices in UBL

The future electronic invoice will not be an image, scan or simple PDF sent by email. Its original will be a file containing structured data that information systems can read automatically.

The standard cited by the DGI is UBL — Universal Business Language, an XML-based international format designed to standardise business documents. It enables platforms, ERPs and accounting tools to identify supplier, customer, references, invoice lines, amounts, taxes and totals automatically.

The invoice is also expected to use a qualified electronic signature to secure the issuer’s identity, authenticity, content integrity, alteration detection and non-repudiation. The precise UBL version, national XML schema and detailed controls remain subject to future DGI technical specifications.

2. A real-time clearance model

The announced framework uses prior validation: the invoice will no longer pass directly from supplier to customer without an intermediary control.

  1. The supplier creates a structured invoice in the expected format.
  2. The invoice is electronically signed.
  3. It is sent to the DGI platform or a certified service provider.
  4. The system checks the format, signature and mandatory data.
  5. Once validated, the invoice is routed to the customer.
  6. The customer acknowledges receipt in the system.

The DGI therefore acts as a trusted third party and secure courier between supplier and customer. The system is intended to provide end-to-end traceability across issuance, control, delivery and receipt, making the receipt date objectively traceable for payment-term and VAT processes.

3. Two access models: portal and system integration

Portal mode for SMEs

Small and medium-sized businesses will be able to use an online entry interface announced at fatoura.gov.ma. It is intended to create and submit electronic invoices from a browser and, according to the DGI announcements, will be free for SMEs.

Integrated mode for ERP systems

Businesses with an ERP or high invoice volumes will be able to automate exchanges through an EDI integration platform. The source does not yet publish a final API contract, so protocols, authentication, security rules, statuses and service commitments remain subject to official documentation.

ModeTarget organisationsAnnounced operation
PortalSMEsOnline entry through a free service
ERP/EDI integrationBusinesses using invoicing systemsAutomated issuance from ERP to the platform

4. CSPs: the role of certified service providers

Decentralised exchange modelInteroperable flows validated by CSPs and traced by the DGI.
Flag of MoroccoDGI logo
DGI · Tax authorityData collection and traceability
Supplier CSPCertified service provider
Standardised exchange
Customer CSPCertified service provider
Supplier
Customer
1Creation, signature and issuance2Validation (clearance)3′Standardised CSP-to-CSP exchange3″DGI data collection: invoices and statuses4′Receipt by the customer4″DGI data collection: statuses and events

The Moroccan model provides for CSPs — Certified Service Providers accredited by the tax administration. These trusted providers may automatically validate and route invoices between suppliers and customers.

At launch, the DGI will provide portal and integration functions. Private CSPs will be accredited progressively through a certification process expected to address information-system security and personal-data protection. The detailed certification framework, audits, responsibilities and renewal cycle are still to be published.

5. Who will be in scope and when?

The announced first scope covers B2B transactions. B2C activities are not part of the initial phase. The B2B rollout will be phased, with large businesses expected first and an adapted approach for SMEs.

The DGI ruled out a single nationwide switchover date. The exact timetable and operational arrangements must be defined by decree, so it would be premature to assign mandatory dates or revenue thresholds before the final text is published.

6. What capabilities are businesses likely to need?

  • Create natively structured invoices using the selected standard.
  • Provide mandatory information in a machine-readable format.
  • Electronically sign invoices at the required assurance level.
  • Submit invoices for validation before delivery.
  • Process acknowledgements, validations and rejections.
  • Maintain traceability of statuses and events.
  • Adapt VAT, collections and payment-term processes.
  • Keep ERP, accounting and platform data consistent.
  • Use the portal, direct integration or a certified CSP according to the operating model.

7. Why is the DGI introducing the framework?

The main objective presented by the Director General of Taxes is transparency. E-invoicing is intended to strengthen fraud prevention, improve fairness between taxpayers and provide a more reliable view of economic activity.

Expected benefits for businesses include fewer paper archives, automated accounting, reliable proof of receipt, improved payment discipline, potentially simpler VAT refunds, easier invoice financing and more reliable data for finance teams.

8. How can businesses prepare now?

  1. Map invoice and credit-note flows, channels, volumes, currencies, VAT and exceptions.
  2. Assess customer and supplier master data, tax identifiers and calculation rules.
  3. Audit ERP and satellite applications for structured output, signing, transmission and status tracking.
  4. Define the target route: portal, direct integration or a CSP.
  5. Prepare security, certificates, logging, recovery, error handling and monitoring.
  6. Adapt issuance, validation, receipt, reconciliation, payment, VAT and archiving processes.
  7. Run a pilot covering standard journeys and exceptions.
  8. Track official legislation, data schemas, integration documentation and the CSP framework.

Key takeaways

The DGI has clarified the overall direction: a structured UBL invoice protected by a qualified electronic signature and submitted to real-time validation. Businesses will use a portal or automated integration, while certified CSPs progressively join the ecosystem.

The remaining uncertainty concerns the final operating framework: timetable by business category, national data schema, integration specifications, CSP certification and detailed business rules. Businesses should begin scoping now while keeping the architecture flexible enough to absorb the final official requirements.

Paytium supports your e-invoicing readiness

Paytium supports businesses from scoping to integration: flow analysis, target architecture, ERP/API/EDI integration, structured-format generation, signature and certificate management, status orchestration, monitoring and test-campaign readiness.

SHARE

Share this insight with your network.