Sign In As

AIVANA BRAYNOR · Premium Education Platform

Advanced Fintech & PaymentsAI, Fraud, Identity & Financial CrimeTopic 33

Identity, KYC, KYB and Digital Customer Onboarding APIs

Architecture for KYC (Know Your Customer), KYB (Know Your Business), and digital onboarding

Quick Answer

KYC (Know Your Customer) verifies individual identity for regulatory compliance. KYB (Know Your Business) verifies business identity and beneficial ownership. Digital onboarding automates identity verification using document scanning, biometric matching, liveness detection, and database checks. Key components: document verification (OCR, ID parsing), biometric verification (face match, liveness), database checks (sanctions, PEP, watchlists), and risk scoring. Modern KYC APIs enable real-time verification in < 2 minutes.

Learning Objectives
1Design KYC and KYB verification architecture
2Implement digital onboarding with document and biometric verification
3Build identity verification APIs
4Design risk scoring and enhanced due diligence
5Handle regulatory compliance for KYC/KYB
Executive Summary

KYC (Know Your Customer) and KYB (Know Your Business) are regulatory requirements for financial institutions to verify the identity of their customers. KYC verifies individuals; KYB verifies businesses and their beneficial owners.

Digital onboarding automates identity verification using: document scanning (OCR, ID parsing), biometric verification (face match, liveness detection), database checks (sanctions, PEP, watchlists), and risk scoring. Modern KYC platforms enable real-time verification in under 2 minutes.

This topic covers KYC/KYB architecture, digital onboarding, identity verification APIs, and regulatory compliance.

What Is Identity, KYC, KYB and Digital Customer Onboarding APIs?

KYC (Know Your Customer) is the process of verifying the identity of individual customers for regulatory compliance. KYB (Know Your Business) is the process of verifying business identity, registration, and beneficial ownership. Digital onboarding automates these processes using document scanning, biometric verification, and database checks to verify identity in real-time.

Why This Topic Matters

KYC/KYB is a regulatory requirement for all financial institutions and fintech companies. Non-compliance results in regulatory penalties, fines, and loss of operating licenses. Effective KYC also prevents fraud, identity theft, and money laundering.

For customer experience, fast and frictionless KYC is critical. Slow or cumbersome KYC leads to onboarding abandonment. Modern digital KYC can verify identity in under 2 minutes, compared to days for manual verification.

Why It Matters in 2026+

In 2026, digital KYC is standard with AI-powered document verification, biometric matching, and liveness detection. India Aadhaar eKYC provides instant identity verification for 1.3 billion people. Global KYC standards are converging.

The rise of embedded finance and BaaS has made KYC APIs accessible to any platform, enabling instant onboarding for financial services.

Architecture Overview

KYC/KYB architecture:

Reference Architecture

Customer Onboarding
Document Upload
OCR & Parsing
Biometric Verification
Database Checks
Risk Scoring
Decision (Approve/Reject/Review)

The customer uploads identity documents. OCR extracts data. Biometric verification matches face to document. Database checks verify against sanctions and watchlists. Risk scoring determines the decision.

Core Components
ComponentResponsibilityTechnology
Document VerificationScan and parse identity documentsOCR, ID parsing, ML
Biometric VerificationFace match, liveness detectionFace recognition, liveness ML
Database ChecksSanctions, PEP, watchlist screeningScreening APIs
Address VerificationVerify customer addressUtility bills, postal verification
Risk ScoringCalculate customer risk scoreML model, rules
Decision EngineApprove, reject, or request reviewDecision service
Detailed Technical Architecture

KYC technical architecture:

Document Verification

OCR extracts text from identity documents (passport, driver license, Aadhaar, PAN). ML validates document authenticity. Data parsed: name, DOB, document number, address.

Biometric Verification

Selfie video or photo. Face matching between selfie and document photo. Liveness detection prevents spoofing (photo of photo, mask, deepfake).

Database Checks

Screen against sanctions lists (OFAC, UN), PEP (Politically Exposed Persons), watchlists, adverse media. Continuous monitoring of customer status.

Address Verification

Verify customer address via utility bills, bank statements, postal verification, or geolocation.

Risk Scoring

Calculate risk score based on: customer profile, geography, transaction patterns, document verification confidence, database check results.

Enhanced Due Diligence

For high-risk customers: additional verification, source of funds, source of wealth, enhanced monitoring.

APIs and Integration Patterns

KYC API patterns:

Submit KYC

POST /kyc with customer data, documents, and biometric data.

KYC Status

GET /kyc/{id} for verification status (pending, verified, rejected).

Webhook

Async webhook when KYC verification completes.

POST/v1/kyc/verify

Submit KYC verification

Request

POST /v1/kyc/verify
Authorization: Bearer sk_live_xxx

{
  "customer": {
    "name": "John Doe",
    "dob": "1990-01-01",
    "nationality": "IN"
  },
  "documents": [
    { "type": "passport", "front": "file_url_1", "back": "file_url_2" }
  ],
  "biometric": {
    "selfie": "file_url_3",
    "liveness": true
  }
}

