Affiliate Program
Overview
The Affiliate Program lets Siyahfy vendors grow their customer base through referral-based marketing. Affiliates (partners, influencers, bloggers) sign up with OTP verification, receive a unique referral code, and earn commission on every sale they refer. The program has three portals: the Affiliate Portal for affiliates to track their earnings, the Vendor Panel for store owners to manage their affiliate settings, and the Admin Panel for Siyahfy platform administrators to oversee the entire program.
How It Works
Commission Structure
Vendors configure commission rules that determine how much affiliates earn:
| Setting | Description |
|---|---|
| Commission Rate | Percentage or fixed amount per sale |
| Cookie Duration | How long the referral attribution lasts (e.g., 30 days) |
| Minimum Payout | Minimum balance before an affiliate can request a payout |
| Auto-approve | Whether referrals are automatically approved or require manual review |
Three-Portal Architecture
- Affiliate Portal — Public-facing portal where affiliates register, view their dashboard, track referrals, see earnings, and request payouts.
- Vendor Panel — Store owners configure commission rates, view affiliate performance, and manage their affiliate program settings.
- Admin Panel — Platform administrators oversee all affiliates, manage payouts, set vendor-specific commission overrides, and handle suspensions.
Key API Endpoints
Affiliate Portal
Vendor Affiliate Management
Admin Affiliate Management
Vendor Commission Overrides
Database Tables
| Table | Purpose |
|---|---|
affiliates | Affiliate accounts — name, email, referral code, status, bank details |
affiliate_referrals | Referral tracking — affiliate_id, order_id, commission amount, status |
affiliate_payouts | Payout requests and history — amount, status, processed date |
affiliate_settings | Global and per-vendor program settings (commission rate, cookie duration) |
vendor_affiliate_commissions | Vendor-specific commission overrides |