Skip to main content

Documentation Index

Fetch the complete documentation index at: https://86d.app/docs/llms.txt

Use this file to discover all available pages before exploring further.

The referrals module gives every customer a unique referral code. When a new customer places their first order using that code, both parties receive a reward: a discount, store credit, or loyalty points (configurable per program). Source: modules/referrals · npm: @86d-app/referrals

Installation

86d module add referrals

Configuration

referrals({
  rewardType: "store-credit",      // "store-credit" | "discount" | "loyalty-points"
  referrerRewardAmount: "1000",    // in cents or points
  refereeRewardAmount: "1000",
});

Store endpoints

MethodPathDescription
GET/referrals/meGet the customer’s code and stats
POST/referrals/redeemApply a referral code at signup or checkout

Components

  • <ReferralDashboard />, <ReferralBadge />.