Alegra (Unofficial - BETA) icon

Alegra (Unofficial - BETA)

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

Overview

The node integrates with the Alegra API to manage payments. Specifically, the Delete Payment operation allows users to remove a payment record from their Alegra account by specifying its unique Payment ID.

This node is beneficial in scenarios where you need to automate financial workflows, such as cleaning up erroneous or duplicate payment entries, or integrating payment management into broader business automation processes.

Example use case:
Automatically delete a payment record when a refund is processed in another system, ensuring your Alegra account stays synchronized without manual intervention.

Properties

Name Meaning
Payment ID The unique identifier of the payment to delete

Output

The output JSON contains the response from the Alegra API after attempting to delete the specified payment. Typically, this will be an empty object or confirmation message indicating successful deletion.

If the deletion fails, the output may contain an error message describing the issue.

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the Alegra API via an API key credential configured in n8n.
  • The node uses HTTP DELETE requests to the /payments/{id} endpoint of the Alegra API.
  • Proper permissions on the API key are necessary to delete payments.

Troubleshooting

  • Common issues:

    • Invalid or missing Payment ID: Ensure the Payment ID provided exists and is correct.
    • Authentication errors: Verify that the API key credential is valid and has permission to delete payments.
    • Network or API downtime: Check network connectivity and Alegra API status.
  • Error messages:

    • "Unknown error occurred": Generic catch-all error; check API credentials and network.
    • API-specific errors (e.g., "Payment not found"): Confirm the Payment ID is correct and the payment exists.

To resolve errors, verify input parameters, ensure API credentials are correctly set up, and consult Alegra API documentation for specific error codes.

Links and References

Discussion