Alegra (Unofficial - BETA) icon

Alegra (Unofficial - BETA)

Consume Alegra API - UNOFFICIAL BETA community node. NOT officially supported by Alegra.

Overview

This node integrates with the Alegra API to manage tax records. Specifically, the "Delete" operation under the "Tax" resource allows users to remove a tax entry by its unique identifier. This is useful in scenarios where a tax rate is no longer applicable or was created erroneously and needs to be removed from the system.

Practical examples include:

  • Cleaning up outdated tax rates that are no longer valid.
  • Removing mistakenly created tax entries to maintain accurate financial data.
  • Automating tax record management as part of broader accounting workflows.

Properties

Name Meaning
Tax ID The unique identifier of the tax to delete

Output

The output JSON contains the response from the Alegra API after attempting to delete the specified tax. Typically, this will confirm successful deletion or provide error details if the operation failed.

No binary data is output by this node.

Example output JSON might look like:

{
  "message": "Tax deleted successfully"
}

or, in case of an error:

{
  "error": "Tax not found"
}

Dependencies

  • Requires an active connection to the Alegra API via an API key credential configured in n8n.
  • The node uses HTTP requests authenticated with this API key to perform operations on Alegra's tax endpoints.
  • Network access to Alegra's API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent Tax ID will result in an error indicating the tax could not be found.
    • Missing or incorrect API credentials will cause authentication failures.
    • Network connectivity problems can prevent the node from reaching Alegra's API.
  • Error messages and resolutions:

    • "Tax not found": Verify the Tax ID is correct and exists in Alegra.
    • Authentication errors: Check that the API key credential is correctly set up and has sufficient permissions.
    • "Unknown error occurred": Could indicate network issues or unexpected API responses; retry or check network status.

Links and References

Discussion