# 1. Bulk License Purchase

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

---

## 1. Bulk License Purchase

### 1.1 Bulk License Purchase
**What it does:** Lets the Training Institute purchase licenses in bulk: the Institute selects the license type, the quantity, and the term, and completes the purchase. The licenses are added to the institute's pool immediately on successful payment. This is the primary way the Institute acquires access for its students.

**Sub-features:**
- Bulk license purchase flow
- License type selection
- Quantity selection
- Term selection (monthly, annual)
- Licenses added to the pool on payment
- Purchase confirmation shown
- Purchase available on web and mobile
- Purchase event logging (initiated, completed)
- Audit logging of the bulk license purchase

**Training Institute User Journey:**
1. Training Institute opens the bulk license purchase.
2. Training Institute selects the license type.
3. Training Institute selects the quantity.
4. Training Institute selects the term.
5. The licenses are added to the pool on payment.
6. The purchase confirmation is shown.
7. Training Institute opens Profile → "Activity" and confirms the purchase events are recorded.

**Rules & Edge Cases:**
- The licenses are added to the pool immediately on successful payment.
- The quantity has a minimum and a maximum.
- Purchase events (initiated, completed) are logged with the account and the timestamp.
- The bulk license purchase is audit-logged with the account and the timestamp.

### 1.2 License Tiers & Plans
**What it does:** Shows the Training Institute the available license tiers and plans: the per-student pricing, the volume discounts, and the features included in each tier. The Institute compares the tiers and selects the one that fits. This helps the Institute choose the right plan for its size.

**Sub-features:**
- License tiers list
- Per-student pricing shown
- Volume discounts shown
- Features included per tier
- Compare tiers side by side
- Select a tier for purchase
- Tiers available on web and mobile
- Tiers event logging (viewed, selected)
- Audit logging of the license tiers and plans

**Training Institute User Journey:**
1. Training Institute opens the license tiers.
2. The license tiers list is shown.
3. The per-student pricing is shown.
4. The volume discounts are shown.
5. The features included per tier are shown.
6. Training Institute compares the tiers side by side.
7. Training Institute opens Profile → "Activity" and confirms the tiers events are recorded.

**Rules & Edge Cases:**
- The volume discounts apply at quantity thresholds.
- The features included per tier are shown.
- Tiers events (viewed, selected) are logged with the account and the timestamp.
- The license tiers and plans is audit-logged with the account and the timestamp.

### 1.3 Purchase History
**What it does:** Shows the Training Institute its license purchase history: all past bulk purchases with the date, quantity, tier, and amount. The Institute can filter by period and export the history. This gives the Institute a record of its license acquisitions.

**Sub-features:**
- Purchase history list
- Date, quantity, tier, and amount per purchase
- Filter by period
- Export the history
- History paginated
- History available on web and mobile
- History event logging (viewed, exported)
- Audit logging of the purchase history

**Training Institute User Journey:**
1. Training Institute opens the purchase history.
2. The purchase history list is shown.
3. The date, quantity, tier, and amount are shown per purchase.
4. Training Institute filters by period.
5. Training Institute exports the history.
6. The history is paginated.
7. Training Institute opens Profile → "Activity" and confirms the history events are recorded.

**Rules & Edge Cases:**
- The history is filterable by period.
- The history can be exported.
- History events (viewed, exported) are logged with the account and the timestamp.
- The purchase history is audit-logged with the account and the timestamp.
