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 subscribe the filter to your target. 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).

Payload
string

The event name, yotpo/referral/completed.

string

The display name of the event.

string

Your store's website URL.

string

Your store's name.

perk
object

The reward record.

referral_code
object

The referring customer's referral code and its sharing stats.

friend_referral_code
object

The referred friend's own referral code and stats.

string

The email address of the customer who made the referral.

friend
object

The friend who was referred.

date-time

When Yotpo sent the event.

Headers
string
required

The event name. Matches topic in the body.

string
required

The kind of account the event belongs to.

string
required

Your store ID.

string
required

A unique ID for the event.

string
required

A unique ID for this delivery to this target. Use it to ignore duplicates.

Response
200

Return any 2xx status quickly to acknowledge the event. Without one, Yotpo retries at least 10 times with exponential backoff.

LoadingLoading…