Mexico Clave Bancaria Estandarizada (CLABE) API Lookup Documentations

Our Clave Bancaria Estandarizada (CLABE) API lookup function allows you to automate Clave Bancaria Estandarizada (CLABE) Lookup by a simple HTTP GET request. For casual user who is not interested to use API, similar function is available in Clave Bancaria Estandarizada (CLABE) page.

The function will return the result in either XML or JSON format. The default format is XML, but if you prefer to have the result in JSON format simply specify JSON format in the request. You can parse both format easily into various programming languages and platforms.

This page will describe on how to use our Clave Bancaria Estandarizada (CLABE) API and the expected result you will receive from our systems.

As part of system security and protection, you require to have an API key in order to access our API function, which will be given once you register for API Access.

How to do Clave Bancaria Estandarizada (CLABE) Lookup through API?


Clave Bancaria Estandarizada (CLABE) Lookup through our API is very simple. What you need to do is make a GET request.

General API Call Format

The default result format is in XML. If you want to get the result in this format, simply follow the API request as below,


https://api.bank.codes/mx-clabe/?format=[FORMAT]&api_key=[API_KEY]&clabe=[CLABE]

OR
https://api.bank.codes/mx-clabe/[FORMAT]/[API_KEY]/[CLABE]/

Input DataExplanation
[FORMAT]Specify the format of the output. Accept "xml" or "json"
[API_KEY]API Key assign to your account
[CLABE]Clave Bancaria Estandarizada (CLABE) which you would like to check without space or dash.

1. XML Format Example


https://api.bank.codes/mx-clabe/?format=xml&api_key=9fc53b3db09ca830488d19546a4fc2a1&clabe=032180000118359719

OR
https://api.bank.codes/mx-clabe/xml/9fc53b3db09ca830488d19546a4fc2a1/032180000118359719/

Expected Result in XML


<?xml version="1.0" encoding="utf-8"?>
<result>
  <clabe>032180000118359719</clabe>
  <bank_code>032</bank_code>
  <branch_code>180</branch_code>
  <account_number>0001183597</account_number>
  <control_digit>9</control_digit>
  <bank_name_short>IXE</bank_name_short>
  <bank_name>IXE Banco</bank_name>
  <valid>true</valid>
</result>


2. JSON Format Example


https://api.bank.codes/mx-clabe/?format=json&api_key=9fc53b3db09ca830488d19546a4fc2a1&clabe=032180000118359719

OR
https://api.bank.codes/mx-clabe/json/9fc53b3db09ca830488d19546a4fc2a1/032180000118359719/

Expected Result in JSON


{
    "clabe": "032180000118359719",
    "bank_code": "032",
    "branch_code": "180",
    "account_number": "0001183597",
    "control_digit": "9",
    "bank_name_short": "IXE",
    "bank_name": "IXE Banco",
    "valid": "true"
}

3. Error Messages

In some cases, the API may return a response containing error message. Below you can find a description of all possible error messages.

Error IDError MessageExplanation
1001API Key Not SpecifiedYou need to specify your API Key while making API request. Kindly check the API Key in user area.
1002Invalid API KeyPlease make sure that you specify the correct API Key assign to your account. Kindly check the correct API Key in the user area.
1003Suspended API KeyYour API Key was suspended due to system abuse. Kindly contact support.
1004API Usage Limit ExceededYou have exceeded the daily limit allocated to your account. You may purchase additional credit in the user area.
1005CLABE Not SpecifiedYou need to specify Clave Bancaria Estandarizada (CLABE) you want to check.
1006Invalid CLABEPlease make sure that you specify Clave Bancaria Estandarizada (CLABE) in the correct format.
1007CLABE Not ValidThe Clave Bancaria Estandarizada (CLABE) that you submitted has an invalid Control Digit.