✅ ValidaLatam All validators · API docs · RapidAPI · ES

NIT Validator

Colombian NIT (tax ID) · Issuer: DIAN. DIAN e-invoicing, supplier registration, withholding.

Free online validator

Validated with the public algorithm; we don't store your input.

Format

Up to 15 body digits plus a verification digit (DV): 900.123.456-7.

Check-digit algorithm

  1. DIAN weights right-to-left: 3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71.
  2. r = sum mod 11.
  3. DV = r if r ≤ 1, else 11 − r.

Use cases

DIAN e-invoicing, supplier registration, withholding.

Code examples

# curl (RapidAPI)
curl -X POST "https://validalatam.p.rapidapi.com/validate" -H "Content-Type: application/json" \
  -H "X-RapidAPI-Key: $RAPIDAPI_KEY" -H "X-RapidAPI-Host: validalatam.p.rapidapi.com" \
  -d '{"type":"CO_NIT","value":"8340594391"}'
# Python
import requests
r = requests.post("https://validalatam.p.rapidapi.com/validate", json={"type": "CO_NIT", "value": "8340594391"},
                 headers={"X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com"})
print(r.json()["valid"], r.json()["formatted"])
// JavaScript (fetch)
const r = await fetch("https://validalatam.p.rapidapi.com/validate", { method: "POST",
  headers: { "Content-Type": "application/json", "X-RapidAPI-Key": KEY, "X-RapidAPI-Host": "validalatam.p.rapidapi.com" },
  body: JSON.stringify({ type: "CO_NIT", value: "8340594391" }) });
const { valid, formatted, error } = await r.json();
# Response
{
  "valid": true,
  "type": "CO_NIT",
  "country": "CO",
  "input": "8340594391",
  "normalized": "8340594391",
  "formatted": "834.059.439-1"
}

API plans on RapidAPI

Free plan to get started; paid plans for production volume and batch validation (up to 1000 per request).

See plans on RapidAPI →

FAQ

How is the NIT check digit calculated?

DIAN weights right-to-left: 3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71. r = sum mod 11. DV = r if r ≤ 1, else 11 − r.

What is the NIT format?

Up to 15 body digits plus a verification digit (DV): 900.123.456-7.

Does a Colombian cédula have a DV?

When used as a natural-person NIT, yes: the same DIAN formula applies.

Is this validator free?

Yes, the web tool is free. To integrate it, use the API: there's a free plan on RapidAPI.

Does the API store the numbers I validate?

No. Validation is deterministic, with no storage and no third-party lookups.

Other validators

CUIT · ArgentinaCUIL · ArgentinaDNI · ArgentinaCBU · ArgentinaCVU · ArgentinaCPF · BrazilCNPJ · BrazilRFC · Mexico