Track Share
channel must be one of the channels that appear in the customer’s
referral_urls, and should match the link they actually shared —
device_share for a native share sheet, direct for a copied link, and so
on. Shares are categorized by channel in your referral analytics.
The customer must be enrolled in the program; sharing is not available to
guests or blocked customers.
A successful request returns 204 with no body.Authorizations
An API key linked to a Program in LoyaltyLion, with a set of permissions (scopes). API keys can be created manually, or acquired through an OAuth2 flow. The API key should be provided as a Bearer token in the Authorization header
Path Parameters
Your LoyaltyLion Site ID
Body
Body
The ID, in your platform or ecommerce store, of the customer who shared their referral link. For Shopify stores this can be either a GID or a regular numeric ID
This must be a customer whose state is enrolled — only enrolled customers have referral links to share
1"100001"
Which of the customer's referral_urls was shared. Pass the key you took the link from, not the link itself — we re-derive the referral code from the customer and the channel, so you never have to parse one out of a URL
direct, facebook, twitter, email, whatsapp, instagram, device_share "whatsapp"
Response
204