Validate Tax Id
validate_tax_idValidates a Latin American tax ID: checks format and check digit, auto-detects the ID type, and returns canonical formatting and entity classification.
Instructions
Validate a Latin American national tax ID, including its check digit.
Supported countries (ISO 3166-1 alpha-2): CL (RUT), AR (CUIT/CUIL), MX (RFC), BR (CPF or CNPJ — auto-detected, including 2026 alphanumeric CNPJs), CO (NIT), PE (RUC), UY (RUT), EC (cédula or RUC — auto-detected), PY (RUC), VE (RIF), GT (NIT), DO (RNC), PA (RUC + DV), CR (cédula física/jurídica/DIMEX — format only), BO (NIT — format only).
Verifies the country's check digit where one is algorithmically verifiable. Exception: Mexico's RFC — SAT-issued RFCs deviate from the published check-character algorithm, so for MX only the format and the embedded birth/incorporation date are validated (the result carries "check_digit_verified": false to make this explicit).
Returns validity, canonical formatting, and — where the ID encodes it — whether it belongs to a person, company, or public entity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_id | Yes | ||
| country | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||