Every bureau sub-vendor behind the CIBIL module, the four BRE/risk-scoring engines, device-fingerprinting and bank-statement-analysis vendors, UCIC and NPA collections, and the underwriting-analysis orchestrator that ties them together per brand — with real endpoint URLs, the internal route that triggers each call, and exactly which config key resolves the credential.
src/external/cibil, crif-bre, equifax, neetix-bureau-evaluate, smart-bre, marketing-analysis, juicyscore, scoreme, ucic, npa, cart, and src/features/underwriting-analysis, grep-verified against the codesrc/external/cibil) and one internal route — POST /web/kyc/:userId/fetch-cibil-report — the brand's active BrandProvider row decides which one actually runs. The four BRE engines are unified behind a second layer, the Underwriting Analysis orchestrator, documented in its own section at the bottom with a route table rather than a provider card.
Eight interchangeable bureau clients behind one module and one route (POST /web/kyc/:userId/fetch-cibil-report). Which one runs for a given pull is decided by the brand's active BrandProvider row (type = BRE).
Direct pull of a consumer's TransUnion CIBIL report (CIR PRO V2 product) for underwriting.
<CIR_PRO_V2_BASE_URL> — submits applicant identity/address as JSON with headers USER-ID, PASSWORD, CUSTOMER-ID, PRODUCT-TYPE: CIR PRO V2, PRODUCT-VER: 2.0; returns CIR-REPORT-FILE.PRINTABLE-REPORTsrc/external/cibil/cibil.module.ts, src/external/cibil/cibil.service.ts (cirProV2Config, fetchCirProV2Report, buildCirProV2Payload), src/external/cibil/extractor/cirprov2/cir-pro-v2-cibil-data-extractor.ts, src/external/cibil/extractor/cirprov2/cibil-html-generator.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report (src/app/web/kyc/web.kyc.controller.ts) → CibilService.fetchCibilReport() with the brand's active provider resolved. Also called internally by UnderwritingAnalysisService.runAll() (underwriting-analysis.service.ts:202), PartnerCustomerService.fetchCibilReport/refetchCibilReport, MarketplaceService, and features/bre/services/cirProV2.bre.service.ts
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "CIRPRO", [CIR_PRO_V2_BASE_URL, CIR_PRO_V2_USER_ID, CIR_PRO_V2_PASSWORD, CIR_PRO_V2_CUSTOMER_ID]), falling back to the identically-named env vars
WebhookNone — synchronous request/response
BrandProvider row (type = BRE, isPrimary wins, else newest). Internal test users (@8byte.ai, @loanwalle.com, @fintechcloud.in) are served a canned response from src/external/cibil/temp/cir.pro.json instead of hitting the live API (isInternalTestUser). Existing reports from the last pull are reused unless forceRefresh (ADMIN/SUPER_ADMIN) is set.Direct pull of an Equifax consumer credit report as an alternative bureau to CIBIL.
<EQUIFAX_CIR360_ENDPOINT> — JSON body with RequestHeader (CustomerId/UserId/Password/MemberNumber/SecurityCode/CustRefField/ProductCode) + RequestBody (applicant identity, address, phone, PAN) + Score: [{Type: "ERS", Version: "4.0"}]src/external/cibil/cibil.service.ts (equifaxConfig, fetchEquifaxReport), src/external/equifax/equifax.service.ts (standalone duplicate client), src/external/equifax/equifax.module.ts, src/external/cibil/extractor/equifix/equifax-html-extractor.service.ts, generate-html.ts, src/external/equifax/services/equifax-data-extractor.ts, equifax-html-extractor.service.ts
TriggerSame as CIR PRO V2 — POST /web/kyc/:userId/fetch-cibil-report with the brand's active provider resolved to equifax, via CibilService.fetchCibilReport. The standalone EquifaxService.fetchCibil() exists as a second, apparently-unwired client with the same payload shape.
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "EQUIFAX", [EQUIFAX_CIR360_ENDPOINT, EQUIFAX_CUSTOMER_ID, EQUIFAX_USER_ID, EQUIFAX_PASSWORD, EQUIFAX_MEMBER_NUMBER, EQUIFAX_SECURITY_CODE, EQUIFAX_CUST_REF_FIELD, EQUIFAX_PRODUCT_CODE]). The standalone EquifaxService additionally reads module-level EQUIFAX_BASE_URL, EQUIFAX_SOAP_ENDPOINT, EQUIFAX_PRODUCT_VERSION from process.env directly (unused by the active path)
WebhookNone
src/external/cibil/temp/equifix.json. Dead code: there are two parallel Equifax clients (cibil.service.ts inline vs. the standalone equifax.service.ts) — only the former is reachable from the live fetchCibilReport dispatch table. The standalone EquifaxService client is unused and a candidate for removal.CRIF Highmark report via the "TotalEkyc" aggregator product (combined individual CRIF report + optional PDF link).
<CRIF_AUTH_API_URL>/api/credit-report/individual/crif/combined — (or CRIF_AUTH_API_URL itself if it already contains /api/) combined CRIF report; Authorization: Bearer <CRIF_AUTH_TOKEN><CRIF_PDF_API_URL> — (or derived from CRIF_AUTH_API_URL as .../credit-report/individual/crif-pdf/v2) fetches a downloadable PDF link when the combined response has no embedded report linksrc/external/cibil/cibil.service.ts (totalEkycConfig, fetchTotalEkycCrifReport, buildTotalEkycCrifEndpoint, buildTotalEkycCrifPdfEndpoint), src/external/cibil/extractor/totalekyc/totalekyc-data-extractor.ts, generate-html.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report with active provider totalEkycCrif
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "TOTAL_EKYC", [CRIF_AUTH_API_URL, CRIF_AUTH_TOKEN, CRIF_PDF_API_URL])
WebhookNone
.catch(() => null)) and does not fail the overall report — the combined JSON report is still usable without it.CRIF Highmark "combined" report via the TruLens aggregator.
<TRULENS_CRIF_BASE_URL>/crif-combined — default base https://api.trulens.in/v1, overridable via TRULENS_CRIF_ENDPOINT; Authorization: Bearer <clientId>:<clientSecret>, plus X-Sandbox: true when TRULENS_CRIF_SANDBOX=truesrc/external/cibil/cibil.service.ts (trulensConfig, fetchTrulensCrifReport, resolveTrulensEndpoint, normalizeTrulensResponse), src/external/cibil/extractor/trulens/trulens-data-extractor.ts, generate-html.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report with active provider trulensCrif
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "TRULENS", [TRULENS_CRIF_BASE_URL, TRULENS_CRIF_ENDPOINT, TRULENS_CRIF_CLIENT_ID, TRULENS_CRIF_CLIENT_SECRET, TRULENS_CRIF_SANDBOX])
WebhookNone
normalizeTrulensResponse) before being treated as success/failure via status === "success".Direct, non-aggregator CRIF Highmark pull using the bureau's native XML/header-based protocol.
<CRIF_V1_BASE_URL> — documented default https://hub.crifhighmark.com/Inquiry/doGet.service/requestResponseSync; no body, the full request is carried in headers: userId, password, mbrid, productType: INDV, productVersion: 1.0, reqVolType: INDV, requestXML (hand-built XML). Response is raw XML, parsed via crifV1Extractor.parseXmlResponsesrc/external/cibil/cibil.service.ts (crifV1Config, fetchCrifV1Report, buildCrifV1RequestXml, buildCrifV1RequestHeaders), src/external/cibil/extractor/crifv1/crifv1-data-extractor.ts, crifv1-generate-html.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report with active provider crifV1
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "CRIF_V1", [CRIF_V1_BASE_URL, CRIF_V1_USER_ID, CRIF_V1_PASSWORD, CRIF_V1_MBRID])
WebhookNone
REPORT-FILE.INQUIRY-STATUS.INQUIRY["RESPONSE-TYPE"] === "ERROR") and throws with the vendor's error codes/descriptions. Requires full identity + address (rejects rather than defaults, unlike TruLens/Digitap). Shares its response shape (INDV-REPORT-FILE) with the Signzy-CRIF integration below, so both reuse crifV1Extractor/crifV1GenerateHtml.CIBIL report obtained through Signzy's 3-step encrypt → create-bureau-consent → decrypt flow, where the actual report is delivered later via an async webhook once the consent/OTP journey completes.
<SIGNZY_CIBIL_BASE_URL>/api/v3/test-encrypt-data — Step 1, encrypts the applicant payload<SIGNZY_CIBIL_BASE_URL>/api/v3/create-bureau-consent — Step 2, creates the bureau consent request with the encrypted payload, returns a consent/redirect URL<SIGNZY_CIBIL_BASE_URL>/api/v3/test-decrypt-data — Step 3, decrypts the consent response (also reused to decrypt the webhook's responseData)src/external/cibil/providers/signzy/signzy-cibil.controller.ts, src/external/cibil/providers/signzy/signzy-cibil.service.ts, src/external/cibil/extractor/signzy/signzy-generate-html.ts
TriggerPOST /cibil/signzy/:userId/initiate-consent (SignzyCibilController, AuthType(["web","partner"])) — starts the consent flow and stores a pending userCibilReport row
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "SIGNZY", [SIGNZY_CIBIL_BASE_URL, SIGNZY_CIBIL_API_KEY, SIGNZY_CIBIL_CALLBACK_URL, SIGNZY_CIBIL_REDIRECT_URL]). All calls use header Authorization: <SIGNZY_CIBIL_API_KEY>. The webhook decrypt path (no brand context) falls back to raw process.env.SIGNZY_CIBIL_BASE_URL / SIGNZY_CIBIL_API_KEY
WebhookPOST /cibil/signzy/webhook (SignzyCibilController.handleWebhook, @AuthType("public")) — Signzy calls back after the bureau consent/report is ready. Decrypts responseData if present, matches the pending userCibilReport row by requestId, stores the score + payload, uploads artefacts to S3, and fires CibilService.fetchCibilReport({ provider: "signzy", cibilRequestId }). Always returns 200 so Signzy stops retrying, even on internal failure
fetchSignzyDecryptedReport() in cibil.service.ts simply reads back the already-decrypted gzipped JSON the webhook stored in S3 (cibil_json_gz_key) rather than making a live call. Consent artefacts (request/response) are uploaded to S3 in the background, failures logged but non-fatal.Same Signzy account, different product — a single synchronous call that returns the plain CRIF report immediately (no consent/webhook round-trip).
<SIGNZY_CIBIL_BASE_URL>/api/v3/bureau/crif — Authorization: <SIGNZY_CIBIL_API_KEY>; body includes applicant identity + a consent block (consentFlag, consentTimestamp, consentIpAddress, consentMessageId). Response unwraps data.crifReport in the same INDV-REPORT-FILE shape CRIF v1 usessrc/external/cibil/providers/signzy/signzy-crif.service.ts, src/external/cibil/extractor/signzy/signzy-crif-data-extractor.ts, signzy-crif-generate-html.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report with active provider signzyCrif → CibilService.fetchSignzyCrifReport() → SignzyCrifService.fetchCrifReport()
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "SIGNZY", [SIGNZY_CIBIL_BASE_URL, SIGNZY_CIBIL_API_KEY, SIGNZY_CRIF_CONSENT_IP_ADDRESS])
WebhookNone (synchronous)
consentMessageId is hard-coded to the literal "CM_1" — Signzy's live endpoint rejects any generated/per-request value here despite the field's name implying a per-call correlation id (confirmed against their API per code comment). consentIpAddress defaults to 127.0.0.1 since there is no real inbound request to read a client IP from (server-to-server pull).CRIF credit-analytics report via Digitap's aggregator API.
<DIGITAP_CRIF_BASE_URL>/credit_analytics/v2/cf — base URL defaults to https://svcdemo.digitap.work (sandbox) or https://svc.digitap.ai (live) depending on DIGITAP_CRIF_SANDBOX; Authorization: Basic base64(clientId:clientSecret)src/external/cibil/cibil.service.ts (digitapCrifConfig, fetchDigitapCrifReport, buildDigitapCrifPayload), src/external/cibil/extractor/digitap/digitap-data-extractor.ts, generate-html.ts
TriggerPOST /web/kyc/:userId/fetch-cibil-report with active provider digitapCrif
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE", "DIGITAP", [DIGITAP_CRIF_SANDBOX, DIGITAP_CRIF_BASE_URL, DIGITAP_CRIF_CLIENT_ID, DIGITAP_CRIF_CLIENT_SECRET])
WebhookNone
result_code 101 = success/billable; 102 (no record found) and 103 (name/mobile mismatch) are HTTP-200 "successful" calls but treated as failed reports. Request payload is logged before the call specifically because Digitap's 400 responses carry no field-level detail, so the pre-call log is the only way to diagnose which field was malformed.Four scoring engines, each with its own vendor client, unified behind the Underwriting Analysis orchestrator so a brand can enable any combination of them.
Runs CRIF's business-rule-engine scoring (risk score/grade + approved amount) against an applicant's bureau report, income and bank-statement data — one of four engines unified behind the underwriting-analysis orchestrator.
<RUN_ANALYSIS_BASE_URL> — default https://breapicrif.asdatalab.com; JSON body with application_id, coapp1_json/coapp2_json (bureau + identity data), employment_data, bank_statement_datasrc/external/crif-bre/crif-bre.module.ts, src/external/crif-bre/crif-bre.service.ts, src/external/crif-bre/interfaces/crif-bre.interface.ts
TriggerPOST /bre/engines/CRIF_BRE/run (BreEngineController.runEngine) and the legacy alias POST /bre/smart-bre/crif (SmartBreLegacyController.runCrifBre); also invoked as part of POST /web/kyc/:userId/run-all-analysis (UnderwritingAnalysisService.runAll → CrifBreAdapter)
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE_ENGINE", "CRIF_BRE", ["RUN_ANALYSIS_BASE_URL"]). No API key — vendor trusts by URL/network
WebhookNone
HttpModule.register({ timeout: 120000 })). Every call — success or failure — is written to ExternalApiLogService (type BRE_ENGINE, provider CRIF_BRE), with bank_statement_data and credit_report fields stripped from the logged request. Vendor failures are deliberately normalized to HTTP 502 regardless of the vendor's actual status code, "so a 401 (our credentials) doesn't read to the operator as 'you are signed out'."8byte's own in-house Python risk-scoring/BRE service — computes approved amount, risk score and risk grade from applicant, employment, bank-statement and GST data.
https://smart-bre.8byte.ai/v1/run-analysis — default engine version for salaried applicants on brands not in the v2 allowlisthttps://smart-bre.8byte.ai/v2/run-analysis — salaried applicants on brands listed in SMART_BRE_V2_BRAND_IDS (comma-separated env var)https://smart-bre.8byte.ai/v3/run-analysis — all self-employed applicants, regardless of brand<SMART_BRE_BASE_URL>/health — health check<SMART_BRE_BASE_URL>/rules/config — fetches the active rules configurationsrc/external/smart-bre/smart-bre.module.ts, src/external/smart-bre/smart-bre.service.ts, src/external/smart-bre/interfaces/smart-bre.interface.ts
TriggerPOST /bre/engines/SMART_BRE/run (BreEngineController.runEngine) and legacy POST /bre/smart-bre (SmartBreLegacyController.runSmartBre); also part of POST /web/kyc/:userId/run-all-analysis via SmartBreAdapter
AuthThe analysis host (smart-bre.8byte.ai) is hard-coded, not read from config. healthCheck/getRulesConfig instead use BrandProviderKeyReader.resolve(brandId, "BRE_ENGINE", "SMART_BRE", ["SMART_BRE_BASE_URL"]). No auth header on the analysis call itself — same "trust by network" pattern as CRIF BRE
WebhookNone
SMART_BRE_V2_BRAND_IDS, else v1 — this is the one engine with brand- and applicant-type-specific routing baked into the client itself rather than via brand_providers. 120s HTTP timeout. Every call logged to ExternalApiLogService with bank_statement_data and gst_data stripped.Third-party bureau-evaluation/credit-capacity scoring engine (risk score + credit capacity) run on the raw bureau report.
<NEETIX_BUREAU_EVALUATE_URL> — default https://api.neetix.in/v1/bureau/evaluate; headers api-key: <NEETIX_API_KEY>, Idempotency-Key: <uuid>src/external/neetix-bureau-evaluate/neetix-bureau-evaluate.module.ts, neetix-bureau-evaluate.service.ts, interfaces/neetix-bureau-evaluate.interface.ts
TriggerPOST /bre/engines/NEETIX_BRE/run and legacy POST /bre/smart-bre/neetix; also part of POST /web/kyc/:userId/run-all-analysis via NeetixBreAdapter
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "BRE_ENGINE", "NEETIX", [NEETIX_BUREAU_EVALUATE_URL, NEETIX_API_KEY, NEETIX_TIMEOUT_MS]). Throws (unlogged) if NEETIX_API_KEY is unset
WebhookNone
Idempotency-Key UUID is reused across all retry attempts within one evaluation so a retried timeout replays the same billable query instead of double-billing. is_fallback: true in the response is treated as "exchange succeeded but not actually scored" (isValid: false).Computes a marketing-propensity score for an applicant (used as one of the four "BRE engines" in the unified underwriting run, despite being marketing- rather than credit-risk-oriented).
<MKT_ANALYSIS_URL> — env-only, no literal default/fallback URL in code; body includes pan, net_monthly_salary, dob, coapp1_json (bureau data + a presigned credit-report PDF link)src/external/marketing-analysis/marketing-analysis.module.ts, marketing-analysis.service.ts, interfaces/marketing-analysis.interface.ts
TriggerPOST /bre/engines/MARKETING_ANALYSIS/run; also part of POST /web/kyc/:userId/run-all-analysis via MarketingAnalysisAdapter
AuthMKT_ANALYSIS_URL and MKT_ANALYSIS_TIMEOUT_MS read straight from ConfigService/process.env — the one BRE engine in the catalog not wired through BrandProviderKeyReader (no per-brand override), even though it is a BrandProviderType.BRE_ENGINE entry in bre-engine.catalog.ts
WebhookNone
marketing_propensity_score is read defensively from response.rows[0]. The coapplicant payload includes a presigned S3 URL to the bureau PDF, which is deliberately excluded from the audit log (ExternalApiLogService) since a presigned URL is itself a bearer credential.JuicyScore runs silently post-OTP for anti-fraud signal; ScoreMe and CART/"Card" are the two interchangeable bank-statement-analysis (BSA) vendors behind one upload route.
Device-fingerprinting / anti-fraud scoring (GetScore APIv17) — browser pixel collects a session, backend calls GetScore server-to-server to retrieve an antifraud score and device-risk predictor vector (IDX1–IDX10).
<JUICYSCORE_GETSCORE_URL> — default https://api.jcsc.online/getscore/; query params (account_id, client_id, session_id, channel, time_utc3, etc.), header session: <JUICYSCORE_GETSCORE_TOKEN>src/external/juicyscore/juicy-score.module.ts, juicy-score.service.ts, juicy-score.types.ts
TriggerNo controller/route — called internally by DeviceService (src/shared/devices/device.service.ts:114), "immediately after a verified OTP," as a shadow-mode device-intel enrichment
AuthPer-brand via BrandProviderKeyReader.resolve(brandId, "DEVICE_INTEL", "JUICYSCORE", [JUICYSCORE_ACCOUNT_ID, JUICYSCORE_GETSCORE_TOKEN, JUICYSCORE_GETSCORE_URL, JUICYSCORE_TIMEOUT_MS, JUICYSCORE_API_VERSION, JUICYSCORE_CLIENT_ID_SALT])
WebhookNone (no controller at all in this module by design — vendor spec prohibits browser-originated calls to GetScore)
null on transport failure) because an unreachable vendor must never fail a login that already succeeded. client_id sent to JuicyScore is a salted SHA-512/256 hash of the internal user id (never the raw id), and the salt must stay stable across logins since several of JuicyScore's fraud predictors are aggregates keyed on client_id. Uses validateStatus: () => true so 4xx vendor responses are captured as data rather than thrown. IP addresses are truncated to drop the last octet before sending (privacy requirement from the vendor's own spec).Bank-statement analysis (BSA) report generation, and a secondary Aadhaar-OTP KYC capability (the latter currently has no internal caller — see notes).
<baseUrl>/bsa/external/uploadbankstatement/sgb — multipart upload of the statement file + metadata (bank code, account type/number)<baseUrl>/bsa/external/getbsareport/?referenceId=... — fetches the generated BSA report<baseUrl>/bsa/external/bsaReportDownload?file=... — downloads the report as xlsx or json<baseUrl>/kyc/external/aadhaarOtp — initiates Aadhaar OTP (unused — dead code, see notes)<baseUrl>/kyc/external/aadhaarDetail — verifies Aadhaar OTP (unused — dead code, see notes)src/external/scoreme/scoreme.module.ts (DynamicModule via .register()), scoreme.service.ts, interfaces/scoreMe-config.interface.ts
TriggerPOST /web/bank/statement (web.bank.controller.ts) → web.bank.service.ts:401 → BsaReportService.uploadBsaReport() (src/features/bsaReport/bsaReport.service.ts) → tries BSA_PROVIDERS in priority order [card, scoreMe] → ScoreMeProvider → ScoreMeService. All calls use headers ClientId / ClientSecret
AuthRegistered per-module via ScoreMeModule.register({ baseUrl: process.env.SCOREME_BASE_URL, clientId: process.env.SCOREME_CLIENT_ID, clientSecret: process.env.SCOREME_CLIENT_SECRET }), wired from both src/features/bsaReport/bsaReport.module.ts and src/app/web/kyc/web.kyc.module.ts. Global env vars only — no brand_providers/per-brand override
WebhookNone
BSA_PROVIDERS priority order is [card, scoreMe] (CART/"Card" tried first; see bsaReport.module.ts). Dead code: the initiateAadhaarOtp/verifyAadhaarOtp methods have no callers anywhere in the codebase (grep found zero call sites outside scoreme.service.ts itself) — unused and a candidate for removal. scoreme.service.ts also embeds a large static bank-name→bank-code lookup table (~1700 entries) used to resolve bankCode for the upload payload.Primary bank-statement-analysis (BSA) vendor — uploads a bank statement PDF, polls for a processed report, and downloads it as JSON/XLSX. The directory is named cart, but the actual service/config/provider classes are named Card/CardService/CardConfig/CardProvider — the external vendor's product appears to be branded "Card," not a shopping-cart concept.
<CART_BASE_URL>/api/upload — multipart upload (file + metadata JSON: password, bank)<CART_BASE_URL>/api/downloadFile — downloads the JSON report (reference id in body)<CART_BASE_URL>/api/downloadFileAsExcel — downloads the XLSX reportsrc/external/cart/cart.module.ts (DynamicModule), src/external/cart/services/cart.service.ts (CardService), src/external/cart/interfaces/cart-config.interface.ts (CardConfig), src/external/cart/cart-extractor.module.ts + src/external/cart/services/cart-data-extractor.service.ts. Also in this directory but unrelated to the vendor call — pure local analysis utilities: src/external/cart/bankStatementAnalyzer.ts, src/external/cart/bankStatementService.ts
TriggerPOST /web/bank/statement → BsaReportService.uploadBsaReport() → BSA_PROVIDERS priority [card, scoreMe] → CardProvider.uploadStatement() (src/features/bsaReport/provider/card.provider.ts) → CardService. Header: auth-Token: <CART_AUTH_TOKEN>
AuthRegistered via CardModule.register({ baseUrl: process.env.CART_BASE_URL, authToken: process.env.CART_AUTH_TOKEN }) in src/features/bsaReport/bsaReport.module.ts. Global env vars only — no per-brand config
WebhookNone (poll/download model, not push)
BSA_PROVIDERS). CardProvider.formatReport() runs the downloaded report JSON back through the local BankStatementService (chequeBounce/EMI/FCU-trigger/salary-credit/penal-charge analysis + a simple loan-eligibility score) — that scoring logic is all local/offline, not a vendor call.UCIC resolves an existing customer's unique id against a single lending partner's core system; NPA pushes delinquent-loan data out to 8byte's own collections platform and accepts callbacks from it.
Resolves an existing customer's UCIC (Unique Customer Identification Code) from their PAN against a single lending partner's (DLSL) core system, to avoid creating duplicate borrower records across lenders.
<UCIC_BASE_URL>/pan?panNumber=<PAN> — header X-API-KEY: <UCIC_API_KEY>src/external/ucic/ucic.module.ts (DynamicModule), ucic.service.ts, ucic-resolver.service.ts, ucic-enrichment.service.ts, interfaces/ucic-config.interface.ts, interfaces/ucic-response.interface.ts
TriggerNo public route. Triggered internally two ways: (1) UcicEnrichmentService.resolveAndStoreForUser() run by the async queue worker src/core/workers/onboarding-ucic-worker.service.ts on user creation, and (2) an inline fallback call from src/features/auth/services/web.auth.service.ts:1195 when the queue is unprovisioned
AuthSingle partner, one static key — registered via UcicModule.register({ baseUrl: process.env.UCIC_BASE_URL, apiKey: process.env.UCIC_API_KEY }) in src/features/auth/auth.module.ts, with an optional per-brand override via BrandProviderKeyReader.resolve(brandId, "UCIC", "DLSL", [UCIC_BASE_URL, UCIC_API_KEY])
WebhookNone
UcicResolverService.resolve() reads brandProvider rows of type = UCIC to decide if/which vendor a brand uses — DLSL is the only recognized provider (UCIC_PROVIDERS); a brand with rows naming a non-UCIC vendor is treated as "explicitly turned off," not "fall back to env." Only ever fills users.nbfcUserId (never overwrites) — deliberate, since a brand that previously ran a different lender (e.g. Lendbox) may already have a non-DLSL id there. A UCIC longer than the 16-char DB column is logged and discarded rather than retried (retrying would hit the same answer forever). Fails soft throughout — unreadable brand_providers config falls back to env/off rather than throwing.Pushes delinquent/NPA loan data to 8byte's own NPA collections backend (npabp.fintechcloud.in) for collections workflows, and in turn exposes endpoints that the NPA collections platform itself calls back into (other-documents lookup, payment-verification decisions).
https://npabp.fintechcloud.in/api/v1/leads/npa/ingest — pushes a loan's full collections dossier (borrower identity, balances, DPD, references) as an array payload; header x-api-key: <NPA_API_KEY>https://npabp.fintechcloud.in/api/v1/payments/verification-decision — same service, also used as an outbound call after processing an inbound decision (see processPaymentVerificationDecision), best-effort/non-fatalsrc/external/npa/npa.module.ts, npa.service.ts, npa.controller.ts, dto/payment-verification-decision.dto.ts
TriggerPOST /npa/loans/:loanId/ingest (NpaController, @AuthType(["partner"])) → NpaService.ingestLoan(). GET /payments/loans/:loanNo/other-documents (NpaPaymentController, @AuthType('credential')) — NPA platform calling in to fetch presigned doc URLs. POST /payments/verification-decision (NpaPaymentController) — NPA platform calling in to record a payment-verification decision
AuthSingle static process.env.NPA_API_KEY for outbound calls (not per-brand). Inbound routes use @AuthType('credential')/@AuthType(["partner"]) with PermissionsEnum.NPA_COLLECTION
WebhookPOST /payments/verification-decision functions as a de facto webhook from the NPA partner system, though it is a normal credential-authenticated partner route rather than a public unauthenticated one
ingestLoan() is idempotent per 24h — skips re-ingesting a loan already successfully synced in the last 24 hours (npaIngestLog). Every ingest attempt (success or failure) is recorded to npaIngestLog. The base URLs (npaApiUrl, npaPaymentVerificationUrl) are hard-coded constants, not env-configurable, unlike the API key.Not a vendor itself — unifies Smart BRE, CRIF BRE, Neetix BRE and Marketing Analysis behind one adapter contract and one API, so the CRM/partner app can run one engine on demand or run everything in one shot.
src/features/underwriting-analysis/underwriting-analysis.module.ts, bre-engine.catalog.ts, services/underwriting-analysis.service.ts, services/bre-engine-resolver.service.ts, services/bre-report.service.ts, services/underwriting-context.service.ts, controller/bre-engine.controller.ts, controller/smart-bre-legacy.controller.ts, adapters/{bre-engine.adapter,crif-bre.adapter,smart-bre.adapter,neetix-bre.adapter,marketing-analysis.adapter,coapplicant-data}.ts
External callsNone directly — delegates to each engine's own src/external/* client (see CRIF BRE, Smart BRE, Neetix BRE, Marketing Analysis above). Also triggers CibilService.fetchCibilReport() (bureau pull) and UanToEmploymentService.getEmploymentHistoryWithComprehensiveFallback() as part of a full run
AuthNo credentials of its own — delegates entirely to each engine adapter's underlying src/external client
WebhookNone directly (CIBIL's Signzy webhook is a dependency, not owned by this module)
| Method | Route | Description |
|---|---|---|
| POST | /bre/engines/:engine/run | Runs one engine on demand and returns the stored report. :engine = smart_bre_type_enum — CRIF_BRE, SMART_BRE, NEETIX_BRE, MARKETING_ANALYSIS. (BreEngineController.runEngine) |
| GET | /bre/reports/loan/:loanId | Newest report per engine filed against a loan. |
| GET | /bre/reports/latest?userId&brandId&type | Latest report of a given type for a user/brand. |
| POST | /bre/smart-bre | Legacy alias (deprecated, kept for CRM backward-compat). SmartBreLegacyController. |
| POST | /bre/smart-bre/crif | Legacy alias for CRIF BRE. |
| POST | /bre/smart-bre/neetix | Legacy alias for Neetix BRE. |
| GET | /bre/smart-bre/latest | Legacy alias — latest Smart BRE report. |
| GET | /bre/smart-bre/neetix/latest | Legacy alias — latest Neetix report. |
| GET | /bre/smart-bre/loan/:loanId | Legacy alias — reports by loan. |
| POST | /web/kyc/:userId/run-all-analysis | The full run: CIBIL pull, employment history, every enabled engine in parallel, then a blocklist re-screen. (web.kyc.controller.ts → UnderwritingAnalysisService.runAll()). Also triggered from underwriting-worker.service.ts (async queue), repayment-reminder-creator.service.ts, and fresh-loan-automation-v2.service.ts. |
All controllers above are @AuthType("partner").
BreEngineResolverService.resolve(brandId) reads brandProvider rows where type = BRE_ENGINE, isActive = true, isDisabled = false, and maps each row's provider (CRIF_BRE, SMART_BRE, NEETIX, MARKETING_ANALYSIS) through BRE_ENGINE_CATALOG (src/features/underwriting-analysis/bre-engine.catalog.ts) to decide which adapters run — runAll() runs every enabled engine in parallel via Promise.allSettled, so one vendor failing never blocks another's verdict (each failure lands under result.errors[engine.resultKey]). resolvePrimaryEngine(brandId) picks the engine the borrower-facing outcome is read from: the brand's isPrimary row, else the newest active row, else null (no engine configured → "not approved"). runEngine(type, ...) (single-engine route) additionally rejects with 403 if the requested engine's provider is not an active BRE_ENGINE row for that brand (ForbiddenException). Adding a new engine requires: a vendor client in src/external, one row in BRE_ENGINE_CATALOG, an adapter in adapters/, and one entry in the BRE_ENGINE_ADAPTERS DI factory list in underwriting-analysis.module.ts. Each engine run requires an existing credit report (context.creditReport) — throws 422 if none exists ("pull a CIBIL/CRIF report before running X analysis"), i.e. the bureau pull must happen first (which runAll() does automatically; the single-engine route does not pull bureau data itself). runAll() unconditionally re-runs blocklist screening after scores land, because some blocklist rules (e.g. 23_neetixRiskScore) depend on signals this run produces and would otherwise never be evaluated for fast-moving applicants.