No. 51Security8 min read2,166 words
KYC for fintech apps: identity verification done right
KYC for fintech apps, explained for founders: what KYC, CIP and AML require, where checks fit in onboarding, vendor integration and handling failed checks.
- Written by
- Lazy Devs
- Published
- Updated
- Sources
- Cited inline

Key takeaways · 05
The short version
- 01KYC (Know Your Customer) verifies that a customer is who they claim to be; AML (anti-money laundering) adds sanctions screening and ongoing monitoring. Software supports these programmes; your compliance team or partner bank defines them.
- 02For US bank accounts, the Customer Identification Program rule requires at minimum a customer's name, date of birth, address and an identification number before opening an account.
- 03Place verification at the moment of risk, typically before the first deposit or money movement, rather than gating every visitor at signup, and match the depth of checks to what the user is trying to do.
- 04Buy identity verification from a specialist vendor, collect documents in their hosted flow so raw ID images never touch your servers, and treat their signed webhook as the record of truth.
- 05Design retries, manual review and appeals as first-class states. A verification flow that can only pass or hard-fail strands real customers who fail automated checks for innocent reasons.
On this page · 12
KYC in a fintech app means verifying that each customer is who they claim to be before they can move money, by collecting identity information, checking it with a specialist vendor, screening against sanctions lists, and keeping a record that you did. You buy the verification itself; what you build is the orchestration around it: when checks are triggered, how results arrive, what users see when a check fails, and how your team reviews edge cases. Done well, it satisfies your compliance programme without strangling sign-ups.
That is the central tension. You are required to know who your customers are, and every step you add to prove it costs you some of them. The goal is not to pick friction or conversion. It is to spend friction where it is genuinely needed and remove it everywhere else. This post goes deeper than our general guide on how to build a fintech app, on one of the most conversion-critical parts of the product.
This is engineering guidance, not legal or compliance advice. Your obligations depend on your jurisdiction, licences and partners.
KYC, CIP, CDD and AML in plain terms
The acronyms overlap, so here is how they fit together, using US terminology with notes for elsewhere:
| Term | What it means | Where it comes from |
|---|---|---|
| KYC (Know Your Customer) | Verifying a customer's identity and keeping it current | The umbrella term used everywhere |
| CIP (Customer Identification Program) | The minimum identity data and verification procedures for opening an account | For banks, 31 CFR 1020.220: name, date of birth, address and an ID number |
| CDD (Customer Due Diligence) | Understanding the customer relationship and, for companies, identifying beneficial owners | FinCEN's beneficial ownership requirements for legal entity customers |
| Sanctions screening | Checking people and businesses against sanctions lists | In the US, OFAC's lists, available via its sanctions list service |
| AML (anti-money laundering) | The whole programme: KYC, screening, transaction monitoring and reporting suspicious activity | The Bank Secrecy Act in the US; the Money Laundering Regulations in the UK, which the FCA supervises |
For a useful technical vocabulary, NIST's identity proofing guidelines (SP 800-63A) define identity assurance levels, which vendors often map their products to. They are written for government systems, but the concepts (evidence strength, validation, verification) translate well.
KYC outside the US
If you launch in the UK or the EU, the concepts are the same but the rulebook and vocabulary change. Plan for the differences early, because they affect what data you collect and where you store it.
| Jurisdiction | Main rules | What changes for the product |
|---|---|---|
| United States | Bank Secrecy Act, the CIP and CDD rules, OFAC sanctions | Requirements usually arrive through your sponsor bank's programme |
| United Kingdom | The Money Laundering Regulations, supervised for most fintechs by the FCA | Risk-based customer due diligence, enhanced checks for higher-risk customers, UK sanctions lists |
| European Union | National laws implementing the AML directives today, moving to a single EU AML Regulation that applies from July 2027 | More harmonised due diligence rules across member states, plus GDPR for how identity data is processed |
Two practical consequences. First, sanctions screening must cover the lists that apply where you operate, not only OFAC. Second, identity data from European customers is personal data under GDPR, so your vendor's data location, retention settings and deletion process matter as much as its match rates. Build your status model and review queue so the rules per country are configuration, not code branches scattered through the app.
Who decides what you must verify
We will be blunt about this, because it matters: no agency, library or vendor "makes you compliant." Compliance is a legal posture your business holds, defined by your compliance officer, your counsel and, very often, your partner bank.
If you build on a sponsor bank or Banking-as-a-Service provider, they will usually hand you their KYC requirements as part of the programme agreement: what data to collect, which checks to run, which outcomes need manual review, and how long to keep records. Your job as the product team is to implement those requirements reliably, capture the evidence, and make the experience as smooth as the rules allow. Treat anyone who promises to "handle compliance" for you with deep suspicion.
Where verification fits in onboarding
The instinct is to verify everyone fully before they see anything. That is the path to an empty funnel. A better model escalates verification to match the risk of what the user is doing, within the rules your compliance team sets.
| Stage | User intent | Typical checks |
|---|---|---|
| Explore | Sign up, look around, try a demo | Email or phone confirmation only |
| Activate | Open an account, link a bank, receive funds | CIP data, database verification, sanctions screening |
| Higher-risk actions | Large transfers, new payees, higher limits | Document and selfie checks, step-up authentication |
| Ongoing | Continued use | Re-screening when lists change, refresh when details change, transaction monitoring |
Trigger the heavier check at the moment it is required, typically the first time someone tries to fund an account or move money, when their intent is clear and they are most motivated to push through. This is the same step-up principle that governs fintech authentication in our web application security checklist: the bar to log in is one height, the bar to move money is higher.
A few onboarding details make a large difference:
- Ask for data in the order people can answer it. Name and address first; the ID number after you have explained why.
- Explain the why in one sentence. "We're required by law to verify your identity before you can move money" reduces abandonment more than any visual polish.
- Prefill where you can. If a provider can verify from database sources first, many users never need to photograph a document.
- Let people pause and resume. Someone without their passport to hand should be able to come back later without starting over.
Business customers: KYB
If you serve businesses, you need KYB (Know Your Business) as well: verifying the company exists and is in good standing, and identifying the people behind it. Under the US Customer Due Diligence rule that means each individual owning 25 percent or more, plus one person with significant control, each of whom then goes through KYC.
KYB is slower and messier than consumer KYC. Company registries differ by state and country, ownership structures nest, and documents arrive as PDFs. Budget design time for a flow where one person can start the application, invite the other owners to verify themselves, and see what is outstanding.
Buy the verification, build the orchestration
This one is not close: buy identity verification, never build it. Specialist vendors spend their entire existence on document authenticity, liveness detection, watchlist data and an arms race against fraudsters. Their models see far more documents than yours ever will.
When choosing a vendor, compare:
- Coverage: the countries and document types your customers actually hold.
- Check types: database verification, document checks, selfie and liveness, sanctions and PEP screening, KYB.
- Hosted flow and SDKs: web, iOS and Android, with accessibility and localisation.
- Webhooks and APIs: signed events, retries, idempotent event IDs, and an API to fetch the current state.
- Review tooling: a case management console for your compliance team, or an API to build your own.
- Data handling: where data is stored, retention controls, and whether they will delete on request.
- Your partner's approval: many sponsor banks have an approved vendor list.
What you build is the orchestration, and it is most of the work:
// app/api/webhooks/kyc/route.ts
type KycStatus =
| "pending"
| "needs_resubmission"
| "in_review"
| "approved"
| "rejected";
export async function POST(req: Request) {
const rawBody = await req.text(); // signature checks need the raw body
let event;
try {
event = kyc.webhooks.verify(rawBody, req.headers); // throws if the signature is invalid
} catch {
return new Response("Invalid signature", { status: 400 });
}
await db.transaction(async (tx) => {
// Idempotent: providers retry, so the same event can arrive twice.
const isNew = await tx.processedEvents.insertIfAbsent(event.id);
if (!isNew) return;
// Out-of-order safe: only apply if this event is newer than what we have.
await tx.verifications.applyIfNewer(event.userId, event.status as KycStatus, event.occurredAt);
await tx.auditLog.write({ action: "kyc.status_changed", userId: event.userId, status: event.status });
});
return new Response(null, { status: 200 });
}The result arrives by webhook, never by trusting the browser. A user can fake what their client reports; they cannot fake the provider's signed callback. That makes this the same problem as payment events, which is why the discipline in webhooks done right (signature checks, idempotency, tolerating retries and out-of-order delivery) applies here exactly as it does to money.
Hold as little sensitive data as possible
Identity documents are among the most dangerous data you can hold. A passport scan, a face image or a national ID number is valuable to attackers and a serious liability if it leaks. The best way to handle it is to not handle it.
- Let the provider hold the raw documents. Their hosted flow collects the passport and selfie directly, so the files never land on your servers. You store the outcome and a reference ID.
- Store what your requirements say, no more. Under the CIP rule, banks keep identifying information for five years after an account closes, and your partner will tell you what it needs from you. "We kept everything just in case" is a liability, not a safety net.
- Encrypt, scope and log access to what you keep. ID numbers belong behind least-privilege access where every read is logged. If you ever must accept documents directly, follow the practices in handling file uploads safely.
Never strand a user on a failed check
This is where most teams lose customers they should have kept. Verification is not pass or fail; it has a messy middle. A blurry photo. A document the provider cannot read. A name that does not match because of marriage, transliteration or a missing middle name. A possible sanctions match that is almost always someone else with a similar name.
Design each of those as a first-class state:
| State | What the user sees | What happens behind the scenes |
|---|---|---|
| Needs resubmission | Exactly what went wrong ("glare on the photo") and a button to retry that step | Retry without restarting the whole flow; cap attempts to deter fraud |
| In review | "We're checking a few details. Most reviews finish within [your real timeframe]. We'll email you." | Case lands in a review queue with the vendor's evidence attached |
| More information needed | A specific request, such as proof of address | Secure upload through the vendor or a dedicated flow |
| Rejected | A clear message, a support contact, and an appeal route where permitted | Decision and reason logged; some reasons cannot be disclosed to the user, so write that copy with compliance |
| Approved | Straight back into what they were doing | Limits raised and features enabled; sanctions monitoring continues |
The rule underneath: a flow that can only succeed or hard-fail will strand the people in the middle, and there are always more of them than you expect. Building those states well is the difference between onboarding people complete and onboarding they abandon.
Verification does not end at onboarding
KYC is not a one-time event. Sanctions lists change, customers change their names and addresses, and risk changes with behaviour. Plan for:
- Ongoing sanctions screening when lists update, not just at signup.
- Re-verification triggers when someone changes legal name, address or phone, or when behaviour crosses thresholds your compliance team sets.
- Transaction monitoring that feeds alerts into the same review tooling.
- An audit trail of every check, decision and reviewer action, which you will need when a partner bank or examiner asks.
Monitoring alerts, review decisions and ledger activity should all line up, which is why we build verification and payment reconciliation on the same event-driven foundations.
What to measure
Track the funnel step by step so you can see exactly where people drop: started verification, submitted data, auto-approved, sent to review, resubmitted, approved, rejected, and abandoned. Add time-to-decision for manual reviews and the share of reviews that end in approval. If most reviewed cases end up approved, your automated rules are probably too strict and are costing you customers for little benefit. Those numbers give you and your compliance team a shared, factual basis for tuning.
Get onboarding right the first time
KYC is verifying who your customers are; AML is making sure you are not moving dirty money. Software supports those requirements; your compliance team and partners define them. Escalate checks to match risk, buy the provider, build the orchestration, let the signed webhook be the record of truth, hold the least sensitive data you can, and design the messy middle as carefully as the happy path. For the broader compliance picture, see our web app considerations for fintech.
We build these flows for fintech products, and we are often called in when conversion is bleeding at the verification step. If you want help getting identity verification right without strangling onboarding, tell us what you are building.
FAQ · 05 questions
Frequently asked questions
What is the difference between KYC and AML?
KYC is the process of verifying a customer's identity when they open an account and keeping that information current. AML is the broader programme to prevent money laundering and terrorist financing, which includes KYC, sanctions screening, transaction monitoring and suspicious activity reporting. KYC is one component of an AML programme.
What information is required for KYC in the US?
For bank accounts, the Customer Identification Program rule requires at minimum the customer's name, date of birth, address and an identification number, such as a Social Security number for US persons, and procedures to verify that identity. Your sponsor bank or partner may require more, such as document checks or selfie matching, depending on its risk assessment.
How long does KYC verification take?
Automated document and database checks often complete in seconds or minutes. Cases flagged for manual review, such as a near-match on a sanctions list or an unreadable document, can take hours or days depending on your team or provider. Design your product so users understand which situation they are in and what happens next.
Should a startup build its own KYC system?
No. Identity verification depends on document authenticity checks, liveness detection, sanctions and watchlist data, and fraud models trained on very large volumes, which specialist vendors maintain full time. Build the orchestration around a vendor, meaning the flow, the status handling, the review queue and the audit trail.
What is KYB?
KYB (Know Your Business) is the equivalent of KYC for business customers. It verifies the company itself and, in the US under the Customer Due Diligence rule, identifies its beneficial owners: each person owning 25 percent or more and one individual with significant control. Many B2B fintech products need KYB alongside KYC for the people involved.