Every identity, lookup-utility, e-sign and e-stamp vendor los-backend talks to — Account Aggregator, DigiLocker, PAN/GST/UAN verification chains, face liveness, penny-drop, and the e-sign/e-stamp router — with real endpoint URLs, internal trigger routes, credential resolution, and webhook wiring, all grep-verified against code.
src/external/{aa,digiLocker2.0,panDetailsPlus,face-verification,domainCheck,mobile-to-address-verification,phoneToUan,uanToEmployment,sso-pan-search,gstAdvanced,gstPanSearch,pennyDrop,geocoding,task-api,neoapiBox,signdesk,signzy,digitapEsign,doqfy} and src/core/aws/rekognition, src/features/{pan-details-plus,esign,estamp}POST /TaskApi/getLeadDataFromPancard) is reachable with no authentication and returns PAN-linked borrower loan/PII data. The route is explicitly marked @NoAuthzRequired in code with a comment that the authorization guard used to "fail open." A backlog ticket (IDX-001) already exists for it — see the flagged card below.
33 integrations covering bank-statement pulls, Aadhaar e-KYC, PAN/GST/UAN verification chains, face & liveness checks, bank-account verification, and address/employment reverse-lookups.
Pulls a borrower's bank statements/financial data via the Account Aggregator (Sahamati) framework — consent → redirect → data pull — used for income/bank-statement based underwriting.
{FINDUIT_AUTHENTICATION_BASE_URL}/api/FIU/Authentication — authenticate, get bearer token + sessionId{FINDUIT_BASE_URL}/api/FIU/RedirectAA — generate the AA consent redirect URL{FINDUIT_BASE_URL}/api/FIData/v2/FetchPeriodicData — pull periodic financial data for an active consentsrc/external/aa/aa.module.ts, aa.service.ts, services/aa-finduit.service.ts, constants/aa.constants.ts, controller/aa.controller.ts, controller/aa.webhook.controller.ts
TriggerPOST /aa/consent-request, POST /aa/consent-request/manual, POST /aa/consent-request/fallback, POST /aa/fetch-periodic-data. Also the default fallback target inside AccountAggregatorService.createConsentRequestWithFallback().
AuthBrand keys via BrandProviderKeyReader.resolve(brandId, "ACCOUNT_AGGREGATION", "FINDUIT", [...]); env fallback FIU_ID, FIU_REDIRECTION_KEY, FIU_USER_ID, FIU_USE_CASE_ID, FINDUIT_AUTHENTICATION_BASE_URL, FINDUIT_BASE_URL, FIU_TXN_ID, FIU_SESSION_ID.
WebhookPOST /webhook/aa — single public endpoint handling Sahamati ConsentStatusNotification, Push_Data, and Processed_Data payloads.
brand_providers (type ACCOUNT_AGGREGATION), primary-first. createConsentRequestWithFallback/createManualConsentRequestWithFallback try Finduit first then CART. Pending consent requests are reused/retried rather than re-created. Periodic data fetch is rate-limited: once per 24h and max 5/month per consent. Data is persisted to aaDataSession/aaPeriodicDataResponse, with JSON/PDF/XLSX/HTML reports uploaded to private S3 (gzip for JSON).Alternate Account Aggregator vendor for bank-statement pulls (net-banking based auto-fetch flow instead of Sahamati consent redirect).
{AA_CART_BASE_URL}/api/generateNetBankingRequest — generate CART auto-fetch URL{AA_CART_BASE_URL}/api/downloadFile / /api/downloadFileAsXml / /api/downloadFileAsExcel — download the report in JSON/XML/Excel{AA_CART_BASE_URL}/api/fetchBankNames — supported bank listsrc/external/aa/services/aa-cart.service.ts, aa.service.ts, controller/aa.controller.ts, controller/aa.webhook.controller.ts
TriggerPOST /aa/consent-request/cart, POST /aa/cart/generate-auto-fetch, POST /aa/cart/download-report; also second-in-chain fallback from Finduit.
AuthBrandProviderKeyReader.resolve(brandId, "ACCOUNT_AGGREGATION", "CART", [...]); env fallback AA_CART_BASE_URL, AA_CART_AUTH_TOKEN, AA_CART_REDIRECT_URL.
WebhookPOST /webhook/aa/cart — status-only payload {docId, status, reportFileName, endTime, message, fileNo, requestId}; raw payload also persisted to local disk at logs/aa-cart-webhooks/ for audit. Only processes/downloads the report when status === "Processed".
AccountAggregatorService.createCartConsentRequest() falls back to Finduit on failure. CART webhook status is mapped to AAConsentStatus (Processed→ACTIVE, Rejected/Error→REJECTED, else PENDING) and recorded via storeCartStatusNotification.Third Account Aggregator vendor option; generates a consent URL, polls status, and retrieves JSON/XLSX reports.
{AA_XALER_BASE_URL}/bank-data-aa/generate-url/ — generate consent URL{AA_XALER_BASE_URL}/bank-data-aa/status-check/ — poll consent/report status{AA_XALER_BASE_URL}/bank-data-aa/retrieve-report/ — retrieve JSON/XLSX reportsrc/external/aa/services/aa-xaler.service.ts, aa.service.ts, controller/aa.controller.ts, controller/aa.webhook.controller.ts
TriggerPOST /aa/consent-request/xaler, POST /aa/xaler/generate-url, POST /aa/xaler/status-check, POST /aa/xaler/retrieve-report, POST /aa/xaler/poll.
AuthBrandProviderKeyReader.resolve(brandId, "ACCOUNT_AGGREGATION", "XALER", [...]); env fallback AA_XALER_BASE_URL (default https://xaler.in/api), AA_XALER_API_KEY, AA_XALER_RETURN_URL, AA_XALER_TXN_COMPLETED_CBURL.
WebhookPOST /webhook/aa/xaler — raw payload persisted to logs/aa-xaler-webhooks/; Xaler code mapped to AAConsentStatus (ReportGenerated/UserInteractionCompleted/AAFIDataStatusComplete→ACTIVE, TxnAbort/TxnNotCompleted/consent-rejected/revoked/UserCancelled→REJECTED, expiry/timeout→EXPIRED).
createXalerConsentRequest/createManualXalerConsentRequest fall back to Finduit on failure. Xaler JSON reports are fetched from private S3 via GET /aa/data-sessions/:sessionId/xaler-report-json (avoids CORS on direct S3 access from frontend).Aadhaar e-KYC via DigiLocker redirect flow — user consents on Signzy's hosted DigiLocker page, backend then pulls the e-Aadhaar XML/photo.
{SIGNZY_DIGILOCKER_BASE_URL}/api/v3/digilocker-v2/createUrl — create the DigiLocker consent URL{SIGNZY_DIGILOCKER_BASE_URL}/api/v3/digilocker-v2/geteAadhaar — fetch e-Aadhaar once the user completes DigiLocker consentsrc/external/digiLocker2.0/digiLocker2.0.service.ts, digiLocker2.0.controller.ts, digiLocker2.0.modules.ts, dto/signzy-callback.dto.ts
TriggerCalled from DigiLocker20Service.generateUrlWithFallback() / createDigiLockerUrlWithSignzy(), used by the borrower onboarding KYC wizard (src/app/web/kyc/*).
AuthBrandProviderKeyReader.resolve(brandId, "AADHAAR_DIGILOCKER", "SIGNZY", ["SIGNZY_DIGILOCKER_BASE_URL","SIGNZY_DIGILOCKER_ACCESS_TOKEN"]).
WebhookPOST /partner/brand/:brandId/digilocker/signzy/callback (public/partner auth-exempt) — Signzy posts Aadhaar data here after consent. Frontend redirect built as https://{subdomain}/signzy/digilocker/redirect/{brandId}/{userId}/1 (success) and .../signzy/digilocker/failed/... (failure). Manual re-sync: POST /partner/brand/:brandId/digilocker/signzy/manual-sync.
isOptimizedCreationEnabled flag (currently false) would reuse a successful URL generated in the last 10 minutes instead of minting a new one. On callback success, Aadhaar name/DOB/address/photo are written onto userDetails/user, missing address fields are backfilled (fill-only, never overwrite), and a last-2-digit Aadhaar mismatch vs. PAN-linked Aadhaar (captured by PAN Details Plus) marks the user NOT verified. Raw response archived to private S3.Alternate DigiLocker/Aadhaar KYC vendor using Digitap's "KYC Unified" DigiLocker flow.
https://svc.digitap.ai/kyc-unified/v1/generate-url/ — generate DigiLocker consent URLhttps://svc.digitap.ai/kyc-unified/v1/{unifiedTransactionId}/details/ — fetch KYC/Aadhaar details once completedsrc/external/digiLocker2.0/digiLocker2.0.service.ts, digiLocker2.0.controller.ts
TriggerDigiLocker20Service.generateKycUnifiedUrlWithDigitap() / generateUrlWithFallback(), used by the KYC onboarding wizard.
AuthBrandProviderKeyReader.resolve(brandId, "AADHAAR_DIGILOCKER", "DIGITAP", ["DIGITAP_DIGILOCKER_AUTH_KEY"]), header Authorization: Basic {key}.
WebhookNo push webhook — poll/pull model. Frontend redirect: https://{subdomain}/digitap/digilocker/redirect/{brandId}/{userId}/1. Backend completion driven by POST /partner/brand/:brandId/digilocker/digitap/manual-sync (handleDigitapManualSync), which calls getDigitapDetails() to pull the final result.
generateUrlWithFallback() chain ordered by brand_providers (AADHAAR_DIGILOCKER type, primary first): DIGITAP → SIGNZY → NEOAPIBOX, trying each until one succeeds.Third DigiLocker/Aadhaar KYC vendor option, routed through the shared NeoapiBox wallet-token client; also exposes a standalone "Aadhaar Advanced" one-shot lookup (no DigiLocker redirect).
https://api.neoapibox.com/api/v1/digilocker/generate-kyc-link — generate KYC/DigiLocker linkhttps://api.neoapibox.com/api/v1/digilocker/kyc-details — fetch KYC details by transaction idhttps://api.neoapibox.com/api/v1/aadhaar-advanced — standalone Aadhaar lookup (no DigiLocker flow)src/external/digiLocker2.0/digiLocker2.0.service.ts (createDigiLockerUrlWithNeoapiBox, getNeoapiBoxKycDetails, handleNeoapiBoxManualSync, verifyAadhaarAdvancedWithNeoapiBox), src/external/neoapiBox/neoapiBox-client.service.ts
TriggerPart of generateUrlWithFallback() chain (3rd option after Digitap/Signzy); POST /partner/brand/:brandId/digilocker/neoapibox/manual-sync for pull-completion. All routed via the shared 3-step NeoapiBox token dance — see the NeoapiBox shared-client card below.
AuthNEOAPIBOX_API_KEY / NEOAPIBOX_CLIENT_ID via BrandProviderKeyReader under BrandProviderType.AADHAAR_DIGILOCKER.
WebhookNo push webhook. Frontend redirect https://{subdomain}/neoapibox/digilocker/redirect/{brandId}/{userId}/1 (code notes: "no controller route exists yet to receive a redirect back at this path" as of 2026-09-30). Completion is pull-based via POST .../neoapibox/manual-sync.
isSkipRedirection-style opt-out). Mobile must be sent as bare 10 digits (no +91). digilockerFiles extraction shape is a best-effort guess per code comments (no confirmed real-world example yet) — the full raw response is always archived to S3 regardless. Aadhaar Advanced's response envelope differs from every other NeoapiBox endpoint ({success, transactionId, response:{result:{...}}} vs the standard {statusCode,status,neoTransactionId,...,data} shape).PAN → name/DOB/address verification, one vendor in the PAN Details Plus fallback chain.
{DIGITAP_BASE_URL}/validation/kyc/v1/pan_details — PAN details lookupsrc/external/panDetailsPlus/digitap-pan-details.client.ts, panDetailsPlus.module.ts, src/features/pan-details-plus/adapters/digitap-pan-details.adapter.ts
TriggerPOST /partner/brand/:brandId/pan-details-plus/with-fallback, handled by PanDetailsPlusOrchestratorService.verifyPanWithFallback().
AuthBrandProviderKeyReader.resolve(brandId, "PAN_DETAILS_PLUS", "DIGITAP", ["DIGITAP_BASE_URL","DIGITAP_AUTH_KEY"]), header Authorization: {authKey}.
WebhookNone (synchronous request/response).
PAN verification vendor in the fallback chain.
{SCOREME_BASE_URL}/kyc/external/panDetailInfo — PAN detail lookupsrc/external/panDetailsPlus/scoreme-pan-details.client.ts, src/features/pan-details-plus/adapters/scoreme-pan-details.adapter.ts
TriggerSame as the Digitap entry above — PanDetailsRouterService orders providers per brand (brand_providers, type PAN_DETAILS_PLUS, primary first).
AuthBrandProviderKeyReader.resolve(brandId, "PAN_DETAILS_PLUS", "SCOREME", ["SCOREME_BASE_URL","SCOREME_CLIENT_ID","SCOREME_CLIENT_SECRET"]), headers ClientId/ClientSecret.
WebhookNone.
PAN verification vendor in the fallback chain; shares the penny-drop Signzy account/credentials.
{PENNY_DROP_SIGNZY_BASE_URL}/api/v3/panextensive — PAN extensive lookupsrc/external/panDetailsPlus/signzy-pan-extensive.client.ts, src/features/pan-details-plus/adapters/signzy-pan-details.adapter.ts
TriggerSame fallback chain as above.
AuthBrandProviderKeyReader.resolve(brandId, "PAN_DETAILS_PLUS", "SIGNZY", ["PENNY_DROP_SIGNZY_BASE_URL","PENNY_DROP_SIGNZY_AUTH_TOKEN"]) — note these are the same env keys as Penny Drop's Signzy integration.
WebhookNone.
Fourth PAN verification vendor option, via the shared NeoapiBox wallet-token client.
https://api.neoapibox.com/api/v1/pan-detail — PAN lookup (via shared NeoapiBox token dance)src/external/panDetailsPlus/neoapibox-pan-details.client.ts, src/features/pan-details-plus/adapters/neoapibox-pan-details.adapter.ts
TriggerSame fallback chain as above.
AuthNEOAPIBOX_API_KEY / NEOAPIBOX_CLIENT_ID via BrandProviderKeyReader under BrandProviderType.PAN_DETAILS_PLUS.
WebhookNone.
HttpException (already unwrapped by NeoapiBoxClient), not a raw axios error, so this client remaps errors differently (reads HttpException.getResponse() instead of isAxiosError).Shared orchestration layer for the 4 PAN vendors above: brand-ordered fallback chain, per-vendor response caching, and a borrower duplicate-PAN guard — confirmed from code.
src/features/pan-details-plus/services/pan-details-router.service.ts (chain ordering), pan-details-plus-orchestrator.service.ts (fallback loop), pan-details-log.service.ts (cache + audit log), pan-profile.service.ts (profile write + duplicate guard)
TriggerPOST /partner/brand/:brandId/pan-details-plus/with-fallback in pan-details-plus.controller.ts.
AuthN/A — orchestrates the per-vendor credentials listed on the 4 cards above.
WebhookNone.
PanDetailsRouterService.resolve() reads brand_providers (type PAN_DETAILS_PLUS, active+not-disabled), ordered isPrimary desc, createdAt desc; a provider row naming a vendor with no adapter is skipped with a warning, not thrown. The assumed order (Digitap → ScoreMe → Signzy) is not hardcoded — it is whatever the brand's brand_providers rows say (NeoapiBox is also a valid 4th option).
Per-vendor caching: PanDetailsLogService.findCachedResponse(pan, provider) returns the newest SUCCESS+isValid response for that (pan, provider) pair from panDetailsLog, across all brands (not brand-scoped) — if found, the vendor is not called again for that PAN; the cached body is replayed and logged with cached: true.
Orchestration logic: PanDetailsPlusOrchestratorService.verifyPanWithFallback() — first vendor that "vouches for" the PAN (valid response) wins and short-circuits the chain. A vendor NOT_CONFIGURED or FAILED or INVALID moves to the next vendor; our own failures (duplicate-PAN, DB error) stop the whole chain rather than trying the next vendor.
Duplicate-PAN guard: PanProfileService.assertPanAvailable() — before any vendor is called (when shouldUpsert), refuses a PAN already held by another verified borrower (is_pan_verified: true, isPhoneVerified: true) scoped by borrowerScope(). Guarantors are exempt both ways (can share a PAN, don't block one). Throws ConflictException.
Every attempt (cached or live, success or failure) is recorded in panDetailsLog for audit via PanDetailsLogService.record() (never throws, so a logging failure cannot break verification).
Compares the Aadhaar DigiLocker photo against the borrower's self-captured profile photo for a face-match score, used in the KYC onboarding flow.
{FACE_VERIFICATION_BASE_URL}/api/face-verification — default https://los-ml-backend.8byte.ai/api/face-verification (8byte's own ML service, not a third-party vendor, but wrapped like one)src/external/face-verification/face-verification.service.ts, face-verification.module.ts, interfaces/face-verification.interface.ts
TriggerCalled internally by WebKycService (src/app/web/kyc/web.kyc.service.ts, line ~608) inside uploadProfileMedia, triggered from POST /web/kyc/:userId/profile-media-upload — runs once a profile photo/video is uploaded and an active Aadhaar DigiLocker photo (otherDocument type DIGILOCKER_AADHAAR_PHOTO) exists for the user.
AuthFACE_VERIFICATION_BASE_URL env var only (no API key in code — internal service).
WebhookNone — synchronous call.
src/app/partner/customers/partner.customer.service.ts. Result (match, confidence) is written to userDetails.face_match_score. Failure throws a SERVICE_UNAVAILABLE HttpException (caught by the caller as best-effort).AWS Rekognition's managed liveness-detection capability (anti-spoof selfie check) as part of KYC; documented as its own vendor capability even though it is "AWS" rather than a third-party KYC vendor.
CreateFaceLivenessSessionCommand / GetFaceLivenessSessionResultsCommand — via @aws-sdk/client-rekognition's RekognitionClient (REST calls to AWS Rekognition, region-scoped — no literal URL in code). The actual liveness video/WebSocket stream happens client-side via AWS Amplify's <FaceLivenessDetector> directly against AWS — this backend service never sees the video.src/core/aws/rekognition/aws-face-liveness.service.ts
TriggerPOST /web/kyc/:userId/liveness/session (create) and POST /web/kyc/:userId/liveness/session/:sessionId/complete (fetch results), calling KycService.createLivenessSession() / completeLivenessCapture() → AwsFaceLivenessService.
AuthAWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY env vars if set, else falls back to the ambient AWS IAM role/instance profile (same pattern as the S3 services). Region from AWS_REGION (default ap-south-1).
WebhookNone — polled by the frontend after the browser-side liveness check completes.
FaceMovementAndLightChallenge.Verifies a borrower's "official" work email's domain (registration age, MX records, personal-vs-corporate) and enriches with company/person data — used as a KYC/employment signal.
{SIGNZY_EMAIL_DOMAIN_BASE_URL} — full URL is the brand-configured base URL itself (no extra path appended); Signzy's email/domain intelligence APIsrc/external/domainCheck/domain-check.service.ts, domain-check.controller.ts, domain-check.module.ts
TriggerPOST /partner/brand/:brandId/domain-check/verify → DomainCheckService.checkDomain().
AuthBrandProviderKeyReader.resolve(brandId, "EMAIL_DOMAIN", "SIGNZY", ["SIGNZY_EMAIL_DOMAIN_API_KEY","SIGNZY_EMAIL_DOMAIN_BASE_URL","SIGNZY_EMAIL_DOMAIN_CLIENT_UNIQUE_ID"]); header Authorization: {apiKey} (+ optional x-client-unique-id).
WebhookNone.
status: "SKIPPED"). Two-tier caching: (1) checkDomain() serves any fresh (<30 days, cachedData:false) successful result for the same (officialEmail, brandId) pair across users; (2) getLatestResult() (page-load) is scoped narrower, to (userId, officialEmail, brandId). Provider chain is brand-ordered (brand_providers, type EMAIL_DOMAIN) but only Signzy is actually implemented (parseProviderResult throws for anything else; loop logs+skips unsupported providers). Vendor's providerRaw is stored in domainCheckLog but never sent to the frontend.Reverse-looks-up a mobile number to known registered/e-commerce/LPG/driving-license addresses — used as alternate address verification during onboarding. One vendor (KycKart) serves 4 distinct sub-services.
{KYCCARTBASE_URL}/api/mobileVerification/mobileToAddresses — registered addresses{KYCCARTBASE_URL}/api/mobileVerification/mobileToAddressesEcommerceV3 — e-commerce delivery addresses{KYCCARTBASE_URL}/api/lpgBill/searchV3 — LPG connection/address details{KYCCARTBASE_URL}/api/mobileVerification/mobileToDLAdvanced — driving-license-linked addressessrc/external/mobile-to-address-verification/mobile-to-address-verification.service.ts, .controller.ts, .module.ts
TriggerPOST /partner/mobile-to-addrress-verification/with-service (single service) and POST /partner/mobile-to-addrress-verification/batch-verify (all 4 in parallel) [controller path has a typo, "addrress"].
AuthBrandProviderKeyReader.resolve(brandId, <serviceType-mapped BrandProviderType>, "KYCKART", ["KYCCARTBASE_URL","KYCCART_API_KEY"]) — one credential pair reused for all 4 services; header x-api-key. Maps to 4 distinct BrandProviderTypes: MOBILE_TO_ADDRESS, MOBILE_TO_ECOM_ADDRESS, MOBILE_TO_LPG_ADDRESS, MOBILE_TO_DL_ADDRESS.
WebhookNone — synchronous form-encoded POST per call.
alternateAddress for that (userId, addressProofType) are served directly; (2) failing that, a prior "no data found" error log within 30 days is replayed as a cached failure (checkPreviousNoDataErrors/getCachedErrorResponse) rather than re-calling (and re-billing) the vendor. Successful results write/update alternateAddress rows. "No data found" is treated as HTTP 200 business-success, not an error (handleApiErrorResponse). DL lookup gets a longer 60s timeout (vs 30s for the others); batch endpoint races each sub-call against its own timeout via Promise.allSettled.Resolves a mobile number to its EPFO UAN (Universal Account Number) for employment verification.
https://api.signzy.app/api/v3/api/mobile-to-uan — mobile→UAN lookupsrc/external/phoneToUan/phoneToUan.service.ts, .controller.ts, .module.ts
TriggerCalled internally by PhoneToUanService.getUanByPhone() / getUanByPhoneWithFallback() — consumed by UanToEmploymentController/other KYC flows; logs exposed at GET /partner/brand/:brandId/phone-to-uan/logs.
AuthBrandProviderKeyReader.resolve(brandId, "PHONE_TO_UAN", "SIGNZY", ["SIGNZY_PHONE_TO_UAN_AUTH_TOKEN"]), header Authorization: {token}.
WebhookNone.
getUanByPhoneWithFallback() tries providers in brand_providers order (primary first) among SUPPORTED_PROVIDERS = [SIGNZY, KYCKART] only — a brand may have other providers (e.g. DIGITAP) configured under PHONE_TO_UAN type (because Digitap resolves employment straight from mobile, skipping the UAN step) but this service only calls Signzy/KycKart. Existing UAN can be pulled from phoneToUanLog via getExistingUanFromLogs().Alternate mobile→UAN vendor.
https://api.kyckart.com/api/epfo/getUanV3 — mobile→UAN list lookup (form-encoded)src/external/phoneToUan/phoneToUan.service.ts
TriggerSame as the Signzy entry — fallback chain getUanByPhoneWithFallback().
AuthBrandProviderKeyReader.resolve(brandId, "PHONE_TO_UAN", "KYCKART", ["KYCKART_API_KEY"]), header x-api-key.
WebhookNone.
Fetches EPFO employment history (establishment, join/exit dates, member ID) for a given UAN/PAN/mobile.
https://api.signzy.app/api/v3/underwriting/fetch-employment-historysrc/external/uanToEmployment/uanToEmployment.service.ts, .controller.ts, .modules.ts
TriggergetActiveUanToEmploymentProvider()-dispatched from UanToEmploymentService.getEmploymentHistoryByUan(); exposed via POST /partner/brand/:brandId/uan-to-employment/employment-history (routes to getCompleteEmploymentHistoryWithFallback).
AuthBrandProviderKeyReader.resolve(brandId, "UAN_TO_EMPLOYMENT", "SIGNZY", ["SIGNZY_UAN_TO_EMPLOYMENT_AUTH_TOKEN"]), header Authorization.
WebhookNone.
brand_providers (type UAN_TO_EMPLOYMENT) picks SIGNZY / KYCKART / DIGITAP / DIGITAP_V4 (a pseudo-enum value cast as BrandProviderName, not in the Prisma enum). All results normalized into a common employmentHistory[]/employeeDetails shape and written to previousEmployment (upserted by memberId+UAN or establishment+UAN+joinDate).Alternate EPFO employment-history vendor by UAN.
https://api.kyckart.com/api/epfo/employment-history/fetch-by-uan-v6 — form-encodedsrc/external/uanToEmployment/uanToEmployment.service.ts
TriggerSame dispatch as Signzy above.
AuthBrandProviderKeyReader.resolve(brandId, "UAN_TO_EMPLOYMENT", "KYCKART", ["KYCKART_API_KEY"]), header x-api-key.
WebhookNone.
EPFO employment history lookup by mobile/PAN/UAN (basic tier).
https://svc.digitap.ai/cv/v4/uan_basic/sync — mobile/PAN/UAN → UAN employment detailssrc/external/uanToEmployment/uanToEmployment.service.ts (getEmploymentHistoryWithDigitap, getEmploymentHistoryWithDigitapByPan, getEmploymentHistoryWithDigitapByUan)
TriggerPOST /partner/brand/:brandId/uan-to-employment/digitap/pan and .../digitap/uan (reads PAN/UAN from the DB for the given userId rather than accepting it in the body); also dispatched from the generic fallback path.
AuthBrandProviderKeyReader.resolve(brandId, "UAN_TO_EMPLOYMENT", "DIGITAP", ["DIGITAP_UAN_TO_EMPLOYMENT_AUTH_KEY"]), header authorization: Basic {key}.
WebhookNone.
previousEmployment cache first (all matching cached rows returned, no vendor call) before calling Digitap; successful results are persisted back to previousEmployment.Higher tier EPFO employment-history lookup; tries mobile first, falls back to PAN.
https://svc.digitap.ai/cv/v4/uan_advanced/syncsrc/external/uanToEmployment/uanToEmployment.service.ts (getEmploymentHistoryWithDigitapV4)
TriggerDispatched when a brand's brand_providers row for UAN_TO_EMPLOYMENT names DIGITAP_V4 (an ad-hoc string cast to BrandProviderName, not a real Prisma enum value).
AuthBrandProviderKeyReader.resolve(brandId, "UAN_TO_EMPLOYMENT", "DIGITAP_V4", ["DIGITAP_UAN_TO_EMPLOYMENT_AUTH_KEY_V4"]) — separate auth key from the Basic tier.
WebhookNone.
Cross-brand/cross-tenant PAN search against the company's own central SSO service — checks if a PAN already has loans with other brands/tenants on the platform (dedup, exposure/DPD checks, repeat-loan rules). Internal cross-tenant service, documented since it is wired as an "external" HTTP call.
{SSO_PAN_SEARCH_BASE_URL}/dashboard/pan-search?panNumber=...&tenantId=...&skipTenantIds=...src/external/sso-pan-search/sso-pan-search.service.ts, .controller.ts, .module.ts
TriggerGET /partner/brand/:brandId/sso-pan-search (requires ADMIN/SUPER_ADMIN role or PAN_SEARCH/ALL permission — flagged in-code as a WAPT Sept 2026 fix, IDX-001). Also called internally for FRESH_LOAN_DPD_CHECK, EXPOSURE_CHECK, RULE_19_BRAND_LOAN, RULE_21_REPEAT_LOAN business flows (see SsoPanSearchSource type).
AuthSSO_PAN_SEARCH_BASE_URL / SSO_PAN_SEARCH_API_KEY env vars (not brand-scoped), header x-api-key.
WebhookNone.
isConfigured() gate — deployments without SSO leave these env vars unset and callers are expected to skip cross-brand checks rather than fail; warns once per process, not per request. Every call (success/fail) is logged via ExternalApiLogService (type: SSO_PAN_SEARCH), with the x-api-key deliberately excluded from logs. Note the same IDX-001 ticket reference used by the Task API's auth gap — these are two separate flagged issues sharing a backlog id prefix.Full GSTIN taxpayer profile (legal name, status, filing history, business places) — business/GST verification for self-employed or business-loan underwriting.
{DIGITAP_KYB_BASE_URL}/validation/kyb/v1/gstadvancedsrc/external/gstAdvanced/gstAdvanced.service.ts, .controller.ts, .modules.ts
TriggerPOST /partner/brand/:brandId/gst-advanced → GstAdvancedService.getGstAdvanced() (default provider when no brand_providers row configured).
AuthBrandProviderKeyReader.resolve(brandId, "GST_ADVANCED", "DIGITAP", ["DIGITAP_KYB_BASE_URL","DIGITAP_KYB_AUTH_KEY"]), header Authorization: Basic {key}.
WebhookNone.
Alternate GSTIN taxpayer-profile vendor; response is folded into the same canonical (Digitap-shaped) sections.
{SIGNZY_GST_BASE_URL}/api/v3/gstn/gstndetailedsrc/external/gstAdvanced/gstAdvanced.service.ts
TriggerSame controller route as Digitap — dispatched when brand_providers (type GST_ADVANCED) names SIGNZY as primary.
AuthBrandProviderKeyReader.resolve(brandId, "GST_ADVANCED", "SIGNZY", ["SIGNZY_GST_BASE_URL","SIGNZY_GST_AUTH_TOKEN"]), header Authorization: {token} (bare token, no scheme).
WebhookNone.
GstAdvancedSections shape. Signzy can return HTTP 200 with an error object, so a 200 status alone isn't treated as success. Shared caching (both Digitap & Signzy): readFromCache() serves the most recent successful response per (gstin, provider) within a configurable TTL (cacheTtlDays, default 30 days) via ExternalApiLogService.findLatestSuccessful(), unless forceRefresh is passed. Every call (cache hit, success, failure) is logged to external_api_log with type: GST_ADVANCED.Finds every GSTIN registered against a given PAN (business discovery / multi-GSTIN exposure).
{DIGITAP_KYB_BASE_URL}/validation/kyb/v1/gstpansearchsrc/external/gstPanSearch/gstPanSearch.service.ts, .modules.ts
TriggerGstPanSearchService.searchGstByPan() (no dedicated controller file was found alongside the service — likely called internally by GST/business-underwriting flows; confirm call sites in src/app/web if a route is needed).
AuthReuses the same Digitap KYB credential as GST Advanced: BrandProviderKeyReader.resolve(brandId, "GST_ADVANCED", "DIGITAP", ["DIGITAP_KYB_BASE_URL","DIGITAP_KYB_AUTH_KEY"]).
WebhookNone.
ExternalApiType.GST_PAN_SEARCH, default 30-day TTL, forceRefresh override). A result_code === 101 with zero GSTINs is treated as a valid answer (PAN simply has no GST registration), not a failure.Verifies a bank account number + IFSC belongs to the stated beneficiary name (penny-drop style, no actual money moved in this mode).
{PENNY_DROP_DIGITAP_BASE_URL}/penny-drop/v2/check-validsrc/external/pennyDrop/pennyDrop.service.ts, .controller.ts, .modules.ts
TriggerPOST /partner/brand/:brandId/penny-drop/verify and /verify-with-fallback → PennyDropService.verifyBankAccount().
AuthBrandProviderKeyReader.resolve(brandId, "PENNYDROP", "DIGITAP", ["PENNY_DROP_DIGITAP_BASE_URL","PENNY_DROP_DIGITAP_AUTH_KEY"]), header ent_authorization.
WebhookNone.
name_match_percentage derived from raw.model.matchingScore (0–100 scale → divided by 100). See the shared Penny Drop notes on the NeoapiBox card below — they apply to all 5 vendors.Bank account verification vendor (penny-drop style) — one of 5 vendor options.
{PENNY_DROP_SCOREME_BASE_URL}/kyc/external/bankAccountVerificationsrc/external/pennyDrop/pennyDrop.service.ts
TriggerSame controller routes as Digitap.
AuthBrandProviderKeyReader.resolve(brandId, "PENNYDROP", "SCOREME", ["PENNY_DROP_SCOREME_BASE_URL","PENNY_DROP_SCOREME_CLIENT_ID","PENNY_DROP_SCOREME_CLIENT_SECRET"]), headers ClientId/ClientSecret.
WebhookNone.
Bank account verification vendor (penny-drop style, advanced verification variant).
{PENNY_DROP_SIGNZY_BASE_URL}/api/v3/bankaccountverifications/advancedverificationsrc/external/pennyDrop/pennyDrop.service.ts
TriggerSame controller routes.
AuthBrandProviderKeyReader.resolve(brandId, "PENNYDROP", "SIGNZY", ["PENNY_DROP_SIGNZY_BASE_URL","PENNY_DROP_SIGNZY_AUTH_TOKEN"]), header Authorization. Requires the user's email on file (Signzy-mandatory field).
WebhookNone.
name_match_percentage derived from raw.result.nameMatchScore (already 0–1 scale). Same env keys are reused by PAN Details Plus's "Signzy PAN Extensive" client — see that card above."Penniless" verification for 80+ supported banks (no actual penny transfer), falling back to real penny-drop for the rest — same Signzy account as standard Penny Drop.
{PENNY_DROP_SIGNZY_BASE_URL}/api/v3/bankaccountverification/bankaccountverificationssrc/external/pennyDrop/pennyDrop.service.ts (verifyWithHybrid)
TriggerDispatched when brand_providers (type PENNYDROP) names SIGNZY_HYBRID.
AuthBrandProviderKeyReader.resolve(brandId, "PENNYDROP", "SIGNZY_HYBRID", ["PENNY_DROP_SIGNZY_BASE_URL","PENNY_DROP_SIGNZY_AUTH_TOKEN"]) — same keys as standard Signzy penny-drop.
WebhookNone.
Fifth bank-account-verification vendor option via the shared NeoapiBox client; also exposes an IMPS-penniless variant.
https://api.neoapibox.com/api/v1/bkav/penny-drophttps://api.neoapibox.com/api/v1/bkav/imps-pennilesssrc/external/pennyDrop/pennyDrop.service.ts (verifyWithNeoapiBox, verifyImpsPennilessWithNeoapiBox, callNeoapiBoxBankVerification)
TriggerDispatched when brand_providers (type PENNYDROP) names NEOAPIBOX; IMPS-penniless variant has no controller route found yet (service method only).
AuthNEOAPIBOX_API_KEY/NEOAPIBOX_CLIENT_ID via BrandProviderKeyReader under BrandProviderType.PENNYDROP.
WebhookNone.
storePennyDropResponseToS3) and logged to pennyDropLog. verifyBankAccountWithFallback() orders providers from brand_providers (primary first, or a caller-specified preferredProvider moved to front), tries each in turn, and on success updates userBankAccount.verificationStatus/beneficiary_name/name_match_percentage; on total failure it surfaces the latest failed log's error message.Reverse-geocodes a lat/lng pair (e.g. from a field-visit/PD app) into a structured address (postal code, city, district, state).
{baseUrl}/geocode/json?latlng={lat},{lng}&key={apiKey} — Google Maps Geocoding API (baseUrl typically https://maps.googleapis.com/maps/api, configured via GeoCodingConfig)src/external/geocoding/geocoding.service.ts, geocoding.module.ts
TriggerCalled internally by GeoCodingService.getFullAddressDetails() — consumed by PD/field-visit flows needing address reverse-lookup (module registered dynamically; look for GeoCodingModule.register() call sites for the exact feature, likely src/features/loans/pd).
AuthGOOGLE_GEOLOCATION_API_KEY env var, read at call time (not boot time) specifically because AWS Secrets Manager values aren't in process.env yet when register() runs during module import.
WebhookNone.
data.status — only ZERO_RESULTS/empty results means no address found; other non-OK statuses (REQUEST_DENIED, OVER_QUERY_LIMIT, etc.) are treated as a BAD_GATEWAY, not "no address." Prefers the first result containing a postal_code component (plus-code-only results for rural points are skipped) over Google's "best match" results[0].This is an inbound API endpoint, not an outbound vendor integration — external callers (other internal tools / possibly a partner dashboard) query it to get a borrower's active-loan "lead data" by PAN, for central cross-brand deduplication. Flagged here per the research brief's instruction to check what it actually does ("name is ambiguous").
TaskService only queries the local Prisma DB (brandConfig, user, loan). This card documents it as an inbound/internal route, not an outbound vendor call.src/external/task-api/task.service.ts, task.controller.ts, task.module.ts
TriggerPOST /TaskApi/getLeadDataFromPancard — public auth type, explicitly marked @NoAuthzRequired with an in-code note: "the guard used to fail open, so this route was already reachable by any authenticated partner user... right requirement for it has not been decided" (IDX-001 backlog item).
AuthNone — public route, no API key check in code.
WebhookN/A.
brandConfig.enable_central_dedup = true, which limits but does not eliminate exposure. A backlog ticket (IDX-001) already exists for it in code. Flagged to security/product: this should not ship to a new environment without an auth decision — see the risk callout at the top of this page.5 integrations: 4 Aadhaar e-sign vendors unified behind one internal router, plus Doqfy's dedicated e-stamp order flow with its own state machine.
Aadhaar OTP e-sign of the loan agreement PDF.
{baseUrl}/api/sandbox/signRequest (dev/sandbox) or .../api/live/signRequest (production) — create the signing docket{baseUrl}/api/sandbox/getSignatureStatus / .../api/live/getSignatureStatus — poll signer statussrc/external/signdesk/signdesk.service.ts, signdesk.module.ts, interface/signDesk-config.interface.ts
TriggerCalled internally by EsignService (src/features/esign/esign.service.ts, line ~651) when provider === "SIGNDESK", triggered from POST /esign/send-document in src/features/esign/esign.controller.ts (partner-initiated, or auto-triggered loan-stage advancement elsewhere in esign.service.ts).
AuthBrandProviderKeyReader.resolve(brandId, "LOAN_AGREEMENT", "SIGNDESK", ["SIGNDESK_API_KEY","SIGNDESK_BASE_URL","SIGNDESK_API_ID","SIGNDESK_CALLBACK_URL"]); headers api_key, x-parse-application-id, x-parse-rest-api-key. Live vs. sandbox path chosen by process.env.NODE_ENV === "production".
WebhookPOST /esign/webhook (public) → EsignService.webhook() — matches by document_id against the most recent SIGNDESK row in external_api_log.
external_api_log with type: ESIGN, provider: SIGNDESK, status: PENDING until the webhook resolves it (signing itself always happens async via webhook, never synchronously from the initiate call). Document bytes stripped before logging (withoutInlinedDocuments).Aadhaar OTP e-sign via Signzy's v3 Contract API; supports multiple signers (borrower + guarantors) in one contract, with per-brand signature-position customization (e.g. a special top-right override for a specific brand/lender).
{baseUrl}/api/v3/contract/initiate — initiate multi-signer contract{baseUrl}/api/v3/contract/pullData — pull contract/signer statussrc/external/signzy/services/v3Contract.services.ts, signzy-v3-contract.module.ts, interface/v3Contract.interface.ts, interface/signzy-contract.types.ts. Distinct from the Signzy-CIBIL/CRIF integration under src/external/cibil.
TriggerCalled internally by EsignService (line ~607) when provider === "SIGNZY", same POST /esign/send-document trigger as above.
AuthBrandProviderKeyReader.resolve(brandId, "LOAN_AGREEMENT", "SIGNZY", ["SIGNZY_V3_API_KEY","SIGNZY_V3_BASE_URL"]), header Authorization: {apiKey} + x-uniqueReferenceId.
WebhookPOST /esign/v3/webhook → EsignService.signzyV3ContractWebhook(), matched by contractId. callbackUrl sent to Signzy is hardcoded to ${process.env.WEBHOOK_URL}/api/v1/esign/v3/webhook. Also successRedirectUrl/failureRedirectUrl set to https://{brandSubdomain}/signzy-success?ref=... / /signzy-failure?ref=....
loan_type_id === 98) sign in parallel; guarantor signature positions cycle through BOTTOMRIGHT/BOTTOMCENTER. A hardcoded brand override (DHANI_BRAND_ID) puts the borrower's signature top-right instead of the default bottom-left.Aadhaar e-sign via Digitap; upload-then-sign flow (separate PUT upload URL) with a standalone hosted signing page.
{DIGITAP_CONTRACT_API_BASE_URL}/ent/v1/generate-esign — create e-sign session, returns docId + an S3-style upload URL{uploadUrl} — upload the PDF bytes directly to the URL Digitap returned (not Digitap's own domain — a pre-signed storage URL){DIGITAP_CONTRACT_API_BASE_URL}/ent/v1/get-esign-doc — poll signing status by docIdhttps://sdk.digitap.ai/e-sign/templateesignprocess.html?docId=...&redirect_url=...&error_url=... — hosted signing page the borrower is emailed/redirected to (not an API call, a browser URL)src/external/digitapEsign/digitap.esign.service.ts, digitap.esign.module.ts, interface/digitap.esign.interface.ts
TriggerCalled internally by EsignService (line ~623) when provider === "DIGITAP".
AuthBrandProviderKeyReader.resolve(brandId, "LOAN_AGREEMENT", "DIGITAP", ["DIGITAP_CONTRACT_API_AUTH_KEY","DIGITAP_CONTRACT_API_BASE_URL"]), header Authorization: {authKey}.
WebhookPOST /esign/digitap/webhook → EsignService.digitapWebhook() — notably this delegates to DigiLocker20Service.handleDigitapWebhook() (cross-wired with the DigiLocker integration, not handled inside DigitapEsignService itself). Redirect pages: {FRONTEND_URL}/loan-application/esign-success / /esign-error.
EmailType.ESIGN_DOCUMENT_READY) with the signing URL via AwsTransactionalEmailSqsService (best-effort, logs rather than throws if the SQS service isn't configured). Signing happens entirely on Digitap's standalone hosted page, not a Digitap-domain redirect into our app.Aadhaar OTP e-sign (bottom-right, all pages) via Doqfy's "cat/upload" combined stamp+sign order API.
{baseUrl}/order/cat/upload/ — create a combined e-sign (and optionally e-stamp) order with the PDF inline as base64{baseUrl}/order/orders/?order_ids={id}&detail=1 — order/signer status{baseUrl}/order/order_document/?order_id={id} — download signed document (base64, Python-bytes-literal wrapped — stripped by stripDoqfyPyBytes)src/external/doqfy/doqfy.esign.service.ts, doqfy.esign.module.ts, doqfy.http.ts (shared with e-stamp), interface/doqfy.esign.interface.ts
TriggerCalled internally by EsignService (line ~637) when provider === "DOQFY". baseUrl is NODE_ENV-hardcoded: https://prod-api.doqfy.in (production) or https://uat-api.doqfy.in (anything else) — see resolveDoqfyBaseUrl() in doqfy.http.ts.
AuthBrandProviderKeyReader.resolve(brandId, "LOAN_AGREEMENT", "DOQFY", ["DOQFY_ESIGN_API_KEY","DOQFY_ESIGN_SECRET_KEY","DOQFY_ESIGN_BRANCH_ID"]); headers api-key/secret-key. Branch id treated as account-level config (not per-brand data), required for order placement.
WebhookPOST /esign/doqfy/webhook → EsignService.doqfyWebhook(), matched by order_id against the latest DOQFY row in external_api_log. Doqfy sends no signature on the webhook — authentication is solely "does this order_id map to a row we created."
workflowUrl: null) — Doqfy emails the signer directly; our status/workflow URL is backfilled later from status polls or the webhook. isOrderComplete()/isSignerSigned()/isOrderFailed() status-string matching is explicitly flagged in code as unconfirmed/best-guess ("TODO: Verify the status enums from Doqfy").Places stamp-duty-only orders (buys e-stamp paper, no signature) against Doqfy's estamp API, used by the LOS's e-stamping feature (src/features/estamp) ahead of/alongside the e-sign step.
{baseUrl}/account/branch/ — list branches (determines which state's stamp paper an order uses){baseUrl}/articles/ — list stampable articles (head of charge), filterable by state_code{baseUrl}/estamp/order/ — place a stamp-only order (takes article_id, stamp_duty_amount, consideration_amount, execution_date in epoch milliseconds, referance_id as idempotency key — note Doqfy's own misspelling){baseUrl}/order/orders/?order_ids=...&detail=1 — order + estamp/certificate status (same endpoint as e-sign's status call, different payload shape){baseUrl}/estamp/certificates/ — stamp-paper inventory held on the account{baseUrl}/order/audit_trail/?order_id=... — order audit trail (response shape undocumented by vendor){baseUrl}/order/order_document/?order_id=... — download the stamp certificate / stamped document{baseUrl}/order/cancel-order/ — cancel an ordersrc/external/doqfy/doqfy.estamp.service.ts, doqfy.estamp.module.ts, interface/doqfy.estamp.interface.ts, doqfy.http.ts (shared) — consumed via src/features/estamp/providers/doqfy-estamp.adapter.ts
TriggerPOST /estamp/order in src/features/estamp/controllers/estamp.controller.ts → EstampOrchestratorService.place() → DoqfyEstampAdapter.place() (role/permission-gated behind LOAN_AGREEMENT). Also POST /estamp/order/:orderId/refresh (re-poll), POST /estamp/order/:orderId/resolve (manual ops resolution), GET /estamp/brand/:brandId/queue, GET /estamp/loan/:loanId.
AuthBrandProviderKeyReader.resolve(brandId, "ESTAMP", "DOQFY", ["DOQFY_ESTAMP_API_KEY","DOQFY_ESTAMP_SECRET_KEY","DOQFY_ESTAMP_BRANCH_ID", ...fallback to DOQFY_ESIGN_* keys...]) — one Doqfy vendor account: DOQFY_ESTAMP_* env vars fall back to DOQFY_ESIGN_* if unset, since ops typically holds a single api-key/secret-key pair. Base URL is NOT configurable — same NODE_ENV-based resolveDoqfyBaseUrl() as e-sign.
WebhookPOST /estamp/webhook/:provider (public, always answers 200 regardless of outcome — code comment explains this is deliberate so Doqfy doesn't endlessly retry a delivery that isn't ours or one we failed to process). Doqfy sends one webhook per order covering both e-sign and e-stamp data — DoqfyEstampAdapter.toView() ignores any webhook body with no estamp_data. Authenticated only by order_id matching a known order (no signature).
src/features/estamp/services/estamp-state-machine.ts):
estamp_order_status_enum: PENDING → SUBMITTING → {SUBMITTED | STAMPED | FAILED | NEEDS_REVIEW}; SUBMITTED → {STAMPED | FAILED | CANCELLED}; STAMPED/FAILED/CANCELLED are terminal. NEEDS_REVIEW is deliberately not terminal — it means "we don't know if the vendor took the money," and can only be resolved by a later webhook echoing our reference or an operator manually recording what Doqfy's console shows (POST /estamp/order/:orderId/resolve) — never resolved automatically on a timer. Status is derived from the certificate number being present, not from the vendor's order-status string ("reads the certificate, not the order status" — an order can carry an estamp record with no certificate from the moment it's placed).
createEstampOrder is treated as a one-shot, never-retried mutating call (EstampCallRunner, since a retry would double-pay stamp duty) — see src/features/estamp/client/estamp-call.runner.ts / estamp-idempotency.ts. An estamp-reconcile.cron.service.ts sweeps open (non-terminal, non-parked) orders periodically. doqfy.estamp.service.ts itself is explicitly commented as a pure transport layer with no internal audit logging — all logging/orchestration/stage semantics live in the src/features/estamp layer that wraps it (EstampStoreService, EstampPolicyService, EstampRouterService).Patterns that recur across most of the 38 integrations above — worth internalizing once rather than re-reading per card.
PENNY_DROP_SIGNZY_* env/brand keys are reused by both Penny Drop and PAN Details Plus's "Signzy PAN Extensive" client. Doqfy's e-sign keys are the fallback default for e-stamp. Digitap's DIGITAP_KYB_* keys are shared by both GST Advanced and GST PAN Search.
BrandProviderKeyReader.resolve(brandId, <BrandProviderType>, <BrandProviderName>, [...envKeys]), falling back to process env / DI-injected config set at module register() time. The brand_providers table (fields: type, provider, isActive, isDisabled, isPrimary) drives both credential resolution and fallback-chain ordering uniformly across KYC, lookup, and e-sign/e-stamp vendors.
src/features/esign/esign.service.ts / esign.controller.ts, with provider passed explicitly in POST /esign/send-document rather than resolved purely from brand_providers (the caller picks the vendor).
doqfy.estamp.service.ts level is explicitly flagged as not yet wired into any caller — superseded by the newer src/features/estamp feature, which is wired up.