About this endpoint
What it does
Checks a CNH number and returns a validation result for the supplied value. The response includes whether the input is valid, the original input value, the document type, and an optional formatted value.
Path Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| number | String | Yes | CNH number to validate. |
Response
Returns a JSON object with is_valid boolean, input_value string, document_type string, and formatted_value string or null fields. The output schema describes a validation result object; the required fields are document_type, input_value, and is_valid.
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| is_valid | Boolean | Yes | Indicates whether the provided CNH number is valid. |
| input_value | String | Yes | The input value that was validated. |
| document_type | String | Yes | The document type returned by the validation result. |
| formatted_value | String | Null | No | Formatted version of the input value, if provided by the service. |



