Superlogica icon

Superlogica

Consumir API do Superlogica Condomínios

Overview

This node integrates with the Superlogica API, specifically targeting the "Plano de Contas" (Chart of Accounts) resource. The operation "Listar Contas de um Plano" allows users to retrieve a list of accounts associated with a specific Chart of Accounts plan. This is useful for financial management scenarios where you need to fetch and process account details from Superlogica's accounting system.

Practical examples include:

  • Automatically syncing account lists from Superlogica into your internal financial software.
  • Generating reports or dashboards based on the accounts defined in a particular Chart of Accounts.
  • Validating account structures before performing further financial operations.

Properties

Name Meaning
ID do Plano de Contas The unique identifier of the Chart of Accounts plan whose accounts you want to list. This is a required string input.

Output

The node outputs an array of JSON objects, each representing an account within the specified Chart of Accounts plan. Each item corresponds to one account retrieved from the Superlogica API.

  • The json field contains the account data as returned by the API.
  • If an error occurs during execution and the node is set to continue on failure, the output will contain an error field with the error message.
  • The node does not output binary data.

Dependencies

  • Requires valid credentials for the Superlogica API, including an API URL (defaulting to https://api.superlogica.net/v2/condor if not provided), an application token, and an access token.
  • These credentials must be configured in n8n prior to using the node.
  • The node depends on the external Superlogica API service being available and accessible.

Troubleshooting

  • Missing Credentials: The node will throw an error if the required API credentials are not provided. Ensure that the API key and tokens are correctly set up in n8n.
  • Invalid Plan ID: Providing an incorrect or non-existent Chart of Accounts ID may result in API errors or empty results. Verify the ID before running the node.
  • API Connectivity Issues: Network problems or API downtime can cause failures. Check network connectivity and Superlogica service status.
  • Error Handling: If the node is configured to continue on failure, errors will be included in the output JSON under an error property. Otherwise, execution will stop at the first error.

Links and References

Discussion