E-invoicing in Morocco: definition and what is at stake
E-invoicing in Morocco: what an electronic invoice is, how it differs from a PDF, what the DGI is preparing and how an SME can get ready starting today.
What exactly is an electronic invoice?
An electronic invoice is an invoice that is issued, sent and stored in digital form throughout its entire life cycle. It never needs to be printed to exist legally: the file itself is the authoritative document. In Morocco the topic comes up often between business owners and accountants, because the Direction générale des impôts (DGI, the Moroccan tax administration) is preparing to roll out this way of invoicing to businesses across the board.
In practical terms, an electronic invoice contains the same information as a paper invoice: the identity of the seller and the buyer, tax identifiers, a description of the goods or services, amounts excluding tax, VAT and the total. The difference lies in the form: the data is structured, readable by software, and its integrity can be checked. That is what makes it possible to automate bookkeeping entries and, eventually, exchanges with the tax administration.
Is a PDF sent by email an electronic invoice?
This is the most common misconception. Many Moroccan businesses already email their invoices as PDFs and believe they have "gone electronic". In reality, a PDF is still an image of a document: a person can read it, but software cannot reliably extract the amounts without re-keying or character recognition.
An electronic invoice in the strict sense relies on a structured format, often XML, in which each piece of information sits in a specific field: number, date, ICE, VAT rate, amount. A PDF can accompany this file to make it easier to read, but it is then only its visual representation. So keep in mind that sending a PDF is a useful first step, not the end of the journey.
- PDF: readable by a person, hard to process automatically
- Structured file: every piece of data is identified and usable
- Full electronic invoice: structured data, guaranteed integrity, digital storage
What the DGI is preparing
For several years the DGI has been digitizing tax procedures: online filing, online payment and e-services on the administration's portal. The electronic invoice is a continuation of that effort. The general aim of this kind of reform is to make VAT data more reliable, reduce fraud and simplify tax audits.
At this stage, the wisest course for a business is not to rely on rumors or on timelines circulating on social media. The rules, the scope of businesses concerned and the effective dates are set by official texts and announcements. Follow the notices published on tax.gov.ma and talk to your chartered accountant to understand what applies to your situation.
The concrete benefits for an SME
Beyond the upcoming obligation, electronic invoicing brings immediate gains. The first is time: an invoice created in software automatically pulls in the customer's details, calculates VAT and assigns a number without error. The second is cash flow: an invoice sent the same day, with a payment link, is more likely to be paid quickly than a document handed over in person a week later.
The third benefit concerns accounting. When the invoice is structured, the accounting entry can be generated without re-keying, which reduces errors and speeds up closing. For example, a business that issues 150 invoices a month and spends three minutes entering each one devotes more than seven hours a month to a task the software can do for it.
How to get ready without waiting
Preparation starts with a review of where you stand. Do all your invoices carry the mandatory information? Are your customers' ICE numbers filled in and checked? Is your numbering continuous, with no gaps or duplicates? These points are already required today and will be at the heart of any electronic invoicing system.
Next comes choosing a tool that can produce compliant invoices, send them, archive them and pass the data on to accounting. Online software has the advantage of keeping pace with regulations without you having to reinstall anything. Finally, train the person who does the invoicing: a good tool used badly still produces errors.
- Check the mandatory information on a sample of invoices
- Complete and verify the ICE of every customer
- Check that the numbering is continuous
- Centralize the archiving of invoices issued and received
Take action with m2m.ma
m2m.ma is a Moroccan invoicing and accounting platform designed for these needs. You create your quotes, invoices and credit notes with your legal information and logo added automatically, your customers' ICE is checked and numbering has no gaps. Invoices go out by email with an online payment link by CMI card or bank transfer, and accounting entries are generated automatically.
The simplest way is to judge for yourself, with your own customers and your own items. You can create an account on my.m2m.ma and take advantage of the 15-day free trial, with no commitment, to issue a few invoices, import those from your old software and check whether the tool fits the way you work before deciding.
Frequently asked questions
Is e-invoicing already mandatory in Morocco?
The DGI is preparing the general rollout of electronic invoicing, but the exact timeline and scope are set by official texts. Check tax.gov.ma regularly and ask your chartered accountant what applies to your business, rather than relying on unsourced information.
Are the PDF invoices I send by email valid?
A PDF invoice that carries all the mandatory information remains a valid commercial document today. However, it is not a structured electronic invoice in the sense of a digitization reform, because its data cannot be used directly by software.
Do I have to change my whole organization to switch to e-invoicing?
No. The key is to use software that produces compliant invoices, numbered continuously and archived digitally. Your sales process stays the same: quote, invoice, payment. What gradually disappears is mostly manual data entry and paper filing.
Put it into practice with m2m.ma
E-invoicing, accounting and business management services for Moroccan companies. 15-day free trial, no credit card.

