Easybill icon

Easybill

Interact with Easybill API

Overview

This node integrates with the Easybill API to manage documents, specifically supporting operations on documents of type "Invoice." The "Delete Document" operation allows users to remove an invoice document from their Easybill account. This is useful in scenarios where invoices need to be retracted or corrected by deleting erroneous or outdated records.

Practical examples include:

  • Automatically deleting draft or canceled invoices during a workflow.
  • Cleaning up test invoices created during development or testing phases.
  • Removing duplicate invoices detected by other parts of a workflow.

Properties

Name Meaning
Currently only documents of type “Invoice” are supported. Informational notice indicating that only invoice-type documents can be deleted.
Document Select the document to delete. Options:
- From List: Search and select an invoice document from a list fetched via API.
- By ID: Provide the numeric ID of the invoice document to delete (only digits allowed).

Output

The node outputs a JSON array containing the result(s) of the delete operation. Typically, this will be a confirmation object or status indicating whether the deletion was successful. The exact structure depends on the Easybill API response but generally confirms the removal of the specified document.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Easybill API using an API key credential configured in n8n.
  • The node relies on internal helper methods to fetch lists of invoice documents for selection.
  • Proper permissions on the Easybill account to delete invoice documents are necessary.

Troubleshooting

  • Invalid Document ID: If the provided document ID does not match the expected numeric format, the node will reject it. Ensure the ID contains only digits.
  • Document Not Found: Attempting to delete a non-existent or already deleted document may cause errors. Verify the document exists before deletion.
  • Permission Errors: Insufficient API permissions can lead to authorization failures. Confirm the API key has delete rights on invoice documents.
  • API Connectivity Issues: Network problems or incorrect credentials will prevent communication with Easybill. Check API key validity and network access.
  • Unsupported Document Types: Only invoice documents are supported for deletion. Trying to delete other document types will not work.

Links and References

Discussion