Customer Webhooks

Events

customer.createdA customer has been created
customer.updatedA customer has been updated

Fields

NameTypeDescription
customerCustomerThe customer this event is related to
organizationOrganizationTinyThe organization the customer belongs to

Example

{
  "event": "customer.created",
  "customer": {
    "...": "..."
  },
  "organization": {
    "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
    "name": "My Awesome Business"
  }
}

Events

customer.updated-statisticsA customers statistics have been updated

Fields

NameTypeDescription
statisticsCustomerStatisticsThe current statistics of the customer
customerCustomerTinyThe customer that the statistics has been updated for
organizationOrganizationTinyThe organization this customer belongs to

Example

{
  "event": "customer.updated-statistics",
  "statistics": {
    "...": "..."
  },
  "customer": {
    "email": "john@example.com",
    "firstName": "John",
    "id": "01FCCGYZA9JPQ97HBSTKW0KT7P",
    "lastName": "Smith",
    "phoneNumber": "+61411222333"
  },
  "organization": {
    "id": "01H0S97D8RX4RBFHHTB1HE7SFR",
    "name": "My Awesome Business"
  }
}

In this article