Skip to main content
Retrieve the referral link for the currently logged-in customer, along with social sharing configuration.

Usage

Response

success
boolean
Whether the request was successful.
data.enabled
boolean
Whether the referral program is enabled for this shop.
data.referralCode
string
The customer’s unique referral code.
data.referralUrl
string
Full referral URL that can be shared.
data.stats
object
Quick referral statistics.
data.socialSharing
object
Social sharing configuration set by the merchant.

Sample response

Example: Share buttons