Invoice template Morocco: free and compliant (Excel)
A compliant invoice in Morocco must show: the seller's name and address, its RC, IF, ICE and TP identifiers, a sequential invoice number, the date, the customer's name and ICE, the description of the goods or services, quantities and prices excluding tax, the TVA (VAT) rate and amount, the total including tax and the total amount written out in words. Download our ready-to-use Excel template, with automatic TVA formulas.
Updated: July 2026
Mandatory information on an invoice in Morocco
Seller side
Registered company name and address · Trade Register number (RC) · Tax Identifier (IF) · Common Enterprise Identifier (ICE) · Professional Tax (TP) · sequential invoice number · date of issue.
Customer side and amounts
Customer's name and address · customer ICE (between taxable businesses) · precise description · quantities and unit prices excluding tax · TVA rate and amount per line · total excluding tax, TVA and total including tax · total amount written out in words · payment terms and deadline (law 69-21: 60 days by default, 120 maximum).
The Excel template has its limits: manual numbering, no payment tracking, re-keying into accounting, and before long the DGI electronic invoicing mandate, which will require a structured system. Once you issue a few dozen invoices a month, proper software becomes essential — see our sales management software page and DGI electronic invoicing.
Table of mandatory information on a Moroccan invoice
| Information | Detail | If it is missing |
|---|---|---|
| Seller identity | Name or company name, address | Invoice open to challenge |
| Seller ICE | Common company identifier, 15 digits | Possible rejection in a tax audit |
| IF and business tax number | Tax identifier and business tax (TP) number; trade register (RC) in practice | Irregular invoice |
| Customer identity and ICE | Mandatory in B2B since 2019 | The customer loses the deduction of the expense and of the VAT |
| Number and date | Continuous chronological numbering, no gaps | Doubt over the completeness of revenue |
| Description | Goods or services, quantities, unit prices excl. VAT | Expense not justified |
| VAT | Rate and amount per rate, totals excl. VAT, VAT and incl. VAT | VAT not recoverable |
| Payment | Method, due date (law 69-21) and any withholding tax | Disputes over payment terms |
The most common mistakes
- Customer ICE missing or wrong, especially on counter sales to companies.
- Numbering restarted “by hand” each year, or invoices deleted instead of being cancelled with a credit note.
- Several VAT rates added together on a single line.
- No payment due date: it then becomes impossible to prove compliance with law 69-21.
This Excel template — and then what?
The template is fine to get started. But DGI e-invoicing will require a structured (XML) format, signed and validated by the tax administration’s platform: an Excel file or a PDF will no longer be enough. The natural next step is sales management software that produces compliant invoices from quotations and deliveries.
Next step
Move from Excel invoices to compliant invoicing:
Sales management softwareOdoo invoicing in MoroccoDGI e-invoicingWithholding tax 2026Odoo cost calculatorExample of a completed Moroccan invoice
This is what a compliant invoice looks like once every mandatory item is filled in: seller identifiers, customer ICE, numbering, line details excl. VAT, VAT per rate, total incl. VAT in figures and in words, payment due date.
RC 000000 · IF 00000000 · TP 00000000
ICE 000000000000000
Date: 15/11/2026
Due: 14/01/2027 (60 days)
| Description | Qty | Unit price excl. VAT | VAT | Total excl. VAT |
|---|---|---|---|---|
| Consulting assignment — scoping | 5 d | 6,000.00 | 20% | 30,000.00 |
| User training | 2 d | 4,500.00 | 20% | 9,000.00 |
| Printed training materials | 1 | 1,200.00 | 20% | 1,200.00 |
Invoice closed at the sum of: forty-eight thousand two hundred and forty dirhams incl. VAT.
Payment by bank transfer no later than 14/01/2027 · Late-payment penalties under law 69-21.
Auto-entrepreneur invoices in Morocco: what changes
- No VAT: an auto-entrepreneur does not charge VAT; the invoice states this and the amount invoiced is the amount payable.
- Identifiers: registration number in the national auto-entrepreneur register and ICE, instead of a company’s RC and IF.
- Same basic rules: continuous numbering, date, customer identity, description and price, retention of invoices.
- MAD 80,000 threshold per customer: since the 2023 finance act, when service revenue earned from a single customer exceeds MAD 80,000 in a year, the excess is subject to a 30% withholding tax applied by that customer. Raising this threshold is under discussion in the 2027 finance bill.
General rules, to be confirmed with your accountant for your situation.
Quotation, delivery note, invoice, credit note: which document for what?
| Document | What it is for | Tax value |
|---|---|---|
| Quotation | Propose a price and terms before the sale | None: it becomes commercially binding once accepted |
| Purchase order | Formalise the customer’s agreement | None, but useful in a dispute |
| Delivery note | Prove the handover of goods or the completion of the service | None; it triggers invoicing |
| Invoice | Record the sale and the receivable, with VAT | Accounting and tax document, kept for 10 years |
| Credit note | Cancel or reduce an invoice already issued | Tax document: corrects VAT and revenue |
Invoicing in Morocco: your questions
How long must invoices be kept?
Ten years. The Commercial Code and the General Tax Code require invoices and accounting documents to be kept for ten years, on paper or electronically.
Can an invoice already issued be modified?
No. An issued invoice is neither modified nor deleted: you issue a credit note that cancels or reduces it, then a new invoice if needed. Numbering stays continuous.
Is the customer’s ICE mandatory?
Yes between VAT-registered businesses: without its ICE on the invoice, the customer loses the deduction of the expense and of the VAT. For a sale to a private individual, the customer’s ICE is not required.
Is the amount in words mandatory?
Yes, the total incl. VAT written out in words is one of the items expected on a Moroccan invoice. Invoicing software generates it automatically.
Will an Excel invoice still be accepted?
For now yes, if every mandatory item is present. With e-invoicing, the DGI will require a structured format produced by software: see our guide to e-invoicing in Morocco.
Move from Excel to automated invoicing
A 30-minute demo: quotations, compliant invoices, payment reminders and integrated accounting with Odoo.
Book a demoOfficial sources
To check rates and obligations, refer to the official texts in force: