External Providers / KYC & e-Sign

KYC, Identity & e-Sign/e-Stamp

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.

Ground truth as of 2026-10-01 — built from a dedicated deep-research pass over 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}
Security — unauthenticated PII endpoint Task API (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.

01 KYC, Identity & Lookup Utilities

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.

Account Aggregator (bank-statement / consent data)

Account Aggregator — Finduit (FIU) KYC/Identity

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.

  • POST {FINDUIT_AUTHENTICATION_BASE_URL}/api/FIU/Authentication — authenticate, get bearer token + sessionId
  • POST {FINDUIT_BASE_URL}/api/FIU/RedirectAA — generate the AA consent redirect URL
  • POST {FINDUIT_BASE_URL}/api/FIData/v2/FetchPeriodicData — pull periodic financial data for an active consent
Modulesrc/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.
Notes: Part of a 3-way provider fallback chain (FINDUIT → CART → XALER) resolved per-brand via 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).
Account Aggregator — CART KYC/Identity

Alternate Account Aggregator vendor for bank-statement pulls (net-banking based auto-fetch flow instead of Sahamati consent redirect).

  • POST {AA_CART_BASE_URL}/api/generateNetBankingRequest — generate CART auto-fetch URL
  • POST {AA_CART_BASE_URL}/api/downloadFile / /api/downloadFileAsXml / /api/downloadFileAsExcel — download the report in JSON/XML/Excel
  • GET {AA_CART_BASE_URL}/api/fetchBankNames — supported bank list
Modulesrc/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".
Notes: 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.
Account Aggregator — Xaler KYC/Identity

Third Account Aggregator vendor option; generates a consent URL, polls status, and retrieves JSON/XLSX reports.

  • POST {AA_XALER_BASE_URL}/bank-data-aa/generate-url/ — generate consent URL
  • POST {AA_XALER_BASE_URL}/bank-data-aa/status-check/ — poll consent/report status
  • POST {AA_XALER_BASE_URL}/bank-data-aa/retrieve-report/ — retrieve JSON/XLSX report
Modulesrc/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).
Notes: 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).

DigiLocker / Aadhaar e-KYC

DigiLocker (Aadhaar pull) — Signzy KYC/Identity

Aadhaar e-KYC via DigiLocker redirect flow — user consents on Signzy's hosted DigiLocker page, backend then pulls the e-Aadhaar XML/photo.

  • POST {SIGNZY_DIGILOCKER_BASE_URL}/api/v3/digilocker-v2/createUrl — create the DigiLocker consent URL
  • POST {SIGNZY_DIGILOCKER_BASE_URL}/api/v3/digilocker-v2/geteAadhaar — fetch e-Aadhaar once the user completes DigiLocker consent
Modulesrc/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.
Notes: 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.
DigiLocker (Aadhaar pull) — Digitap KYC/Identity

Alternate DigiLocker/Aadhaar KYC vendor using Digitap's "KYC Unified" DigiLocker flow.

  • POST https://svc.digitap.ai/kyc-unified/v1/generate-url/ — generate DigiLocker consent URL
  • GET https://svc.digitap.ai/kyc-unified/v1/{unifiedTransactionId}/details/ — fetch KYC/Aadhaar details once completed
Modulesrc/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.
Notes: Same 10-minute "reuse successful URL" optimization flag as Signzy (currently disabled). Part of the generateUrlWithFallback() chain ordered by brand_providers (AADHAAR_DIGILOCKER type, primary first): DIGITAP → SIGNZY → NEOAPIBOX, trying each until one succeeds.
DigiLocker (Aadhaar pull) — NeoapiBox KYC/Identity

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).

  • POST https://api.neoapibox.com/api/v1/digilocker/generate-kyc-link — generate KYC/DigiLocker link
  • POST https://api.neoapibox.com/api/v1/digilocker/kyc-details — fetch KYC details by transaction id
  • POST https://api.neoapibox.com/api/v1/aadhaar-advanced — standalone Aadhaar lookup (no DigiLocker flow)
