Customer Webhooks

Events

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

Fields

NameTypeDescription
customerCustomer The customer this event is related to
organizationOrganizationTiny The organization the customer belongs to

Example

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

Events

customer.updated-statisticsA customers statistics have been updated

Fields

NameTypeDescription
statisticsCustomerStatistics The current statistics of the customer
customerCustomerTiny The customer that the statistics has been updated for
organizationOrganizationTiny The 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": "ORG001",
    "name": "My Awesome Business"
  }
}

In this article