This reference provides the codes for major Mexican financial institutions used in SPEI transactions and withdrawals.

Institution Codes

The following are the major Mexican financial institutions and their corresponding codes for SPEI transactions:
CodeBank NameCLABE PrefixType
40012BBVA México012Commercial Bank
40014Santander014Commercial Bank
40021HSBC021Commercial Bank
40072Banorte072Commercial Bank
40646STP646Payment Institution
40137Banregio137Commercial Bank
40058Banco Azteca058Commercial Bank
40030Bajío030Commercial Bank
40036Inbursa036Commercial Bank
40042Mifel042Commercial Bank
40060Bansi060Commercial Bank
40102The Royal Bank102Foreign Bank
40103American Express103Credit Card Company
40106Bank of America106Foreign Bank
40108JP Morgan108Foreign Bank
40110Credit Suisse110Foreign Bank
40124Deutsche Bank124Foreign Bank
40126Credit Agricole126Foreign Bank
40127Azteca127Commercial Bank
40128Autofin128Development Bank
40129Barclays129Foreign Bank
40130Compartamos130Development Bank
40131Banco Famsa131Commercial Bank
40132BMULTIVA132Brokerage
40133ACTINVER133Brokerage
40135NAF135Development Bank
40136Intercam Banco136Commercial Bank
40138Intercam138Brokerage
40139Bancoppel139Commercial Bank
40140ABC Capital140Brokerage
40141UBS Bank141Foreign Bank
40143CIBanco143Commercial Bank
40145Bbase145Commercial Bank
40147Bankaool147Commercial Bank
40148Pagatodo148Payment Institution
40150Inmobiliario150Development Bank
40151Donde151Payment Institution
40152Bancrea152Commercial Bank

Bank Account Types

There are different account types used in Mexican banking:
CodeTypeDescription
1Checking AccountCuenta de cheques
2Savings AccountCuenta de ahorros
3Credit AccountCuenta de crédito
40CLABE AccountCuenta CLABE (for SPEI)
10Investment AccountCuenta de inversión
For SPEI withdrawals, the account type is usually picked up automatically from the CLABE format. However, for some operations, you might need to specify it yourself. This example shows a complete beneficiary object for a SPEI withdrawal request:
{
  "beneficiary": {
    "account": "012345678901234567",    // 18-digit CLABE number
    "account_type": "40",               // CLABE account type for SPEI
    "name": "Roberto Martínez García",  // Account holder's full name
    "rfc": "MAGR850920XY1",            // Individual RFC (13 characters)
    "institution": "40012"             // BBVA México institution code
  }
}
Each field serves a specific purpose:
FieldTypeDescription
accountstringThe CLABE number identifying the recipient’s bank account.
account_typestringCode “40” indicates this is a CLABE account suitable for SPEI transfers.
namestringLegal name of the account holder, must match bank records.
rfcstringMexican tax ID for the account holder (individual or business).
institutionstringBank code corresponding to the first 3 digits of the CLABE (with “40” prefix).

See also

You can find more information about the Mexican banking system in the following guides: