Referral Link Share

Sent when a customer shares their referral link with friends. Use it to tell the friend that someone they know likes your store.

To receive it, add swell/referral/share 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.

Shopify stores that joined Yotpo Loyalty & Referrals after August 2024 get Referral Link Share (2.0) instead.

Payload
string

The event name, swell/referral/share.

string

The display name of the event.

string

Your store's website URL.

string

Your store's name.

string

The customer's email address.

string

The email address of the referring customer.

customer
object

The customer.

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: store for store events.

string
required

The store ID (app_key) the event belongs to.

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…