bunq icon

bunq

Interact with bunq banking API

Actions42

Overview

This node interacts with the bunq banking API to perform various operations related to exporting account statements and data. Specifically, for the Delete Statement operation under the Export/Statement resource, it deletes a specified statement export from a monetary account.

Common scenarios where this node is beneficial include:

  • Automating the management of bank statement exports by deleting outdated or incorrect statements.
  • Integrating bunq statement management into workflows that require cleanup or maintenance of exported financial data.
  • Ensuring compliance by programmatically removing sensitive or unnecessary statement exports.

Practical example:

  • A user wants to delete a monthly bank statement export after processing it in their accounting system to avoid clutter or accidental reuse.

Properties

Name Meaning
User ID The ID of the user. Leave empty to use the current authenticated user.
Account ID The ID of the monetary account from which the statement will be deleted. (Required)
Statement ID The ID of the statement export to delete. (Required)

Output

The output JSON contains the response from the bunq API after attempting to delete the statement. Typically, this will confirm the deletion or provide relevant status information.

Example output structure:

{
  "Response": [
    {
      "Id": 12345,
      "Status": "SUCCESS",
      "Message": "Statement deleted successfully"
    }
  ]
}

Note: The exact fields depend on the bunq API response format but generally indicate success or failure of the deletion request.

The node does not output binary data for this operation.

Dependencies

  • Requires an active connection to the bunq API via an API key credential or OAuth2 token configured in n8n.
  • The node uses internal helper functions to make HTTP requests to the bunq API endpoints.
  • No additional external dependencies beyond the bunq API and n8n environment are required.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Statement ID or Account ID will result in errors from the bunq API.
    • Insufficient permissions or expired credentials can cause authentication failures.
    • Attempting to delete a statement that is currently being processed or locked may fail.
  • Error messages:

    • "Statement {id} not found": The specified statement ID does not exist or is inaccessible. Verify the ID and user/account context.
    • "Unauthorized" or "Authentication failed": Check that the API credentials are valid and have the necessary permissions.
    • "Statement {id} is not ready for deletion": The statement might be in a state that prevents deletion; wait until it is available or check its status.
  • Resolution tips:

    • Double-check all IDs and ensure they correspond to existing resources.
    • Refresh or reconfigure API credentials if authentication errors occur.
    • Review the statement's status before attempting deletion.

Links and References

Discussion