This event is fired when a customer is deleted from your workspace.

Schema

View JSON Schema →

Example:

{
  "timestamp": "2023-10-19T14:05:22.312Z",
  "workspaceId": "w_01GST0W989ZNAW53X6XYHAY87P",
  "payload": {
    "eventType": "customer.customer_deleted",
    "previousCustomer": {
      "id": "c_01HBXGTDV76AW7F14QV7EGWDJB",
      "email": {
        "email": "peter@example.com",
        "isVerified": false,
        "verifiedAt": null
      },
      "externalId": null,
      "fullName": "Peter Santos",
      "shortName": "Peter",
      "markedAsSpamAt": null,
      "markedAsSpamBy": null,
      "customerGroupMemberships": [],
      "createdAt": "2023-10-04T14:17:41.991Z",
      "createdBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      },
      "updatedAt": "2023-10-04T14:17:41.991Z",
      "updatedBy": {
        "actorType": "system",
        "system": "email_inbound_handler"
      }
    }
  },
  "id": "pEv_01HD442MG86ATWJ2MDEYCV6VPV",
  "webhookMetadata": {
    "webhookTargetId": "whTarget_01HD4400VTDJQ646V6RY37SR7K",
    "webhookTargetVersion": "2024-09-18",
    "webhookDeliveryAttemptId": "whAttempt_01HD444M37N1HYFVJ92DA05BQK",
    "webhookDeliveryAttemptNumber": 1,
    "webhookDeliveryAttemptTimestamp": "2023-10-19T14:06:27.431Z"
  },
  "type": "customer.customer_deleted"
}