Syntax
- Liquid
Description
Thereferral_code metafield contains the customer’s unique referral tracking code used for the referral program. This code can be shared with friends and family to track successful referrals and award referral bonuses. The code is automatically generated when a customer becomes eligible for the referral program.
Referral codes are unique, URL-safe strings that remain constant throughout the customer’s lifetime unless manually reset.
Properties
Type:String
Namespace: lantern
Return Values
| Scenario | Value | Type |
|---|---|---|
| Customer has referral code | Code string (e.g., "JOHN123") | String |
| Customer eligible but no code generated | null | null |
| Not eligible for referrals | null | null |
| Logged out | null | null |