Skip to main content

Referral List

1. Purpose of the Module

To encourage organic growth by rewarding existing users (referrers) when they invite new users (referees) who sign up and complete the required number of paid trips.

payments

2. Key Features

  • Unique referral code/link for every registered user (Driver & Rider)
  • Both parties can receive bonus/wallet credit
  • Configurable conditions and rewards
  • Real-time tracking dashboard for Super Admin
  • Automatic & manual approval options

3. Referral Workflow

  1. Existing user (Referrer) shares his unique referral code/link
  2. New user (Referee) registers using that code/link
  3. System automatically links both accounts and creates a record in the Referral List
  4. Referee must complete X number of paid & successful trips (configurable)
  5. Once conditions are met → Status changes from “Pending” → “Completed”
  6. Bonus is credited instantly to Referrer and/or Referee wallet

4. Database Table Structure (Referral List)

ColumnDescription
idAuto-increment primary key
referrer_user_idID of the user who shared the code (Referrer)
referrer_nameName of referrer
referrer_emailEmail of referrer
referee_user_idID of the new user who used the code (Referred user)
referee_nameName of referee
referee_emailEmail of referee
required_tripsTotal trips the referee must complete (e.g., 2)
completed_tripsTrips already completed by referee
remaining_tripsrequired_trips – completed_trips (shown as “Referrer: X / Referee: Y”)
type“Driver” or “User” (Rider)
statusPending / Completed
created_atTimestamp when referral record was created
updated_atTimestamp when status last changed

5. Admin Panel Capabilities (Current Implementation)

FeatureStatusLocation in Admin
View full referral listAvailableReferral Program → List Referral User
Search by name/emailAvailableSearch bar at the top
Pagination & show entriesAvailableBottom of page
Filter by status/typeComing soon
Manual approve/rejectPartial(only auto-approve in current version)
Delete suspicious referralsAvailableTrash icon in Actions column (if enabled)
Export to CSV/ExcelNot visible(can be added)

6. Reward Configuration (Admin Settings)

Path: Referral Program → Settings or Settings → Referral System

SettingDefault (current)Can be customized?
Required trips by referee2 tripsYes
Reward for ReferrerConfigurable amountYes
Reward for Referee (new user)Configurable amountYes
Reward typeWallet credit / CouponYes
Both-side reward enabledYesYes
Referral valid only for first tripOptionalYes

7. Status Explanation

StatusMeaningAction Required
PendingReferee has not completed required trips yetWait or check trips manually
CompletedAll conditions fulfilled → reward already creditedNothing (just monitoring)