Document validation is an essential step to ensure the integrity and reliability of the information provided by individuals in various transactions. In Brazil, the CPF (Cadastro de Pessoa Física) is widely used as a unique identifier for individuals.
The CPF consists of 11 digits and can be sent in plain numeric format or with punctuation (dots and dashes). The API supports both formats and offers endpoints that allow verifying the existence and validity of the information associated with this document.
Examples of valid CPFs:
- 12345678901
- 123.456.789-01
Validation Rules
- The CPF can be sent with or without formatting.
- If the CPF is invalid (example:
12345678900
), the API will return an error 422 - Unprocessable Entity.