How does the tool check an ICE number?
The tool first removes spaces, dots and dashes, which often appear when an ICE number is copied from a printed document. It then counts what is left: a well-formed ICE number contains exactly 15 digits and nothing else. Otherwise it reports the problem and the number of digits found.
It does not query any official register and applies no official check-digit algorithm: it checks the shape of the number, not whether it exists.
- Empty: no number was entered.
- Non-digit character: a letter or symbol in the number, such as the letter O typed instead of a zero.
- Too short: fewer than 15 digits after cleaning.
- Too long: more than 15 digits after cleaning.
What is the ICE, and how does it differ from the IF and RC?
The ICE (Identifiant Commun de l'Entreprise, or common company identifier) is a 15-digit number shared by Moroccan administrations to identify a company and its establishments. It is assigned during the company's incorporation formalities. Its digits are generally presented as 9 identifying the company, 4 identifying the establishment and 2 control characters; the tool does not check this structure.
The ICE number is mandatory on invoices between businesses. Together with the IF (identifiant fiscal, the tax identification number), the RC (registre de commerce, the trade register number) and the taxe professionnelle number (business tax, formerly called patente), it is one of the usual mentions of an invoice. These numbers do not replace one another.
| Identifier | What it is | Where it appears |
|---|---|---|
| ICE | Common company identifier, 15 digits, shared across administrations | Invoices, quotes and commercial documents, for the seller and the business customer |
| IF | Tax identification number, assigned by the tax administration | Invoices and tax returns |
| RC | Registration number in the trade register | Invoices and the company's legal documents |
| Taxe professionnelle | Business tax number (formerly patente) | Invoices and document letterheads |
Examples: what the tool returns
The numbers below are fictitious and are only used to illustrate the format check.
Even the first, well-formed example proves nothing about the company: an ICE number can have the right format and still be wrong, for example if two digits were swapped.
- 001234567000089: 15 digits, well-formed format.
- 00123456700008: 14 digits, too short; a digit was probably left out.
- 001 234 567 0000 89: the spaces are removed, 15 digits remain, the format is accepted.
- 0012345670000890: 16 digits, too long; a digit was added or doubled.
- A number where the letter O was typed instead of a zero: invalid character reported.
What are the common mistakes with ICE numbers?
The format check catches missing digits, extra digits and letters typed in place of digits. It cannot detect swapped digits or another entity's number: only a comparison with an official document can.
- Confusing the ICE with the IF, the RC number or the taxe professionnelle number, often printed side by side.
- Letting Excel drop leading zeros or display the ICE in scientific notation: format the column as Text before typing or importing.
- Making a typo or swapping two digits when copying the number.
- Using the ICE of another company in the same group, when each entity has its own.
- Forgetting the customer's ICE on a business-to-business invoice.
A correct format is not a valid ICE: how do you confirm it?
This tool does not check that a number exists or that it belongs to a given company. To confirm a company's identity, rely on official sources: the official ICE services, or an official document provided by the company itself.
If you have doubts about your own ICE number, need an official attestation, or have a question about what your invoices must show, contact the official ICE services or your expert-comptable (chartered accountant). Invoicing rules change with the finance laws and official texts, so the information on this page is general and indicative.
How does SOGESTIO handle identifiers on your documents?
In SOGESTIO, PDF quotes and invoices carry your identifiers (ICE, IF, RC, patente) and your RIB (bank details), in French, Arabic or English, with a QR code containing the ICE, the number, the date and the amounts. Customer files can be imported from Excel or CSV; just keep the ICE column formatted as text.
A digital PDF supplier invoice (not a scan or a photo) is read automatically: the supplier is recognised by its ICE, duplicates are flagged and a draft purchase invoice is prepared for you to check. SOGESTIO also exports your validated invoices in the structured UBL 2.1 format (with ICE, IF and RC), which prepares the move to the electronic invoicing announced by the DGI.
Free, indicative tool: it does not replace advice from your accountant. Rates and rules change with the finance laws. Updated .
Frequently asked questions
Does this tool confirm that an ICE number exists?
No. It only checks the format: exactly 15 digits once spaces, dots and dashes are removed. It queries no official register. To confirm a company's identity, use the official sources.
What is an ICE number, and how many digits does it have?
The ICE (Identifiant Commun de l'Entreprise) is a 15-digit identifier shared by Moroccan administrations to identify a company and its establishments. It is separate from the IF (tax identification number) and the RC (trade register number).
Must my customer's ICE number appear on my invoice?
On an invoice between businesses, the customer's ICE is expected in addition to yours. An individual consumer normally has no ICE, but your own identifiers must always appear. If in doubt, ask your accountant to confirm.
Why does Excel change my ICE number?
Excel treats the ICE as a number: it drops leading zeros and may show it in scientific notation. Format the column as Text before typing or pasting the numbers, then check a few of them with this tool before any import.
Does SOGESTIO recognise a supplier by its ICE number?
Yes, when it automatically reads a digital PDF supplier invoice: the supplier is recognised by its ICE, duplicates are flagged and a draft purchase invoice is prepared for you to review. Scans and photos are not read this way.