Modulesrc/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.
Notes: Requires a verified user email unconditionally (NeoapiBox has no 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 Details Plus

PAN Details Plus — Digitap KYC/Identity

PAN → name/DOB/address verification, one vendor in the PAN Details Plus fallback chain.

  • POST {DIGITAP_BASE_URL}/validation/kyc/v1/pan_details — PAN details lookup
Modulesrc/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).
Notes: See the shared fallback-chain/caching card below for how this vendor is ordered, cached, and guarded against duplicate PANs.
PAN Details Plus — ScoreMe KYC/Identity

PAN verification vendor in the fallback chain.

  • POST {SCOREME_BASE_URL}/kyc/external/panDetailInfo — PAN detail lookup
Modulesrc/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.
Notes: Shares the fallback-chain/caching behaviour documented in the shared card below.
PAN Details Plus — Signzy (PAN Extensive) KYC/Identity

PAN verification vendor in the fallback chain; shares the penny-drop Signzy account/credentials.

  • POST {PENNY_DROP_SIGNZY_BASE_URL}/api/v3/panextensive — PAN extensive lookup
Modulesrc/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.
Notes: Shares the fallback-chain/caching behaviour documented in the shared card below.
PAN Details Plus — NeoapiBox KYC/Identity

Fourth PAN verification vendor option, via the shared NeoapiBox wallet-token client.

  • POST https://api.neoapibox.com/api/v1/pan-detail — PAN lookup (via shared NeoapiBox token dance)
Modulesrc/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.
Notes: Unlike the other 3 PAN Details Plus clients, failures surface as a NestJS HttpException (already unwrapped by NeoapiBoxClient), not a raw axios error, so this client remaps errors differently (reads HttpException.getResponse() instead of isAxiosError).
PAN Details Plus — fallback chain, caching & duplicate-PAN guard KYC/Identity

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.

Modulesrc/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.
Notes (verified from code): Chain order: 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).

Face & Liveness Verification

Face Verification (8byte internal ML backend) KYC/Identity

Compares the Aadhaar DigiLocker photo against the borrower's self-captured profile photo for a face-match score, used in the KYC onboarding flow.

  • POST {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)
Modulesrc/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.
Notes: Also used by 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 — Face Liveness KYC/Identity

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.

  • SDK 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.
