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 "Plano de Contas" resource and the "Listar IDs dos Planos de Contas" operation, it retrieves a list of account plan IDs associated with a given condominium or all condominiums.

Common scenarios include:

  • Fetching account plan identifiers to synchronize financial data.
  • Automating reporting or reconciliation processes by obtaining relevant account plans.
  • Integrating with other systems that require knowledge of existing account plans in Superlogica.

Example: A user wants to retrieve all account plan IDs for a specific condominium to update their internal accounting system accordingly.

Properties

Name Meaning
ID do Condomínio The condominium ID to filter account plans. Use "-1" to list account plans for all condominiums.

Output

The node outputs an array of JSON objects, each representing the result of the operation for an input item. For the "Listar IDs dos Planos de Contas" operation, the json field contains the list of account plan IDs retrieved from the Superlogica API.

The output structure is:

[
  {
    "json": {
      // Data returned by the API, typically an array or object containing account plan IDs
    },
    "pairedItem": {
      "item": 0
    }
  },
  ...
]

No binary data output is produced by this node.

Dependencies

  • Requires valid credentials for the Superlogica API, including an API URL (defaulting to https://api.superlogica.net/v2/condor), an application token, and an access token.
  • The node depends on the external Superlogica API service being available and accessible.
  • Proper configuration of these credentials within n8n is necessary before execution.

Troubleshooting

  • Missing Credentials Error: If credentials are not provided or invalid, the node will throw an error indicating that credentials are missing. Ensure that the API authentication tokens are correctly configured in n8n.
  • API Connectivity Issues: Network problems or incorrect API URLs can cause failures. Verify network connectivity and the correctness of the API endpoint.
  • Invalid Condominium ID: Providing an invalid or non-existent condominium ID may result in empty results or errors. Confirm the ID is correct or use "-1" to fetch all.
  • Handling Failures: If the node is set to continue on failure, errors for individual items will be included in the output JSON under an error key.

Links and References

Discussion