square.onInvoiceUpdated subscribes to invoice.updated for the selected seller. It requires INVOICES_READ.
Example
automations/square-on-invoice-updated.automation.ts
Event
An invoice was changed. This event is also invoked following invoice.published and invoice.canceled events. Note that link expiry and dynamic link generation for the public_url field don’t trigger an event. The signal resolves to the officialSquare.InvoiceUpdatedEvent payload with type narrowed to invoice.updated.