{"message":"DoorMen Logistics API v4.5.0","version":"4.5.0","endpoints":{"auth":{"POST /auth/send-otp":"Send OTP to phone number","POST /auth/verify-otp":"Verify OTP and login/register","POST /auth/login":"Login with phone number (sends OTP)","POST /auth/complete-profile":"Complete user profile (requires auth)","GET /auth/profile":"Get current user profile (requires auth)","POST /auth/refresh-token":"Refresh JWT token"},"users":{"GET /users/profile":"Get user profile","PUT /users/profile":"Update user profile","GET /users/location":"Get user locations","POST /users/location":"Update user location","DELETE /users/account":"Deactivate user account"},"client":{"GET /client/dashboard":"Get client dashboard data","GET /client/vehicles":"Get available vehicles for dashboard (Porter-style simple view)","GET /client/locations":"Get preferred locations","POST /client/locations":"Add preferred location","PUT /client/locations/:id":"Update preferred location","DELETE /client/locations/:id":"Delete preferred location","GET /client/payment-methods":"Get payment methods","POST /client/payment-methods":"Add payment method","GET /client/wallet":"Get wallet balance","GET /client/wallet/transactions":"Get wallet transaction history","POST /client/wallet/add-money":"Add money to wallet","POST /client/wallet/transfer-rewards":"Transfer reward coins to wallet","POST /client/wallet/withdraw":"Withdraw wallet amount to bank/UPI","GET /client/referral":"Get referral code and stats","GET /client/referral/history":"Get referral history","GET /client/coupons":"Get available coupons","POST /client/coupons/validate":"Validate coupon code"},"driver":{"GET /driver/dashboard":"Get driver dashboard data","PUT /driver/profile":"Update driver profile","POST /driver/documents":"Upload documents","GET /driver/vehicles":"Get driver vehicles","POST /driver/vehicles":"Add new vehicle","PUT /driver/vehicles/:id":"Update vehicle","DELETE /driver/vehicles/:id":"Delete vehicle","PUT /driver/availability":"Update availability status","GET /driver/earnings":"Get earnings summary","PUT /driver/bank-details":"Update bank details"},"admin":{"POST /admin/login":"Admin login with email and password","GET /admin/dashboard":"Get admin dashboard statistics","GET /admin/drivers":"Get drivers list with filters","PATCH /admin/drivers/:driverId/verification":"Approve or reject driver verification","GET /admin/users":"Get all users list (clients + drivers)","GET /admin/users/:userId":"Get detailed user information","PATCH /admin/users/:userId/status":"Activate or deactivate user account","GET /admin/reward-settings":"Get current reward coin configuration","PUT /admin/reward-settings":"Update reward coin configuration dynamically","POST /admin/dashboard-vehicles":"Create dashboard vehicle (with image upload)","GET /admin/dashboard-vehicles":"Get all dashboard vehicles","PUT /admin/dashboard-vehicles/:id":"Update dashboard vehicle","DELETE /admin/dashboard-vehicles/:id":"Delete dashboard vehicle","GET /admin/system-config":"Get system configuration (GST, commission, service area)","PATCH /admin/system-config":"Update system configuration","GET /admin/gst-config":"Get GST configuration","PATCH /admin/gst-config":"Update GST configuration"},"rewards":{"POST /rewards/earn":"Add reward coins after a completed ride","POST /rewards/redeem":"Redeem coins into ride discount value","GET /rewards/balance":"Get reward balance and rupee value","GET /rewards/history":"Get paginated reward transaction history"},"notifications":{"GET /notifications":"Get all notifications (with pagination and filters)","GET /notifications/pending":"Get all pending (unseen) notifications","GET /notifications/unseen-count":"Get count of unseen notifications","GET /notifications/:id":"Get specific notification by ID (auto-marks as seen)","PATCH /notifications/:id/seen":"Mark specific notification as seen","PATCH /notifications/seen-all":"Mark all notifications as seen","DELETE /notifications/:id":"Delete specific notification","DELETE /notifications/clear-seen":"Clear all seen notifications","POST /notifications/test":"Send test notification (for testing)"}},"authentication":{"type":"Bearer Token (JWT)","header":"Authorization: Bearer <token>","flow":"Phone OTP based authentication"}}