Issuing your first invoice is a concrete milestone — but it can feel daunting when you’re not sure where to begin. This guide walks you through the process step by step, from choosing a format to archiving, so your very first invoice is compliant from day one.
For the full list of mandatory fields required by Morocco’s CGI (ICE, IF, RC, VAT breakdown, and more), see our dedicated article: mandatory invoice information in Morocco. This guide focuses on the practical journey — what you actually do, step by step.
Step 1 — Choose your format: paper or electronic?
Moroccan law allows both formats, but the choice has real practical consequences:
- Paper or unstructured PDF (Word, Excel): you keep full control, but you’re also fully responsible for not missing any mandatory field, maintaining sequential numbering, and organising your own archive.
- Electronic invoice via dedicated software: tax identifiers (ICE, IF, RC), sequential numbering, and VAT breakdown are handled automatically. This is the recommended path — especially as Morocco’s mandatory e-invoicing requirement rolls out progressively.
Practical tip: if you’re starting your business today, go straight to invoicing software. Migrating from Excel later is tedious — particularly when you need to reconstruct a consistent invoice sequence retroactively.
Step 2 — Gather your information before you start
Before creating your first invoice, have the following ready:
Your own identifiers
- Your ICE (15-digit Common Company Identifier) — issued when you registered your business
- Your Tax Identifier (IF) — on your DGI registration certificate
- Your RC number (Trade Register) — on your company statutes or registration certificate
- Your full address and legal form
Your client’s information
- Company name and full address
- Client’s ICE (if the client is a business) — ask for it systematically before invoicing. Without it, your client cannot deduct the VAT on your invoice.
Common mistake: sending an invoice without having collected the client’s ICE, then having to issue a credit note and a corrected invoice. Make it a habit to ask for the ICE at the very first commercial contact.
Step 3 — Describe your services precisely
This is one of the most common mistakes among new freelancers: a description that is too vague. “Fees”, “Work”, or “Services” without any further detail can be challenged during a tax audit and put your client’s VAT deductibility at risk.
For each line on your invoice, include:
- The precise nature of the service (e.g. “Mobile app development — phase 1 — May 2026”)
- The quantity (number of hours, days, units…)
- The unit price excluding tax
- The line total excluding tax
Step 4 — Calculate and break down VAT
VAT must appear broken down by rate — a single combined total is not sufficient. If you invoice one service at 20% and another at 10%, both VAT lines must appear separately.
For most freelancers and SMEs starting out: you will most likely apply the 20% standard rate, which applies to the majority of professional services. If you are unsure of your specific rate, check based on your activity type.
Your invoice must clearly show: the pre-tax amount, the applicable rate, the VAT amount, and the gross total (TTC). It must also include the total amount written in words — this is a mandatory field that is often overlooked.
Are you an auto-entrepreneur? If your annual revenue stays below the exemption threshold (500,000 MAD for service activities), you are not liable for VAT. In that case, state: “VAT exempt — auto-entrepreneur below the threshold”.
Step 5 — Assign a sequential number
Your first invoice carries the number 1 — and every invoice that follows must continue in an unbroken sequence. A gap in the numbering (e.g. from INV-2026-003 to INV-2026-007) can be interpreted by the DGI as concealment of revenue.
Adopt a clear format from the start, for example:
2026-001,2026-002… (annual numbering)INV-2026-001(with “INV” prefix)INV-001(global sequence)
Why this matters: if you invoice manually in Excel and delete or modify an invoice, you automatically create a gap. Invoicing software locks the sequence and prevents this error entirely.
Step 6 — Send the invoice
Once your invoice is finalised, send it:
- By email as a PDF (the standard format accepted today)
- Via a client portal: with eInvoice.ma, your client receives a secure link to view and pay the invoice online — no email management required
Include in your email: payment terms (due date, accepted methods) and your bank account details (RIB) to facilitate a wire transfer. These are not legally required on the invoice itself, but they significantly speed up payment.
Step 7 — Attach your tax compliance certificate
Since the introduction of VAT withholding at source (Article 117 of the CGI, effective July 2024), certain clients — companies subject to corporate tax (IS) or personal income tax (IR réel) — are required to retain part or all of the VAT on your invoices when they pay you. To avoid this withholding, you must demonstrate that your business is current with its tax obligations by providing an attestation de conformité fiscale (tax compliance certificate) issued by the DGI.
- What it is: an official DGI document certifying that your company is up to date with its tax filings and payments (corporate tax, VAT, business licence tax, etc.).
- How to obtain it: log in to your professional account on the Dariba portal (tax.gov.ma) and download the certificate online. It can also be requested in person at your assigned tax office.
- Practical tip: attach the certificate to every invoice sent to a business client. It is valid for 6 months (Art. 157-II CGI) — renew it before it expires so it never holds up a payment.
Step 8 — Archive for 10 years
Article 211 of the CGI requires you to retain all invoices — both issued and received — for 10 years from the end of the relevant fiscal year. This obligation applies to both paper and electronic invoices.
In practice: never delete an invoice you have issued, even if it was cancelled (issue a credit note instead). Keep a digital copy organised by fiscal year.
5 classic first-invoice mistakes
- ICE missing or incomplete: the ICE is exactly 15 digits. If it’s wrong, your client faces a potential tax reassessment.
- Numbering that restarts at 1 each month: the sequence must be continuous throughout the year (or throughout the life of the business).
- Aggregated VAT total: showing a single VAT figure without specifying the rate is not sufficient.
- No amount in words: the gross total written in full words is a mandatory field.
- Vague description: “Services rendered” without detail can invalidate VAT deductibility for your client.
Create your first compliant invoice in 5 minutes
eInvoice.ma automatically pre-fills your tax identifiers (ICE, IF, RC), manages sequential numbering, calculates and breaks down VAT, and generates the amount in words. Your client receives a link to view and pay the invoice online.
Further reading: Mandatory invoice information in Morocco: ICE, IF, RC and the rest.

