validate_cuit
Validate Argentine CUIT tax ID numbers using the official AFIP weighted modulo-11 checksum algorithm. Returns validity, CUIT string, and entity type for compliance workflows.
Instructions
Validates an Argentine CUIT (Código Único de Identificación Tributaria) — the tax identification number for companies, self-employed workers, and legal entities in Argentina, issued by AFIP (Administración Federal de Ingresos Públicos). Applies the official weighted modulo-11 checksum algorithm. Returns { valid: boolean, cuit: string, type: string } or { valid: false, reason: string }. CUIT prefix identifies entity type: 20/23/24/27 for individuals, 30/33/34 for companies. Use when processing Argentine invoices, supplier registration, or AFIP compliance workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cuit | Yes | Argentine CUIT with or without formatting. Example: '20-12345678-9' or '20123456789' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| cuit | No | ||
| type | No | ||
| reason | No |