validate_cuil
Validate Argentine CUIL labor identification numbers using weighted modulo-11 checksum. Ensure compliance in payroll and social security workflows.
Instructions
Validates an Argentine CUIL (Código Único de Identificación Laboral) — the labor identification number for individuals in Argentina, used for employment records and social security (ANSES). Uses the same weighted modulo-11 checksum as CUIT. Returns { valid: boolean, cuil: string } or { valid: false, reason: string }. Use when processing Argentine payroll, employment contracts, or any social security compliance workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cuil | Yes | Argentine CUIL with or without formatting. Example: '20-12345678-9' or '20123456789' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| cuil | No | ||
| reason | No |