br__validate_cnpj
Validates a Brazilian CNPJ (company tax ID) in both legacy numeric and new alphanumeric formats, with or without separators.
Instructions
Validate a Brazilian CNPJ (company tax ID).
Accepts both the legacy all-numeric form (14 digits) and the alphanumeric form introduced by NT 2026.004 / PL_010d (12 alphanumeric characters + 2 numeric check digits, production from 2026-07-01).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cnpj | Yes | CNPJ string, with or without ``.``/``/``/``-`` separators. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| value | No | ||
| country_code | No | ||
| error | No |