Modulesrc/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.
Notes: Marked explicitly in code as a POC; browser-side needs separate short-lived Cognito Identity Pool credentials (never the server's long-lived keys). Settings currently use the default (unconfigured) challenge type rather than explicitly choosing FaceMovementAndLightChallenge.

Email Domain / Company Verification

Domain Check — Signzy (email domain / company enrichment) KYC/Identity

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.

  • POST {SIGNZY_EMAIL_DOMAIN_BASE_URL} — full URL is the brand-configured base URL itself (no extra path appended); Signzy's email/domain intelligence API
Modulesrc/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.
Notes: Free-email domains (gmail/yahoo/hotmail/rediffmail) are skipped without calling the vendor (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.

Address, Mobile & Employment Lookups

Mobile to Address Verification — KycKart Lookup Utility

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.

  • POST {KYCCARTBASE_URL}/api/mobileVerification/mobileToAddresses — registered addresses
  • POST {KYCCARTBASE_URL}/api/mobileVerification/mobileToAddressesEcommerceV3 — e-commerce delivery addresses
  • POST {KYCCARTBASE_URL}/api/lpgBill/searchV3 — LPG connection/address details
  • POST {KYCCARTBASE_URL}/api/mobileVerification/mobileToDLAdvanced — driving-license-linked addresses
Modulesrc/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.
Notes: Dual-layer caching before any vendor call: (1) existing rows in 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.
Phone to UAN — Signzy Lookup Utility

Resolves a mobile number to its EPFO UAN (Universal Account Number) for employment verification.

  • POST https://api.signzy.app/api/v3/api/mobile-to-uan — mobile→UAN lookup
Modulesrc/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.
Notes: 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().
Phone to UAN — KycKart Lookup Utility

Alternate mobile→UAN vendor.

  • POST https://api.kyckart.com/api/epfo/getUanV3 — mobile→UAN list lookup (form-encoded)
Modulesrc/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.
Notes: Shares the fallback chain documented on the Signzy card above.
UAN to Employment — Signzy Lookup Utility

Fetches EPFO employment history (establishment, join/exit dates, member ID) for a given UAN/PAN/mobile.

  • POST https://api.signzy.app/api/v3/underwriting/fetch-employment-history
Modulesrc/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.
Notes: Brand's primary provider among 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).
UAN to Employment — KycKart Lookup Utility

Alternate EPFO employment-history vendor by UAN.

  • POST https://api.kyckart.com/api/epfo/employment-history/fetch-by-uan-v6 — form-encoded
Modulesrc/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.
Notes: Shares the fallback/normalization behaviour documented on the Signzy UAN-to-Employment card above.
UAN to Employment — Digitap (Basic, v1 "uan_basic") Lookup Utility

EPFO employment history lookup by mobile/PAN/UAN (basic tier).

  • POST https://svc.digitap.ai/cv/v4/uan_basic/sync — mobile/PAN/UAN → UAN employment details
Modulesrc/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.
Notes: Both PAN- and UAN-keyed variants check the previousEmployment cache first (all matching cached rows returned, no vendor call) before calling Digitap; successful results are persisted back to previousEmployment.
UAN to Employment — Digitap V4 Advanced ("uan_advanced") Lookup Utility

Higher tier EPFO employment-history lookup; tries mobile first, falls back to PAN.

  • POST https://svc.digitap.ai/cv/v4/uan_advanced/sync
Modulesrc/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.
Notes: In-request fallback: tries mobile lookup first; if no employment data found (not just on HTTP error), retries with PAN.

Cross-Tenant, GST & Business Lookups

GST Advanced — Digitap Lookup Utility

Full GSTIN taxpayer profile (legal name, status, filing history, business places) — business/GST verification for self-employed or business-loan underwriting.

  • POST {DIGITAP_KYB_BASE_URL}/validation/kyb/v1/gstadvanced
Modulesrc/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.
Notes: See the shared caching note on the Signzy GST Advanced card below — applies to both vendors.
GST Advanced — Signzy Lookup Utility

Alternate GSTIN taxpayer-profile vendor; response is folded into the same canonical (Digitap-shaped) sections.

  • POST {SIGNZY_GST_BASE_URL}/api/v3/gstn/gstndetailed
Modulesrc/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.
Notes: Signzy's payload carries no goods/services list, filing-delay counts, or filing-gap data — those fields are left absent (not invented) when mapped into the shared 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.
GST PAN Search — Digitap Lookup Utility

Finds every GSTIN registered against a given PAN (business discovery / multi-GSTIN exposure).

  • POST {DIGITAP_KYB_BASE_URL}/validation/kyb/v1/gstpansearch
Modulesrc/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.
Notes: Same TTL-cache pattern as GST Advanced (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.

Bank Account Verification (Penny Drop)

Penny Drop — Digitap KYC/Identity

Verifies a bank account number + IFSC belongs to the stated beneficiary name (penny-drop style, no actual money moved in this mode).

  • POST {PENNY_DROP_DIGITAP_BASE_URL}/penny-drop/v2/check-valid
Modulesrc/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.
Notes: 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.
Penny Drop — ScoreMe KYC/Identity

Bank account verification vendor (penny-drop style) — one of 5 vendor options.

  • POST {PENNY_DROP_SCOREME_BASE_URL}/kyc/external/bankAccountVerification
Modulesrc/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.
Notes: Shares the fallback/S3-archival/logging behaviour documented on the NeoapiBox Penny Drop card below.
Penny Drop — Signzy (standard) KYC/Identity

Bank account verification vendor (penny-drop style, advanced verification variant).

  • POST {PENNY_DROP_SIGNZY_BASE_URL}/api/v3/bankaccountverifications/advancedverification
Modulesrc/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.
Notes: 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.
Penny Drop — Signzy Hybrid KYC/Identity

"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.

  • POST {PENNY_DROP_SIGNZY_BASE_URL}/api/v3/bankaccountverification/bankaccountverifications
Modulesrc/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.
Notes: Shares the Signzy Penny Drop credential pair; see the shared Penny Drop notes on the NeoapiBox card below for cross-vendor fallback/archival behaviour.
Penny Drop — NeoapiBox (Penny Drop + IMPS Penniless) KYC/Identity

Fifth bank-account-verification vendor option via the shared NeoapiBox client; also exposes an IMPS-penniless variant.

  • POST https://api.neoapibox.com/api/v1/bkav/penny-drop
  • POST https://api.neoapibox.com/api/v1/bkav/imps-penniless
Modulesrc/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.
Shared Penny Drop notes (all 5 vendors): Responses are gzip-compressed and archived to private S3 (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.

Geocoding

Geocoding — Google Maps Geocoding API Lookup Utility

Reverse-geocodes a lat/lng pair (e.g. from a field-visit/PD app) into a structured address (postal code, city, district, state).

  • GET {baseUrl}/geocode/json?latlng={lat},{lng}&key={apiKey} — Google Maps Geocoding API (baseUrl typically https://maps.googleapis.com/maps/api, configured via GeoCodingConfig)
Modulesrc/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.
Notes: Google returns HTTP 200 for every outcome with the real verdict in 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].

Internal & Platform-Level

Task API (internal — NOT a third-party vendor) Security Risk

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").

  • None called — TaskService only queries the local Prisma DB (brandConfig, user, loan). This card documents it as an inbound/internal route, not an outbound vendor call.
Modulesrc/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.
Notes — SECURITY RISK: This endpoint is reachable with no authentication and returns PAN-linked loan/PII data to any caller. It only returns data for brands with 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.
NeoapiBox (shared platform client) KYC/Identity — platform/infrastructure

Shared HTTP client implementing NeoapiBox's prepaid-wallet, 3-step per-call-token auth dance, used by every NeoapiBox capability module instead of each one talking to NeoapiBox directly. Underlies the DigiLocker, PAN Details Plus, and Penny Drop NeoapiBox entries above — not a single capability of its own.

  • POST https://api.neoapibox.com/api/v1/token/wallet-ops — mint 24h wallet-operation token (Redis-cached 23h)
  • POST https://api.neoapibox.com/api/v1/token/payment-receipt — mint single-use payment-receipt token per call (never cached)
  • POST https://api.neoapibox.com/api/v1/token/unused-token — best-effort refund of a minted-but-unused token (on our-side network/timeout failures)
  • GET https://api.neoapibox.com/api/v1/token/wallet-balance — wallet balance (used by a monitoring cron)
Modulesrc/external/neoapiBox/neoapiBox-client.service.ts, neoapiBox.constants.ts, neoapiBox.module.ts, interfaces/neoapiBox.interface.ts TriggerNeoapiBoxClient.callService() is the single call-site every capability adapter uses (DigiLocker, PAN Details Plus, Penny Drop — see their cards above); not directly routed itself. AuthNEOAPIBOX_API_KEY / NEOAPIBOX_CLIENT_ID via BrandProviderKeyReader, scoped per BrandProviderType (so a brand can set different NeoapiBox credentials per capability). NEOAPIBOX_BASE_URL env var overrides the default host. WebhookNone.
Notes: No sandbox exists — code comments confirm (2026-09-28) the vendor's documented "sandbox.neoapibox.com" host is NXDOMAIN and the issued credentials are production, spending from a real prepaid wallet on every call. serviceName header values for payment-receipt must match the account's own dashboard labels exactly (NEOAPIBOX_SERVICE_NAMES constant) — the vendor's public docs' example strings are confirmed wrong for some services. Refund logic: on a vendor-confirmed rejection (response message mentions "refund"), no refund call is made (avoids double-refund); on any other vendor error or network failure, refundUnusedToken() is called. Every callService() attempt is logged to external_api_log regardless of the specific capability.

02 e-Sign / e-Stamp

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.

e-Sign — SignDesk e-Sign

Aadhaar OTP e-sign of the loan agreement PDF.

  • POST {baseUrl}/api/sandbox/signRequest (dev/sandbox) or .../api/live/signRequest (production) — create the signing docket
  • POST {baseUrl}/api/sandbox/getSignatureStatus / .../api/live/getSignatureStatus — poll signer status
Modulesrc/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.
Notes: Request logged to 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).
e-Sign — Signzy (v3 Contract) e-Sign

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).

  • POST {baseUrl}/api/v3/contract/initiate — initiate multi-signer contract
  • POST {baseUrl}/api/v3/contract/pullData — pull contract/signer status
Modulesrc/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=....
Notes: Refuses to send if any signer (borrower or guarantor) is missing their Aadhaar last-4-digits or email, naming exactly who is missing it rather than relaying Signzy's generic error. Guarantor-loan contracts (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.
e-Sign — Digitap e-Sign

Aadhaar e-sign via Digitap; upload-then-sign flow (separate PUT upload URL) with a standalone hosted signing page.

  • POST {DIGITAP_CONTRACT_API_BASE_URL}/ent/v1/generate-esign — create e-sign session, returns docId + an S3-style upload URL
  • PUT {uploadUrl} — upload the PDF bytes directly to the URL Digitap returned (not Digitap's own domain — a pre-signed storage URL)
  • POST {DIGITAP_CONTRACT_API_BASE_URL}/ent/v1/get-esign-doc — poll signing status by docId
  • GET https://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)
Modulesrc/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.
Notes: After session creation, sends a transactional email (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.
e-Sign — Doqfy e-Sign

Aadhaar OTP e-sign (bottom-right, all pages) via Doqfy's "cat/upload" combined stamp+sign order API.

  • POST {baseUrl}/order/cat/upload/ — create a combined e-sign (and optionally e-stamp) order with the PDF inline as base64
  • GET {baseUrl}/order/orders/?order_ids={id}&detail=1 — order/signer status
  • GET {baseUrl}/order/order_document/?order_id={id} — download signed document (base64, Python-bytes-literal wrapped — stripped by stripDoqfyPyBytes)
Modulesrc/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."
Notes: Returns no signing URL at order-creation time (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").
e-Stamp — Doqfy e-Stamp

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.

  • GET {baseUrl}/account/branch/ — list branches (determines which state's stamp paper an order uses)
  • GET {baseUrl}/articles/ — list stampable articles (head of charge), filterable by state_code
  • POST {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)
  • GET {baseUrl}/order/orders/?order_ids=...&detail=1 — order + estamp/certificate status (same endpoint as e-sign's status call, different payload shape)
  • GET {baseUrl}/estamp/certificates/ — stamp-paper inventory held on the account
  • GET {baseUrl}/order/audit_trail/?order_id=... — order audit trail (response shape undocumented by vendor)
  • GET {baseUrl}/order/order_document/?order_id=... — download the stamp certificate / stamped document
  • POST {baseUrl}/order/cancel-order/ — cancel an order
Modulesrc/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).
Notes — state machine (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).
Notes — reliability & ownership: 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).

· Cross-cutting observations

Patterns that recur across most of the 38 integrations above — worth internalizing once rather than re-reading per card.

Shared vendor accounts across capabilities Signzy's 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.
One credential/fallback pattern underlies almost everything Virtually every provider resolves brand-specific overrides via 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.
e-Sign router All 4 e-sign vendors (SignDesk, Signzy, Digitap, Doqfy) are unified behind one internal router, 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).
NeoapiBox is the least mature integration Per in-code comments: no sandbox exists (production credentials only, spending from a real prepaid wallet on every call), vendor-doc inaccuracies have already been found and worked around, and the e-stamp Doqfy path at the 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.