About this endpoint
What it does
Checks whether a supplied CNPJ number is valid and returns a validation result object. The response includes the original input value, the document type, whether it is valid, and an optional formatted value.
Path Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| number | String | Yes | The CNPJ number to validate. |
Response
Returns a JSON object with document_type and input_value string fields, an is_valid boolean field, and a formatted_value field that is either a string or null. Success response: 200.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| document_type | String | Yes | The document type associated with the validation result. |
| input_value | String | Yes | The original input value that was validated. |
| is_valid | Boolean | Yes | Indicates whether the supplied value is valid. |
| formatted_value | String | No | The formatted version of the input value, or null when not available. |



