System Flow
This document outlines the complete system flow of the eShop platform, covering both web admin panel and mobile application workflows.
Overview
The eShop system consists of multiple interconnected components:
- Admin Web Panel - For system administration and management
- Customer Mobile App - For end-user shopping experience
- Delivery Boy App - For order delivery management
- Backend APIs - For data processing and business logic
1. User Registration & Authentication Flow
Customer Registration
- User downloads the mobile app
- User enters mobile number and basic details
- OTP verification sent to mobile number
- User enters OTP for verification
- Account created and welcome wallet balance added (if configured)
- User can optionally set up profile with additional details
Social Login Flow
- User selects Google/Apple login option
- Social authentication via respective providers
- User account created/linked automatically
- Profile information populated from social provider
2. Product Management Flow
Admin Product Management
- Admin logs into web panel
- Navigate to Products → Manage Products
- Add new product with details:
- Product name, description, images
- Category, tax information
- Pricing, variants, attributes
- Stock quantity, SKU
- Shipping details
- Product published and available for customers
Product Discovery (Customer)
- Customer opens mobile app
- Browse categories or use search functionality
- Filter products by price, brand, attributes
- View product details, images, reviews
- Check product availability and delivery options
3. Order Management Flow
Customer Order Process
-
Product Selection
- Add products to cart
- Select product variants (size, color, etc.)
- Apply promo codes if available
-
Checkout Process
- Review cart items and quantities
- Select delivery address or add new address
- Choose delivery time slot
- Select payment method (COD, Online, Wallet)
- Add special notes/prescriptions if needed
-
Order Placement
- Order confirmation with order ID
- Payment processing (if online payment)
- Order notification sent to admin
Admin Order Management
-
Order Reception
- New order notification received
- Order appears in admin panel
- Order details reviewed and validated
-
Order Processing
- Update order status (Processing, Packed, Shipped)
- Assign delivery boy (for local shipping)
- Generate shipping labels (for courier shipping)
- Send order tracking information to customer
-
Shipping Methods
- Local Shipping: Assign delivery boy from system
- Standard Shipping: Use Shiprocket integration
- Create shiprocket order
- Generate AWB (Air Way Bill)
- Schedule pickup request
- Generate and download labels/invoices
4. Delivery Management Flow
Local Delivery (Delivery Boy)
- Delivery boy receives order notification
- Navigate to pickup location
- Collect order from admin/seller
- Update order status to "Out for Delivery"
- Navigate to customer address
- Deliver order and collect payment (if COD)
- Update order status to "Delivered"
- Upload delivery proof if required
Standard Shipping (Courier)
- Courier partner picks up from registered address
- Order tracking updates automatically
- Customer receives tracking information
- Order delivered by courier partner
- Delivery confirmation updated in system
5. Payment Processing Flow
Payment Gateway Integration
-
Online Payments
- Razorpay, PayU, Paystack, Flutterwave
- Secure payment processing
- Success/failure handling
- Automatic order status update
-
Wallet Payments
- Deduct amount from customer wallet
- Transaction record created
- Wallet balance updated
-
Cash on Delivery
- Order placed without payment
- Payment collected by delivery boy
- Cash reconciliation in admin panel
6. Inventory Management Flow
Stock Management
- Admin sets initial stock quantities
- Stock reduced automatically on order placement
- Out-of-stock notifications when quantity reaches zero
- Bulk stock updates available
- Stock reports and analytics
Product Variants
- Create product with multiple variants (size, color)
- Each variant has individual stock count
- Variant-specific pricing and images
- Stock management per variant
7. Customer Support Flow
Support Ticket System
- Customer creates support ticket
- Ticket categorized by type
- Admin responds to ticket
- Ticket status tracking (Open, Pending, Resolved, Closed)
Return & Refund Process
- Customer initiates return request
- Return reason and images provided
- Admin reviews return request
- Approval/rejection decision
- Pickup scheduled (if approved)
- Refund processed to wallet/original payment method
8. Notification System Flow
Push Notifications
- Firebase Cloud Messaging integration
- Automatic notifications for:
- Order status updates
- Promotional offers
- New product arrivals
Email Notifications
- SMTP configuration in admin panel
- Automated emails for:
- Order confirmations
- Shipping updates
- Account registration
- Password reset
9. Analytics & Reporting Flow
Sales Reports
- Daily, weekly, monthly sales data
- Product-wise sales analytics
- Category performance reports
- Payment method analysis
Inventory Reports
- Stock level monitoring
- Low stock alerts
- Best/worst performing products
10. System Administration Flow
Settings Management
- Store Settings - App name, logo, currency, timezone
- Payment Methods - Configure payment gateways
- Shipping Methods - Local delivery and courier setup
- Email Settings - SMTP configuration
- Notification Settings - Firebase configuration
- Time Slots - Delivery time preferences
User Management
- Customer account management
- Delivery boy registration and management
- Admin user roles and permissions
- Bulk operations for user management
Security Measures
- Authentication: JWT token-based authentication
- Data Encryption: Secure API communication
- Payment Security: PCI DSS compliant payment processing
- Access Control: Role-based permissions
Integration Points
Third-Party Services
- Firebase - Authentication, notifications, analytics
- Payment Gateways - Multiple payment processors
- Shiprocket - Shipping and logistics
- Google Maps - Address and location services
- SMS Gateway - OTP and notifications
API Structure
- RESTful API architecture
- JSON data format
- Rate limiting and throttling
- API versioning support
- Comprehensive error handling
This system flow ensures a seamless experience across all user types while maintaining data integrity and system security throughout the entire e-commerce process.