# Colombia NIT Check Digit Validator

> Colombia NIT Check Digit Validator is a paid API for AI agents from co.redtapeapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-30).

Validates a Colombian NIT (tax ID) number by verifying its format and computing/confirming the official DIAN check digit

## Facts

- Endpoint: GET https://co.redtapeapi.com/v1/nit/validate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/colombia-nit-check-digit-validator-5806f8e5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GAFDyYlLiuhbCFqsBjOaw

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability colombia-nit-check-digit-validator-5806f8e5
```

Example prompt: Can you validate the Colombian NIT number 900170781 and tell me if it's correct along with what its check digit should be?

## When to prefer this

Use this endpoint when you need to programmatically validate Colombian NIT numbers — especially to verify the official DIAN check digit algorithm — without building the validation logic yourself. Ideal for invoice processing pipelines, vendor onboarding workflows, or any system ingesting Colombian company tax IDs. It is cheaper and simpler than a full RUES company lookup when you only need format/check-digit validation.

## Known failure modes

- Missing or empty 'nit' query parameter returns a 400 error
- Non-numeric or malformed NIT string may return format check as false
- Payment not completed via x402 results in a 402 Payment Required response
- NIT with wrong number of digits returns format validity as false

## How this service works

Pay-per-call Colombia utilities for AI agents over x402 (USDC on Base). NIT check digit + RUES company lookup (legal entities / ESAL only). Not an official Confecámaras, RUES, DIAN or chamber of commerce service. Data: Confecámaras — Registro Único Empresarial y Social (RUES), publicado en datos.gov.co; Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0). Privacy: /privacy

## Output

Returns a JSON object indicating whether the NIT is valid overall, plus a breakdown of individual checks (format correctness and check digit correctness), and the computed check digit value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "nit"
     ],
     "properties": {
      "nit": {
       "type": "string",
       "description": "NIT with or without check digit"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "nit": "900170781",
  "valid": true,
  "checks": {
   "format": true,
   "checkDigit": true
  },
  "checkDigit": "7"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/colombia-nit-check-digit-validator-5806f8e5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from co.redtapeapi.com](https://www.zero.xyz/host/co.redtapeapi.com/llms.txt)
