Overall User Journey
Screen-by-Screen Breakdown
1. Onboarding (Profile Setup)
The driver enters Aarokya from the host platform for the first time. The platform service account has already exchanged the driver’s{phone_number, phone_country_code, id_proof} for a user_id + app JWT via POST /auth/token, so the user row already exists in onboarding status. The app fills in the remaining profile fields and completes onboarding.
Screen fields:
- Name (pre-filled from host platform if available)
- Date of Birth
- Gender
- Mobile (pre-filled, read-only — set at provisioning)
2. Add Dependants
Driver adds family members who will be covered under the insurance plan. Can be skipped. Screen fields (per dependant):- Name
- Date of Birth
- Gender
- Relationship (
self,spouse,mother,father,child,father_in_law,mother_in_law,sibling) - Add (+) button for more members
3. Available Benefits
Shows the benefits the driver can avail — free doctor consultations, insurance plans, etc. Screen layout:- List/grid of benefit cards
- Each card: title, short description, icon
benefit_typeis one ofconsultationorinsurance_policy
4. Benefit Detail (To Avail)
Detail page for a specific benefit (e.g., Insurance). Shows what the benefit covers and how to avail it. Screen layout:- Benefit name and description
- Coverage details (
benefit_detailsJSONB) - Info icon with more details
- “Avail” / “Enroll” CTA button
5. Insurance Enrollment
The main enrollment screen. Shows premium amount, lets the driver add/remove dependants from coverage, and proceeds to payment. Screen fields:- Premium amounts (
daily/annual, computed dynamically) - Dependant list with +/- toggle
- “Setup Autopay” button
- Proceeds to Hyper PG for payment
6. Payments Page (UPI / Mandate Setup)
Payment collection via Hyper PG. Supports UPI payment and mandate setup for recurring autopay. Screen layout:- UPI payment option
- Mandate setup option
- Payment app icons (GPay, PhonePe, Paytm)
- Amount display
7. Success Screen
Confirmation after successful payment and mandate setup. Screen layout:- Success checkmark
- “Payment Successful” message
- Summary of enrollment
- “Continue” button to go to wallet/home
8. Account Setup (PBA)
The Prepaid Bank Account (PBA) is the user’s money store. An account row is created against the user; balance and ledger are then served from the PBA. APIs called:9. Balance & Ledger (Home)
Main money view showing balance, recent transactions, and add money option. Screen layout:- Balance display (prominent)
- Transaction ledger list
- “Add Money” button →
POST /users/{user_id}/contributions/self - Each entry: amount (
AmountResponse), status, date, description
10. Consultations
View consultations and start a new chat-doctor consultation (a consultationbenefit).
APIs called:
11. Policy Page
View active insurance policy details and coverage. Screen layout:- External policy id
- Coverage amount
- Start and end dates
- Covered members (
dependant_ids) - Policy document download