Actions14
- Barcode Actions
- CNPJ Lookup Actions
- Currency Actions
- Email Validator Actions
- FIPE Actions
- Holiday Actions
- IP Lookup Actions
- Number to Word Actions
- QR Code Actions
- Validator Actions
- ZIP Code Actions
Overview
This node integrates with the Invertexto API to validate Brazilian CPF or CNPJ numbers. It is useful in workflows where you need to verify the authenticity of these identification numbers, such as user registration forms, financial applications, or data cleansing processes.
For example, when a user submits a CPF or CNPJ number, this node can confirm whether the number is valid before proceeding with further processing or storage.
Properties
| Name | Meaning |
|---|---|
| Value | The CPF or CNPJ number to validate. Example formats: 000.000.000-00 (CPF) or 00.000.000/0000-00 (CNPJ). |
| Type | Specify the type of document to validate. Options: - Auto Detect (default): Automatically determine if the value is CPF or CNPJ. - CPF: Force validation as CPF. - CNPJ: Force validation as CNPJ. |
Output
The node outputs a JSON object containing the validation result returned by the Invertexto API. This typically includes information indicating whether the provided CPF or CNPJ is valid or not.
The output structure is an array of JSON objects, each corresponding to an input item, for example:
[
{
"valid": true,
"type": "cpf",
"value": "000.000.000-00"
}
]
No binary data is produced by this operation.
Dependencies
- Requires an active API key credential for the Invertexto API.
- The node makes HTTP GET requests to
https://api.invertexto.com/v1/validator. - Ensure the API key is configured correctly in the node credentials.
Troubleshooting
- Invalid API Key or Authentication Errors: If the API key is missing or incorrect, the node will fail to authenticate. Verify that the API key credential is set up properly.
- Malformed Input Values: Providing improperly formatted CPF or CNPJ numbers may cause validation to fail or return false negatives. Use the recommended formatting or rely on auto-detection.
- Network Issues: Connectivity problems to the Invertexto API endpoint will cause request failures. Check network access and proxy settings if applicable.
- API Rate Limits: Excessive requests might be throttled by the API provider. Implement error handling or delays if needed.
Links and References
- Invertexto API Documentation (for detailed API usage and response formats)
- Brazilian CPF Validation Rules
- Brazilian CNPJ Validation Rules