Superlogica icon

Superlogica

Consumir API do Superlogica Condomínios

Overview

This node integrates with the Superlogica API, specifically providing access to various resources related to condominium management. The "Segunda Via" resource with the operation "2ª Via por CPF" allows users to retrieve a second copy of a document or invoice by searching with a CPF (Brazilian individual taxpayer registry identification). This is useful in scenarios where a resident or client needs to obtain a duplicate bill or document linked to their CPF.

Practical examples include:

  • A condominium manager retrieving a duplicate payment slip for a resident who lost the original.
  • Automating the retrieval of billing documents for residents based on their CPF for record-keeping or re-sending purposes.

Properties

Name Meaning
CPF The CPF number used to search in the system. It can be provided with or without punctuation, matching how it is registered in the system.

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. Each JSON object contains the data returned from the Superlogica API for the requested resource and operation. For the "2ª Via por CPF" operation, this will typically include details of the second copy document(s) associated with the given CPF.

If an error occurs during processing an item, the output JSON for that item will contain an error field with the error message.

No binary data output is indicated in the source code.

Dependencies

  • Requires an API key credential for the Superlogica API, including an app token and access token.
  • The node uses the base URL https://api.superlogica.net/v2/condor by default unless overridden by credentials.
  • Proper configuration of these credentials within n8n is necessary for successful API communication.

Troubleshooting

  • Missing Credentials: If the API credentials are not provided or invalid, the node will throw an error indicating that credentials were not supplied.
  • API Errors: Errors returned from the Superlogica API (e.g., invalid CPF format, no records found) will be surfaced as error messages in the output JSON under the error field if "Continue On Fail" is enabled; otherwise, they will cause the node execution to stop.
  • Incorrect CPF Format: Ensure the CPF is correctly formatted as per the system's expectations (with or without punctuation).
  • Network Issues: Connectivity problems to the Superlogica API endpoint may cause failures; verify network access and API availability.

Links and References

Discussion