Actions6
- Autenticação Actions
- Dívida Actions
- Pagamento Actions
- Acordo Actions
Overview
This node integrates with the Negocie API to perform various financial operations related to debt management. Specifically, for the Autenticação resource and the Autenticar devedor operation, it authenticates a debtor by validating their CPF or CNPJ (Brazilian individual or company tax identifiers) using provided client credentials.
Common scenarios where this node is beneficial include:
- Authenticating a debtor before performing further actions such as querying debts, processing payments, or proposing agreements.
- Automating debtor verification in financial workflows.
- Integrating debtor authentication into larger business processes involving credit or debt management.
Practical example:
- A financial service provider uses this node to authenticate a debtor’s identity via CPF/CNPJ before allowing them to view or negotiate outstanding debts.
Properties
| Name | Meaning |
|---|---|
| ClientId | Client ID used for API authentication. |
| ClientSecret | Client Secret used alongside ClientId for secure authentication. |
| CPF ou CNPJ | The CPF (individual) or CNPJ (company) number of the debtor to authenticate. |
Output
The node outputs a JSON object containing the response from the Negocie API after attempting to authenticate the debtor. Sensitive fields such as client_secret, password, or secret are removed from the output for security reasons.
The structure typically includes authentication tokens or status information confirming whether the debtor was successfully authenticated.
No binary data output is produced by this node.
Example output snippet (conceptual):
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "read write"
}
Dependencies
- Requires access to the Negocie API endpoint.
- Needs valid client credentials (ClientId and ClientSecret) for authentication.
- No special environment variables are indicated beyond these credentials.
- The node depends on internal helper functions (
negocieApiRequest) to make HTTP requests to the API.
Troubleshooting
- Invalid Credentials: If the ClientId or ClientSecret are incorrect, the API will reject the authentication request. Verify that the credentials are correct and have not expired.
- Invalid CPF/CNPJ Format: Ensure the CPF or CNPJ provided is correctly formatted and valid; otherwise, the API may return an error or fail to authenticate.
- API Connectivity Issues: Network problems or incorrect API URLs can cause failures. Check network connectivity and API endpoint availability.
- Value Validation Errors: Although not directly related to this operation, other operations validate numeric values strictly; ensure inputs meet expected ranges if extending usage.
- Error Messages: The node throws detailed errors when validation fails or the API returns an error. Review error messages carefully to identify issues.
Links and References
- Negocie API Documentation (hypothetical link, replace with actual if available)
- Brazilian CPF and CNPJ format references:
This summary is based solely on static analysis of the provided source code and property definitions.