The multi-tenant back-office CRM used by each lending brand's own staff — sales, credit, sanctioning, disbursement ops, collections and HR — across the full loan lifecycle.
los-partner is the internal staff back-office CRM — the app that the original Documentation site's Frontend and User Functions pages describe. Its name suggests an external partner portal, but "partner" here means each lending brand is a partner/tenant of the 8byte platform; the people using this app are that brand's own employees. The genuinely external-facing app is the sibling repo los-webv1 (the borrower/customer app). Read this page as "the operator side of the loan lifecycle," not as a DSA/channel-partner referral tool.
The "partner" = a lending brand/NBFC onboarded onto the 8byte LOS platform (QuaLoan, jhatpatcash, FastSalary, CredNidhi, MinutesLoan, PaisaPop, Salary4Sure, SalaryBaba, ShubLakshmi, ZeptoFinance, FastRupees). Each brand gets its own subdomain/theme and its own staff directory. The app is multi-tenant: almost every authenticated route is scoped /:brandId/....
| Role | Scope | What they do |
|---|---|---|
| SUPER_ADMIN | Cross-brand | 8byte's own platform operators — brand onboarding/config across all tenants, cross-brand /admin, can issue sign-in codes / manage settings for any brand. |
| ADMIN | One brand | A brand's own administrator — full access within their brand (settings, user management, all queues/dashboards), can generate sign-in codes for their brand's non-admin staff. |
| SALES / SALES_MANAGER / SALES_HEAD | One brand | Lead intake & qualification, fresh-loan allocation. |
| CREDIT_EXECUTIVE | One brand | Runs BRE/bureau checks, underwriting evaluation. |
| SANCTION_MANAGER / SANCTION_HEAD | One brand | Approves/sanctions the loan after credit evaluation. |
| LOAN_OPS | One brand | Disbursement operations — pending disbursement, payment approval/rejection queues, no-due processing. |
| COLLECTION_EXECUTIVE / COLLECTION_MANAGER / COLLECTION_HEAD / NPA_EXECUTIVE | One brand | Repayment collection across pre-/post-/NPA/legal-action stages, field visits. |
| HR | One brand | Staff/attendance management — the attendance punch-in gate exists in the API layer. |
RELOCATE_LEAD, LEADS, PARTNER_USER_MANAGEMENT, BRAND_SETTINGS, MASTER_REPORTS, etc.) layer on top of / independently of the coarse role.customers, customerDetails) by the brand's staff. The actual borrower/applicant app is the sibling repo los-webv1.referralLink feature (:brandId/referral-link) is the closest concept to an "external channel partner submitting leads," but it's a referral-link generation utility for a brand's own staff to share, not a separate external-partner login/portal.Login picks an identifier + credential method, then HomeRedirect computes a role/permission-driven landing page.
Every login variant sends a FingerprintJS deviceId for device tracking. The landing computation checks permissions in a fixed priority order (SUPER_ADMIN first, then LEADS/RELOCATE_LEAD, then ALL/VIEW_DASHBOARD, then a lookup table), falling back to the dashboard when nothing else matches.
Leads carry marketing attribution (UTM params, click IDs, Facebook click ID) and a source, and move through a status pipeline before becoming a customer/loan application.
ALL/manage permission see only leads allocated to them; managers (canManageLeads) additionally see a CSV Uploads tab (bulk lead import).getEligibleLeadExecutives), hold, or reject a lead.LeadCommentsModal) for handoff context.convertedUserId links the two records.Once a lead converts, credit staff pull bureau data and run the brand's enabled BRE engines, producing a human-overridable evaluation that feeds customer status buckets and, ultimately, final sanction.
Loan status moves through LoanStatusEnum, with dedicated pre-disbursement queues for paperwork, then a batched, multi-leg disbursement process handled by LOAN_OPS.
Exact stage names/gates are brand-configurable via brandWorkflowSteps/partnerWorkflow settings (partner_workflow_stages in brand.slice.ts), so this progression can differ slightly per brand.
Once ACTIVE, a loan surfaces in a per-loan repayment ledger (LoanLedgerTab — an EMI/instalment due panel, not a partner commission ledger). Overdue loans route into the Collection V2 suite.
sales-queue, credit-queue, field-visits, collection-field-visits — distinct queues per stage of work.REALLOCATE_FRESH/REALLOCATE_REPEAT apply with desk = SALES|COLLECTION, so the same three-tier allocation model (receive / assign / reallocate) governs collection work as governs fresh leads.completed/all, with sub-buckets closed, settled (negotiated settlement), and writeoff (DEFAULTED → WRITE_OFF).repeat-loans / last-loan-completed surface customers eligible for a new loan cycle, with brand-configurable reloan settings (including a recent self-employed-borrower reloan settings addition).The closest analogue in this codebase to a "commission" system — but it is an internal staff incentive/gamification program, not an external-partner payout ledger. Staff (SALES/SALES_MANAGER/CREDIT_EXECUTIVE/SANCTION_MANAGER/COLLECTION_EXECUTIVE/COLLECTION_MANAGER roles) earn coins for actions like closing loans or collections, into a wallet with locked/available/reserved/debt/net balances and lifetime stats.
Pages: the wallet itself, a leaderboard, a manager/finance approvals queue, and brand-level coin-admin configuration (rate, min redemption, monthly cap, auto-approve threshold, tier system). All gated by CoinBetaRoute.
CoinBetaRoute doesn't check a static permission enum — it calls a useCoinBetaAccess() hook, and access is decided per-request by the backend (self-service / manager-of-requester / COIN_FINANCE / COIN_ADMIN, brand-scoped). See Tech page for the route table.
:brandId/global-search) — recently extended to surface loan tasks, KYC, legal and stage details in one search, beyond its original scope.msiReport/report.api.ts) spanning loan/disbursement, collection, credit/sales/leads, marketing, finance/GST, CIC/BRE/audit, and admin/user categories. Reports run asynchronously: trigger → poll status → download. New report types (like the recently-added UCIC report) plug in by simply adding a catalog entry — no new lifecycle plumbing needed.telephony feature plus the @sphoro/voice-web SDK and per-user dialer/callex config (dialerConfigModal, callexConfigModal) enables click-to-dial from leads/customers list rows directly to a phone number, backed by Acefone (explains the nginx CORS/CSP carve-outs for console.acefone.in).PUNCH_IN_REQUIRED from any API call triggers a global punch-in gate that blocks the UI until resolved.maskPan/maskEmail/maskPhone), with a per-row toggle (PiiToggleButton/usePiiVisibility) rather than always shown — a deliberate privacy-by-default UX pattern.partner-users (create/edit, assign roles+permissions, configure dialer/callex per user, set unavailability dates for the allocation engine, generate/revoke sign-in codes) and brand-wide policy via :brandId/settings (workflow steps, NBFC entities, bank accounts, block lists, evaluation checklist items, reminder/tracking config — ~20 settings sub-areas).loginV1…loginV8 are eight simultaneous visual implementations of the same five login flows, selected per brand/config — likely incremental design rollouts left live together rather than consolidated into one canonical screen.
PartnerUserRoleEnum contains values (BRAND_SETTINGS, CUSTOMER, VIEW_DASHBOARD, REPORT, PARTNER_USER_MANAGEMENT, LOANS) that duplicate names in PartnerUserPermissionEnum — don't assume the two concepts are cleanly separated.
CoinBetaRoute uses a useCoinBetaAccess() hook instead of the normal permission-enum check every other route uses — a private-beta carve-out worth knowing before copying its pattern elsewhere.
pages/gloabalSearch (typo, kept as the directory name) still serves the correct /global-search URL; agreament.api.ts (typo for "agreement"). Not a criticism — just useful to know when grepping the codebase for these areas.