Tresoria
← All articles
Blog

RIB and ICE in Morocco: how to read a bank statement

April 3, 2026

Decoding a Moroccan bank statement: the structure of the 24-digit RIB, the 15-digit ICE, what these identifiers are for, and why they matter for treasury, reconciliation and importing statements.

How to read a Moroccan bank statement

A Moroccan bank statement summarises the movements on an account over a given period. At the top you will find the account holder's identity, the branch details and, above all, the RIB, which uniquely identifies the account. Then come the opening balance, the list of entries and the closing balance.

Each entry line generally shows a transaction date, a value date, a description and an amount in debit or credit. The value date, often different from the transaction date, determines when the movement is actually taken into account for calculating interest and the cash position: a crucial nuance in treasury management.

Reading these elements is the basis of any rigorous monitoring. Two identifiers appear constantly in banking and commercial exchanges in Morocco: the RIB for the account, and the ICE for the company.

The RIB: 24 digits decoded

The RIB, or Relevé d'Identité Bancaire, is made up of 24 digits that uniquely identify an account. It breaks down into four blocks: a bank code, a city or locality (branch) code, the account number, and a RIB check key on the last two digits.

The bank code, on the first digits, designates the institution holding the account: each Moroccan bank has its own code. The RIB key is a control key calculated from the other digits; it helps detect a data-entry error. In between, the middle digits identify the branch and the account number itself.

The RIB also sits at the heart of the Moroccan IBAN, which adds the prefix MA followed by two check digits in front of the 24 RIB digits, for 28 characters in total. A single wrong digit is enough to make the RIB invalid, which is precisely why the check key matters for transfers and direct debits.

The ICE: the common company identifier

The ICE, or Identifiant Commun de l'Entreprise, is a 15-digit identifier assigned to every company in Morocco. Its purpose is to provide a single identifier shared across the various administrations (tax, customs, social security, commercial register), where several separate numbers previously coexisted.

The ICE is mandatory on commercial and tax documents, notably invoices. It identifies without ambiguity the company issuing or receiving a transaction. The secondary establishments of a single company share a common root while remaining distinguishable, which makes it easier to track different sites.

For treasury, the ICE is valuable: it makes identifying third parties, customers and suppliers alike, more reliable than the company name alone, which is often subject to variations in spelling or abbreviation.

RIB, ICE, IF, RC: don't confuse the identifiers

Several identifiers coexist in Morocco, and they should not be confused. The RIB identifies a bank account; the ICE identifies the company across all administrations; the Tax Identifier (IF) is used by the tax authority; the Commercial Register number (RC) corresponds to registration with the commercial court.

These identifiers do not replace one another; they are complementary. A compliant invoice generally shows the issuer's company name, ICE, IF and RC, while a transfer order relies on the beneficiary's RIB or IBAN. Telling them apart avoids costly payment or reporting errors.

Why RIB and ICE matter for treasury

In treasury, the RIB and the ICE play a direct role in the reliability of operations. The RIB determines the routing of transfers and direct debits to the correct account: a wrong bank code, and the payment fails or goes to the wrong place. Recognising the bank code also tells you immediately which bank an account belongs to.

The ICE, for its part, secures the reconciliation between bank entries, invoices and third parties. When a payment lands on the account, linking the movement to the right customer is more reliable with a stable identifier such as the ICE than with a mere description, which is often truncated or approximate on statements.

Together, these identifiers reduce reconciliation gaps, speed up matching and improve the quality of forecasts, since well-identified inflows and outflows are easier to categorise and to plan.

Importing and cleaning up your bank statements

Many Moroccan companies feed their cash monitoring from the statements provided by their banks, exported as a file (CSV, Excel or XML) and then imported into a management tool. The quality of that import depends directly on clean identifiers: the RIB for the account, the ICE and descriptions for third parties.

This is where recognising bank codes proves its worth. Tresoria relies on a list of Moroccan banks to recognise the bank code contained in the RIB and to label each account correctly at import. Bank data enters through file import or scheduled connectors (SFTP, REST); a live bank connection is not yet available and is among the planned developments.

Upstream, a few good practices limit errors: checking the RIB control key, keeping each third party's ICE up to date, and standardising descriptions. Reliable identifiers going in mean faster reconciliation and more solid cash forecasts coming out.

See Tresoria on your own accounts

A thirty-minute demo, with your statements. No commitment.

Request a demo