# 1. Referral Identity & Assets

User Type: **Affiliate**
Source: *Mi Digital Academy - Education CRM Features Document*

---

## 1. Referral Identity & Assets

### 1.1 Unique Referral Link
**What it does:** Provides the Affiliate with a unique referral link that tracks all sign-ups and purchases made through it. The Affiliate can copy the link, view its performance, and regenerate it if needed. Every click and conversion through the link is attributed to the Affiliate. This is the core tool for driving referrals.

**Sub-features:**
- Unique referral link generated for the Affiliate
- Copy the referral link
- View the link's click and conversion counts
- Regenerate the referral link
- Attribution of sign-ups and purchases to the link
- Link available on web and mobile
- Link event logging (generated, copied, regenerated)
- Audit logging of the unique referral link

**Affiliate User Journey:**
1. Affiliate opens the dashboard.
2. The unique referral link is shown.
3. Affiliate copies the referral link.
4. The link's click and conversion counts are shown.
5. Affiliate can regenerate the referral link.
6. Sign-ups and purchases through the link are attributed to the Affiliate.
7. Affiliate opens Profile → "Activity" and confirms the link events are recorded.

**Rules & Edge Cases:**
- The referral link is unique to the Affiliate.
- The link's click and conversion counts are tracked.
- The link can be regenerated.
- Link events (generated, copied, regenerated) are logged with the account and the timestamp.
- The unique referral link is audit-logged with the account and the timestamp.

### 1.2 Referral QR Code
**What it does:** Provides the Affiliate with a QR code that encodes their unique referral link. The Affiliate can download the QR code and use it in print or digital materials. Scanning the QR code leads to the Affiliate's referral link. This makes offline and in-person referrals easy.

**Sub-features:**
- QR code generated from the referral link
- Download the QR code
- QR code reflects the current referral link
- Regenerate the QR code when the link changes
- Scan attribution to the Affiliate
- QR code available on web and mobile
- QR code event logging (generated, downloaded)
- Audit logging of the referral QR code

**Affiliate User Journey:**
1. Affiliate opens the dashboard.
2. The referral QR code is shown.
3. Affiliate downloads the QR code.
4. The QR code reflects the current referral link.
5. The QR code is regenerated when the link changes.
6. Scans are attributed to the Affiliate.
7. Affiliate opens Profile → "Activity" and confirms the QR code events are recorded.

**Rules & Edge Cases:**
- The QR code encodes the referral link.
- The QR code reflects the current referral link.
- The QR code is regenerated when the link changes.
- QR code events (generated, downloaded) are logged with the account and the timestamp.
- The referral QR code is audit-logged with the account and the timestamp.

### 1.3 Marketing Materials
**What it does:** Provides the Affiliate with ready-to-use marketing materials: banners, social media posts, and promotional graphics. The Affiliate can browse, preview, and download the materials, and use them to promote the courses. The materials are branded and up to date. This saves the Affiliate time creating promotional content.

**Sub-features:**
- Browse the marketing materials library
- Preview a material
- Download a material
- Materials categorized by type (banners, social posts, graphics)
- Materials are branded and up to date
- Materials available on web and mobile
- Materials event logging (viewed, downloaded)
- Audit logging of the marketing materials

**Affiliate User Journey:**
1. Affiliate opens the marketing materials.
2. The materials are browsed by category.
3. Affiliate previews a material.
4. Affiliate downloads the material.
5. The materials are branded and up to date.
6. Affiliate uses the material in a promotion.
7. Affiliate opens Profile → "Activity" and confirms the materials events are recorded.

**Rules & Edge Cases:**
- The materials are categorized by type.
- The materials are branded and up to date.
- Materials events (viewed, downloaded) are logged with the account and the timestamp.
- The marketing materials is audit-logged with the account and the timestamp.
