Square icon

Square

Consume Square API

Invoice → Delete

AI-generated

Overview

This node interacts with the Square API to delete an invoice by its ID. It is useful in scenarios where you need to programmatically remove invoices from your Square account, such as automating invoice management or cleanup tasks.

Use Case Examples

  1. Deleting an invoice by providing its Invoice ID to remove outdated or incorrect invoices from the system.
  2. Automating invoice deletion as part of a larger workflow for financial record management.

Properties

Name Meaning
Invoice ID The unique identifier of the invoice to be deleted. This is a required field for the delete operation on the Invoice resource.

Output

JSON

  • id - The ID of the deleted invoice, confirming the deletion.
  • version - The version number of the deleted invoice, useful for concurrency control.

Dependencies

  • Requires an API key credential for Square API authentication.

Troubleshooting

  • Common issues include providing an invalid or non-existent Invoice ID, which will result in an error from the Square API.
  • If the version parameter is missing or incorrect, the deletion may fail due to version conflicts.
  • Ensure the API credentials are correctly configured and have the necessary permissions to delete invoices.

Links

Discussion