Webhook events
program_events/customer.referral_complete
This webhook is triggered when a customer follows a referral link and completes an order.
To subscribe to this webhook, your access token needs to contain the
read_customers
and read_orders
scopes.
Payload
The referring customer. An object with the same shape as the Customers API response
The new customer who has been referred. An object with the same shape as the Customers API response
The referral activity triggered by the referring customer. An object with the same shape as the Activities API response
The new referred customer’s order that triggered the referral. An object with the same shape as the Orders API response
Example
Example