Skip to main content
This webhook triggers when a customer moves to the Win Back insight segment. Note that while the webhook contains the word defected the segment is always referred to as ‘Win Back’. To subscribe to this topic your access token needs to contain the read_customers scope.

Payload

object
required
Customer object with the same shape as the Customers API response
string
required
The name of the insight segment that the customer has moved into
string | null
required
The name of the insight segment that the customer has moved from, or nullif they were not previously in a segment
number | null
required
The number of orders the customer has placed
number | null
required
The total lifetime spend of the customer in currency subunits, e.g. $150 will be 15000
string | null
required
ISO 8601 timestamp of the customer's last order
number | null
required
Average value of the customer's basket

Example

Example