Response

{
  "kyc_id": "kyc_26JAnXxXx",
  "status": "pending",
  "checks": {
    "document_verification": "in_progress",
    "biometric_match": "in_progress",
    "sanctions_check": "in_progress"
  }
}
Regulatory Considerations

KYC/KYB regulations:

RegulationRequirements
AML/CFTCustomer due diligence, enhanced due diligence for high-risk
FATFInternational AML standards
RBI KYCIndia KYC requirements, Aadhaar eKYC, Video KYC
Bank Secrecy ActUS AML and KYC requirements
GDPRData protection for identity data
Vendor Landscape
Onfido

Identity verification with document and biometric.

Document verificationBiometricDatabase checks
Jumio

Identity verification and KYC.

DocumentBiometricWatchlist screening
Signzy

Indian KYC and verification APIs.

Aadhaar eKYCPANGSTBank verification
Trulioo

Global identity verification.

Identity verificationBusiness verificationWatchlist
Real Enterprise Case Studies

KYC implementations:

OnfidoUK · Fintech

Context: AI-powered identity verification.

Problem: Verify identity quickly and accurately for digital onboarding.

Architecture: Document verification with OCR and ML, biometric matching, liveness detection.

Technology: Python, TensorFlow, ML models

Outcomes: Enabling instant onboarding for millions of users globally.

Lessons: AI-powered verification enables fast, accurate KYC. Liveness detection prevents spoofing.

Common Architecture Mistakes
Storing Raw Card Data

Storing PAN or CVV in databases creates massive PCI DSS scope and security risk. Always use tokenization.

No Idempotency on Payment APIs

Missing idempotency keys on payment endpoints causes duplicate charges on retries. Every payment API must support idempotency.

Synchronous Processing of Async Operations

Treating inherently asynchronous payment operations as synchronous causes timeouts and poor UX. Use webhooks and async patterns.

No Webhook Retry Logic

Failing to retry failed webhook deliveries causes merchants to miss critical payment status updates. Implement exponential backoff retry.

No Reconciliation Automation

Manual reconciliation at scale is error-prone and slow. Automate reconciliation from day one.

Single-Rail Dependency

Depending on a single payment rail creates a single point of failure. Implement multi-rail architecture with failover.

No Fraud Monitoring

Launching without fraud monitoring leads to chargebacks and losses. Implement real-time fraud detection from day one.

Payment Database as Financial Ledger

Using the transaction database as the financial ledger leads to accuracy and audit issues. Maintain a separate double-entry ledger.

KPIs
KPIDescriptionTarget
Authorization RatePercentage of payment attempts that receive authorization> 95%
Payment Success RatePercentage of initiated payments that complete successfully> 97%
API Latency (p99)99th percentile API response time< 500ms
TPS CapacityTransactions per second the system can handleBased on peak demand
Fraud RateFraudulent transactions as percentage of total< 0.1%
Chargeback RateChargebacks as percentage of transactions< 0.75%
UptimeSystem availability99.99%
Reconciliation AccuracyPercentage of transactions successfully reconciled> 99.5%
Practical Project

Build a Digital KYC System

Objective: Design and implement a digital KYC verification system.

Scenario: Build a KYC system for a fintech that verifies customer identity using documents and biometrics.

Tasks:
  1. Design document verification with OCR
  2. Design biometric verification with liveness
  3. Design database checks (sanctions, PEP)
  4. Design risk scoring
  5. Design decision engine

Deliverables: KYC architecture, API design, verification flow.

Validation: Submit document. Verify OCR extraction. Test biometric match. Check sanctions. Verify decision.

Interview Questions

What is the difference between KYC and KYB?

KYC (Know Your Customer) verifies individual identity (name, DOB, address, ID document). KYB (Know Your Business) verifies business identity (registration, address, beneficial owners, directors). KYB is more complex as it involves business structure and ownership chains.

What is liveness detection?

Liveness detection verifies that the biometric sample (selfie) is from a live person, not a photo, video, or mask. Techniques: passive (analyzing skin texture, micro-movements), active (asking user to blink, turn head, smile).

What is Aadhaar eKYC?

Frequently Asked Questions (52)
Glossary
PSP

Payment Service Provider: entity that enables merchants to accept payments through multiple payment methods via a single integration.

PayFac

Payment Facilitator: entity that enables sub-merchants to accept payments under the PayFac master merchant account.

Acquirer

Bank or financial institution that processes card transactions on behalf of merchants.

Issuer

Bank or financial institution that issues payment cards to consumers.

Interchange

Fee paid between the acquiring bank and the issuing bank for card transactions, set by card networks.

MID

Merchant ID: unique identifier assigned to a merchant by the acquirer.

PAN

Primary Account Number: the 14-19 digit number on a payment card, considered sensitive cardholder data under PCI DSS.

Tokenization

Process of replacing sensitive card data with a non-sensitive token.

Authorization

Process of verifying that a payment account has sufficient funds and is valid for a transaction.

Capture

Process of finalizing a previously authorized transaction, triggering the transfer of funds.

Clearing

