Skip to main content

Customer Webhook Events

The following webhook events are triggered during the customer lifecycle:

customer.created​

Triggered when a new Customer is created after an application is approved.

See the full customer.created event documentation for the complete payload structure.


customer.updated​

Triggered when a Customer is updated (by the Platform or by Unit for sensitive fields).

See the full customer.updated event documentation for the complete payload structure.


customer.archived​

Triggered when a Customer is archived.

See the full customer.archived event documentation for the complete payload structure.


Listening for Events​

To receive these events, you need to set up a webhook endpoint. See the Webhooks documentation for more information on configuring webhooks.

Example Event Payload​

When a customer is created, you will receive an event similar to:

{
"data": [
{
"id": "28",
"type": "customer.created",
"attributes": {
"createdAt": "2020-07-29T12:53:05.882Z",
"tags": {
"tag": "value"
}
},
"relationships": {
"customer": {
"data": {
"id": "52",
"type": "individualCustomer"
}
},
"application": {
"data": {
"id": "52",
"type": "individualApplication"
}
}
}
}
]
}

Event Flow​

  1. customer.created - Customer created after application approval
  2. customer.updated - Customer information is modified
  3. customer.archived - Customer relationship ends