✅ ValidaLatam All guides · API docs · RapidAPI · ES

How to validate a Mexican CLABE

How the check digit works

A CLABE has 18 digits: bank (3), plaza (3), account (11) and check digit (1).

  1. Multiply the first 17 digits by the repeating weights 3,7,1.
  2. Keep the last digit of each product (mod 10) and add them up.
  3. Check digit = (10 − sum mod 10) mod 10.

Validate with the API

Direct use is free: 50 requests per IP per day, no signup. Endpoints: POST /validate, POST /batch, GET /generate/{doc_type} (for testing only: synthetic data, not real identities).

curl

curl -X POST "https://validalatam.ia-latam.app/validate" -H "Content-Type: application/json" \
  -d '{"type":"MX_CLABE","value":"014721295242460986"}'

# synthetic test data only / solo para pruebas
curl "https://validalatam.ia-latam.app/generate/MX_CLABE"

Python

import requests

BASE = "https://validalatam.ia-latam.app"

r = requests.post(f"{BASE}/validate", json={"type": "MX_CLABE", "value": "014721295242460986"})
print(r.json()["valid"], r.json()["formatted"])

Real API response (synthetic value from /generate)

014721295242460986 (MX_CLABE):

{"valid":true,"type":"MX_CLABE","country":"MX","input":"014721295242460986","normalized":"014721295242460986","formatted":"014 721 29524246098 6","error":null,"details":{"bank_code":"014","plaza":"721","account":"29524246098"}}

Plans

For production: Basic free (500 req), Pro US$9, Ultra US$29 and Mega US$99 per month on RapidAPI.

For AI assistants (MCP)

pip install validalatam-mcp

github.com/elmatis172/validalatam-mcp

← All guides · Contact: faucolabs@gmail.com