Cancels a Square invoice, preventing further payments from being collected. Requirements: - Invoice must be in SCHEDULED, UNPAID, or PARTIALLY_PAID state - Cannot cancel invoices in DRAFT state or terminal states (PAID, REFUNDED, CANCELED, FAILED) - Requires INVOICES_WRITE and O…
versionRequiredintegerThe current version number of the invoice. This must exactly match the invoice's current version on the server to prevent race conditions. Obtain the version from GET_INVOICE or LIST_INVOICES actions.
invoice_idRequiredstringThe Square-assigned ID of the invoice to cancel. Obtain this from GET_INVOICE or LIST_INVOICES actions.
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
OAuth connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.