National account numbers

Rules and formats of Spanish and Mexican account codes.

It can be said that practically every country has a different bank account number format, with particular rules.

For this reason, in order to validate any bank account number in a country, it will be necessary to know its algorithm beforehand. Normally there is specific documentation for each of the algorithms, and this is usually provided by banks in the country itself.

In Spain there is a specific format for account numbers that is used nationwide called Customer Account Code.

In Mexico there is a format called CLABE (Standardized Bank Key)

-CCC Code (Customer Account Code):

In Spain, all banks use the Customer Account Code format. It is a 20-digit sequence, the content of which is specified below:

  • 4 digits: Bank Code
  • 4 digits: Branch code
  • 2 digits: Check digit
  • 10 digits: customer account number.

There are lists provided by the banks that make it possible to verify whether the bank/branch code digit combination exists, in many cases providing their addresses and telephone numbers, which should ultimately be used to manually validate the data.

The two check digits serve to validate the rest of the account number.

The first check digit is used to validate the Bank Code and the branch code.

The second check digit is used to validate the account number.

-Code CLABE (Standardized Bank Code):

In Mexico, banks use the standardized bank key format, it is a 20-digit sequence, the content of which is specified below:

  • 3 digits: Bank Code
  • 3 digits: Plaza Code
  • 11 digits: account number
  • 1 digit: check digit
See also  iframe tag

As in Spain, there are lists provided by the banks that allow verifying the existence of the combination of bank code and location code.

Loading Facebook Comments ...
Loading Disqus Comments ...