DGI guide
Identifiant Commun de l'Entreprise: definition, free registration, format check, and its role on your invoices.
Last updated 16 June 2026
By Salah Eddine Boussettah - Founder & CEO, Marrakech
The ICE (Identifiant Commun de l'Entreprise) is a 15-digit number that uniquely identifies each business in Morocco. Introduced in 2016, it is shared across all administrations (tax, customs, social security, courts) and must appear on all commercial documents, including invoices. It is obtained free online at ice.gov.ma. The ICE is distinct from the tax ID (IF): the ICE is common to all administrations, the IF is specific to the tax authority. From 2026, both the seller's and the customer's ICE remain mandatory on electronic invoices.
Your company's unique identifier
The ICE, or Identifiant Commun de l'Entreprise, is a 15-digit number assigned to every Moroccan business. Introduced in 2016 by joint decree, it serves as a single identifier shared across all administrations: tax, customs, social security, courts.
The purpose of the ICE is to simplify procedures: a single number identifies the business to all public services, instead of a multitude of references.
Not to be confused with the tax ID (IF): the ICE is common to all administrations, whereas the IF is specific to the DGI. Both are mandatory on a compliant invoice.
Free and online
The ICE is obtained free on the official portal ice.gov.ma, or assigned when the company is created.
Legal form, name, and registration references (commercial register where applicable).
The documents required for your legal form (articles of association, ID, etc.).
Your 15-digit number is assigned. Keep it: it must appear on your commercial documents.
Exact procedures may change. Always refer to the official portal ice.gov.ma.
Check the 15-digit format
Use the tool below to check that an ICE has the correct format (15 digits) before using it on an invoice. To confirm that an ICE exists and matches a given company, contact the relevant administrations or ask for supporting documents.
This checker validates format only. It does not verify the number's existence in the DGI registry (no official online lookup is available).
On all your commercial documents
The ICE must appear on all of a business's commercial documents: invoices, quotes, purchase orders, contracts, as well as on filings with the administrations.
On an invoice, both the seller's AND the customer's ICE are expected - one of the most-checked mandatory fields. With 2026 e-invoicing, both parties' ICE remains required, within a structured invoice (UBL 2.1).
The essentials about the ICE
An ICE has exactly 15 digits. A number of any other length is not a valid ICE.
The ICE (15 digits) is a common identifier shared across all administrations. The IF (tax ID) is specific to the tax authority. Both must appear on a compliant invoice.
Free online on the official portal ice.gov.ma, or automatically when the company is created.
Yes. The seller's and the customer's ICE are among the mandatory fields of an invoice in Morocco, including under 2026 e-invoicing.
You can check the format of an ICE (15 digits) with the tool on this page. To confirm an ICE exists, contact the relevant administrations.
This guide reflects publicly available information as of the date above. For binding rules, always consult the official sources:
Hisab is an independent e-invoicing software provider and is not affiliated with, or endorsed by, the DGI. This information is not legal or tax advice.
Save the ICE and IF once - Hisab carries them onto every invoice and into the UBL export for the DGI.