Zoho Books icon

Zoho Books

Consume Zoho Books API

Invoice → Delete

AI-generated

Overview

This node integrates with the Zoho Books API to manage invoices, specifically supporting operations such as creating, updating, retrieving, deleting, and marking invoices as sent. The "Delete" operation for the "Invoice" resource allows users to remove an existing invoice by specifying its unique ID.

Typical use cases include automating invoice management workflows where invoices need to be programmatically deleted based on certain conditions, such as canceled orders or erroneous entries. For example, a business could automatically delete draft invoices that were never finalized or remove invoices related to returned products.

Properties

Name Meaning
Invoice ID The unique identifier of the invoice to delete. This is a required string input.

Output

The output of the delete operation typically contains a JSON object indicating the result of the deletion request. It may include confirmation of successful deletion or error details if the operation failed.

Since this node interacts with the Zoho Books API, the output JSON structure corresponds to the API's response for the delete invoice endpoint. No binary data output is involved in this operation.

Example output JSON might look like:

{
  "message": "Invoice deleted successfully",
  "invoice_id": "1234567890"
}

or, in case of failure:

{
  "error": "Invoice not found"
}

Dependencies

  • Requires an active connection to the Zoho Books API.
  • Needs an API authentication token configured via OAuth2 credentials within n8n.
  • The node dynamically imports the Invoice resource handler from the bundled resources at runtime.

Troubleshooting

  • Common Issues:

    • Providing an invalid or non-existent Invoice ID will cause the API to return an error.
    • Network connectivity issues or expired authentication tokens can prevent successful API calls.
    • Insufficient permissions in the connected Zoho Books account may block deletion.
  • Error Messages:

    • "Invoice not found": The specified Invoice ID does not exist. Verify the ID is correct.
    • "Unauthorized" or authentication errors: Check that the OAuth2 credentials are valid and have not expired.
    • "Unsupported resource": If the resource parameter is incorrect, ensure "invoice" is selected.
  • Resolutions:

    • Double-check the Invoice ID input.
    • Refresh or reconfigure the API credentials.
    • Confirm user permissions in Zoho Books allow invoice deletion.

Links and References

Discussion