Actions37
- Contact Actions
- Invoice Actions
- Item Actions
- Payment Actions
- Estimate Actions
- Tax Actions
- Bank Account Actions
Overview
This node integrates with the Alegra API to manage bank accounts. Specifically, the "Get" operation for the "Bank Account" resource retrieves detailed information about a specific bank account by its ID. This is useful in scenarios where you need to fetch current details of a bank account stored in Alegra, such as for reporting, reconciliation, or further processing in an automated workflow.
Practical examples:
- Fetching bank account details before making a payment or transfer.
- Retrieving bank account info to display or log in a dashboard.
- Using bank account data to validate transactions or update records in other systems.
Properties
| Name | Meaning |
|---|---|
| Bank Account ID | The unique identifier of the bank account to retrieve. This is a required string input. |
Output
The output is a JSON object representing the bank account details returned from the Alegra API. It typically includes fields such as the bank account's name, type, initial balance, currency, and any additional metadata stored in Alegra.
No binary data output is produced by this operation.
Example structure (simplified):
{
"id": "string",
"name": "string",
"type": "string",
"initialBalance": "string",
"initialBalanceDate": "string",
"currency": {
"code": "string"
},
...
}
Dependencies
- Requires an active connection to the Alegra API via an API key credential configured in n8n.
- The node uses the base URL from the configured environment in the credential to make authenticated HTTP requests.
- No other external dependencies are needed.
Troubleshooting
Common issues:
- Invalid or missing Bank Account ID will cause the API call to fail.
- Incorrect or expired API credentials will result in authentication errors.
- Network connectivity problems can prevent reaching the Alegra API endpoint.
Error messages:
"Unknown error occurred": Generic catch-all; check network and API credentials.- API-specific errors (e.g., 404 Not Found) indicate the bank account ID does not exist.
Resolutions:
- Verify the Bank Account ID is correct and exists in Alegra.
- Ensure the API key credential is valid and has necessary permissions.
- Check internet connectivity and firewall settings.
Links and References
- Alegra API Documentation (official API docs for more details on bank accounts)
- n8n documentation on API Credentials