validate_nit_co
Validates Colombian NIT tax IDs using DIAN checksum algorithm. Returns validity and verification digit for electronic invoicing and supplier registration.
Instructions
Validates a Colombian NIT (Número de Identificación Tributaria) — the tax identification number for companies and legal entities in Colombia, issued by the DIAN (Dirección de Impuestos y Aduanas Nacionales). Applies the official weighted modulo-11 checksum algorithm with the DIAN verification digit. Returns { valid: boolean, nit: string, verification_digit: string } or { valid: false, reason: string }. Use when processing Colombian electronic invoices (factura electrónica), supplier registration, or DIAN compliance workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nit | Yes | Colombian NIT with or without verification digit. Example: '900123456-7' or '9001234567' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| nit | No | ||
| verification_digit | No | ||
| reason | No |