Skip to main content
square.onCustomerDeleted subscribes to customer.deleted for the selected seller. It requires CUSTOMERS_READ.

Example

automations/square-on-customer-deleted.automation.ts

Event

A customer profile is deleted, including when customer profiles are merged into a new customer profile. The signal resolves to the official Square.CustomerDeletedEvent payload with type narrowed to customer.deleted.