Webhook events
program_events/customer.points_earned
This webhook is triggered when the customer has earned points. It includes an
available_rewards
array of rewards that are actionable, in stock, enabled, and
affordable by the customer.
To subscribe to this webhook, your access token needs to contain the read_customers scope.
As many customers redeem their points immediately after earning them, and the payload includes a list of available rewards, this webhook is only sent after a 5 minute delay.
Payload
Customer object with the same shape as the Customers API response
Transaction object with the same shape as the Transactions API response. This is the transaction associated with this particular points earning event
Array of Reward objects with the same shape as the List Available Rewards API response
Example
Example