validate_tax_id
Verify Spanish tax ID numbers (NIF, NIE, CIF) for individuals and companies using official algorithms. Returns validity, type, and formatted value.
Instructions
Validates a Spanish tax identification number. Supports NIF (individuals, 8 digits + letter), NIE (foreign residents, X/Y/Z + 7 digits + letter), and CIF (companies, letter + 7 digits + control). Returns validity, type detected, and formatted value. Source: Ministerio del Interior (NIF/NIE algorithm), Real Decreto 1065/2007 (CIF).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tax ID to validate (NIF, NIE, or CIF) |