Referral Completed (2.0)
Sent when a customer refers a friend who meets your referral program's requirements. Use it to thank the customer for the referral.
To receive it, add yotpo/referral/completed to events when you create a filter, then create a store subscription for each store that installed your app. Yotpo sends the event to your target URL as a POST with this JSON body.
For Shopify stores that joined Yotpo Loyalty & Referrals after August 2024. Stores that joined earlier get Referral Completed (swell/referral/completed).
Headers
The event name. Matches topic in the body.
The kind of account the event belongs to: store for store events.
The store ID (app_key) the event belongs to.
A unique ID for the event.
A unique ID for this delivery to this target. Use it to ignore duplicates.
Payload
Response
Return any 2xx status quickly to acknowledge the event. Without one, Yotpo retries at least 10 times with exponential backoff.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.