✅ ValidaLatam All guides · API docs · RapidAPI · ES

How to validate a Colombian NIT

How the check digit works

A DIAN NIT carries a verification digit (DV) at the end. Send the NIT with its DV as the last digit.

  1. Take the number without the DV and walk it right to left multiplying by 3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71.
  2. Add up and compute r = sum mod 11.
  3. If r is 0 or 1 the DV is r; otherwise it is 11 − r.

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":"CO_NIT","value":"897.811.179-4"}'

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

Python

import requests

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

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

Real API response (synthetic value from /generate)

897.811.179-4 (CO_NIT):

{"valid":true,"type":"CO_NIT","country":"CO","input":"897.811.179-4","normalized":"8978111794","formatted":"897.811.179-4","error":null,"details":null}

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