Superlogica icon

Superlogica

Consumir API do Superlogica Condomínios

Overview

This node integrates with the Superlogica Condomínios API, allowing users to interact with various resources related to condominium management. Specifically, for the "Morador" resource and the "Listar Moradores" operation, it retrieves a list of residents (moradores) associated with a specified condominium. This is useful in scenarios where you need to automate or synchronize resident data from the Superlogica platform into other systems, generate reports, or trigger workflows based on resident information.

Practical example:
A property management company could use this node to automatically fetch all residents of a condominium at the start of each month to update their internal tenant database or send notifications.

Properties

Name Meaning
ID do Condomínio The unique identifier of the condominium whose residents are to be listed. This is a required string input.

Output

The node outputs an array of JSON objects, each representing a resident ("morador") retrieved from the Superlogica API for the specified condominium. Each item in the output corresponds to one resident's data as returned by the API.

If the node encounters errors during execution and "Continue On Fail" is enabled, the output will include error messages in the json.error field for the respective input item.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Superlogica API.
  • The node uses the Superlogica API endpoint, defaulting to https://api.superlogica.net/v2/condor if no custom URL is provided.
  • Proper configuration of the API credentials (including app token and access token) within n8n is necessary for successful operation.

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing credentials, ensure that the API authentication tokens are correctly set up in n8n.
  • API Access Issues: Errors related to authorization or connectivity may occur if the API tokens are invalid or expired, or if there is a network issue.
  • Invalid Condominium ID: Providing an incorrect or non-existent condominium ID will likely result in an empty list or an error from the API.
  • Handling Failures: Enable "Continue On Fail" in the node settings to allow processing of multiple items even if some fail, capturing error details in the output.

Links and References

Discussion