Process of exchanging transaction details between acquiring and issuing banks.

Settlement

Actual transfer of funds between banks to complete a payment transaction.

Chargeback

Transaction dispute initiated by a cardholder through their issuing bank.

MCC

Merchant Category Code: 4-digit code classifying the type of goods or services a merchant sells.

3DS

3-D Secure: authentication protocol for card-not-present transactions.

PCI DSS

Payment Card Industry Data Security Standard: security standard for organizations handling cardholder data.

HSM

Hardware Security Module: physical computing device that safeguards and manages digital keys.

Idempotency

Property of an API where making the same request multiple times produces the same result as making it once.

Webhook

HTTP callback triggered by an event, used in payments for asynchronous notifications.

UPI

Unified Payments Interface: India real-time payment system developed by NPCI.

NPCI

National Payments Corporation of India: umbrella organization for retail payment systems in India.

RBI

Reserve Bank of India: India central bank and regulatory authority for payment systems.

ISO 20022

International standard for electronic data interchange between financial institutions.

ACH

Automated Clearing House: US electronic payment network for batch-processed bank-to-bank transfers.

FedNow

US Federal Reserve instant payment service launched in 2023.

SEPA

Single Euro Payments Area: EU payment integration initiative.

RTP

Real-Time Payments: payment infrastructure enabling instant, irrevocable payments 24/7.

Ledger

Financial record-keeping system using double-entry accounting.

Reconciliation

Process of matching transaction records across different systems to ensure consistency.

Escrow

Financial arrangement where a third party holds funds until conditions are met.

BNPL

Buy Now Pay Later: short-term financing allowing consumers to pay in installments.

BaaS

Banking-as-a-Service: model where licensed banks provide banking infrastructure via APIs.

Open Banking

Practice of providing secure API access to bank account data and payment initiation.

Embedded Finance

Integration of financial services into non-financial platforms via APIs.

Stablecoin

Cryptocurrency designed to maintain stable value by pegging to a reference asset.

KYC

Know Your Customer: identity verification for individuals.

KYB

Know Your Business: business identity and ownership verification.

Liveness Detection

Verification that biometric sample is from a live person.

PEP

Politically Exposed Person: high-risk customer requiring EDD.

Implementation Checklist
  • Architecture designed and reviewed
  • API contracts defined with idempotency
  • Authentication and authorization implemented
  • PCI DSS scope assessed and minimized via tokenization
  • Error handling and retry logic designed
  • Webhook delivery and retry implemented
  • Security review completed (encryption, HSM, key management)
  • Regulatory requirements identified (RBI, PCI DSS, AML)
  • Data model defined (transactions, ledger, reconciliation)
  • Observability implemented (metrics, logs, traces, alerts)
  • Testing completed (unit, integration, load, chaos)
  • Disaster recovery designed and tested
  • Reconciliation process validated
  • Fraud detection deployed and tuned
  • Production readiness assessed and approved
Career & Enterprise Skills
Payment Architect

Designs end-to-end payment architecture including gateways, orchestration, rails, security, and compliance.

Fintech Architect

Designs comprehensive fintech platform architecture including payments, banking, ledgers, risk, and compliance.

API Architect

Designs API-first payment platforms including REST APIs, webhooks, SDKs, developer portals, and API governance.

Payment Engineer

Implements and operates payment infrastructure including gateway, routing, processing, reconciliation, and settlement.

Platform Engineer

Builds internal developer platforms for payment integration, providing self-service APIs, SDKs, and golden paths.

SRE Engineer

Applies software engineering to payment operations, managing SLI/SLO/error budgets and incident response.

Fraud Analyst

Monitors transaction patterns, investigates suspicious activity, tunes fraud rules, and manages chargeback disputes.

Fintech Product Manager

Defines payment product strategy, manages roadmap, balances user experience with compliance, and drives payment metrics.

Compliance Specialist

Ensures payment systems meet PCI DSS, RBI, AML, and other regulatory requirements.

Treasury Technology Specialist

Implements and operates treasury management systems including liquidity management, settlement, FX, and bank connectivity.

Future Outlook

2027: KYC and KYB will see increased AI integration with AI agents handling routine payment decisions, intelligent routing optimization, and predictive fraud prevention becoming standard capabilities.

2028: Autonomous payment systems will mature with self-healing infrastructure, AI-driven reconciliation, and cross-border real-time payments reducing settlement time from days to seconds.

2029: Programmable money and tokenized deposits will enable new payment models with conditional settlement, smart contract-based escrow, and machine-to-machine payments becoming practical.

2030: The convergence of AI, blockchain, and real-time payments will be complete. KYC and KYB will be managed through AI agents with humans governing policy, security, and business alignment. Payments will be invisible, instant, and intelligent.

Key Takeaways
  • KYC verifies individual identity; KYB verifies business identity and ownership.
  • Digital onboarding uses document scanning, biometric verification, and database checks.
  • Liveness detection prevents biometric spoofing.
  • Risk scoring determines verification level (standard vs enhanced due diligence).
  • Modern KYC APIs enable real-time verification in under 2 minutes.