Webhook events
program_events/customer.moved_to_loyal_segment
This webhook triggers when a customer moves to the ‘Loyal’ insight segment.
To subscribe to this topic your access token needs to contain the
read_customers
scope.
Payload
Customer object with the same shape as the Customers API response
The name of the insight segment that the customer has moved into
The name of the insight segment that the customer has moved from, or
null
if they were not previously in a segmentThe number of orders the customer has placed
The total lifetime spend of the customer in currency subunits, e.g. $150 will be
15000
ISO 8601
timestamp of the customer's last orderAverage value of the customer's basket
Example
Example