Business Verification (KYB)
Didit KYB Decisions in Code: Approved, In Review, Declined
Branch on session_kind first, then on the exact status string. Warnings sit in warnings[] on registry_checks, document_verifications, key_people_checks and aml_screenings. The top-level status is the current state;

Contents
In this guide
Jump to the part you need.
This guide is for developers wiring Didit KYB decisions into an application. It covers branching on Approved, In Review and Declined, where the warning tags sit, and how to read a reviewer override. KYB starts at $2.00 per company on the public price list. The caveat: session statuses and feature statuses use different enums.
Developers who want an assistant to pull and explain decisions can connect Didit through the Didit MCP server, hosted at https://mcp.didit.me/mcp with OAuth sign-in. The MCP server line on the price list is free.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
The signals to handle, in one table
| Signal | Exact value or field | What your code should do |
|---|---|---|
| Approved | status is "Approved" | Onboard the business and store the decision. Read status_override if you need to know whether a person approved it. |
| In Review | status is "In Review" | Hold the business pending. The session awaits reviewer action, and the next change arrives as a status.updated webhook. |
| Declined | status is "Declined" | Flatten the warnings, log the reasons, optionally request a resubmission. |
| Waiting on people | status is "Awaiting User" | KYB only. Ping the child Key People KYC sessions, not the business. |
| Feature redo | feature status is "Resub Requested" | Re-deliver the hosted URL. The flow resumes at that step. |
| Warning tags | warnings[] on each feature array | Flatten them into your case record, keyed on risk and node_id. |
| How it was decided | decision_trace | Store decided_by, automatic_status, warning_counts and status_warnings. |
| Hand-changed | status_override | Keep overridden_at and automatic_status as audit context. The top-level status stays the current state your onboarding logic reads. |
Start free in the sandbox at business.didit.me, no sales call, and connect Didit to an AI assistant via the MCP server. Every unit price is on the pricing page.
What a Didit KYB decision contains
Every KYB session is a business session. session_kind comes back as "business" and the decision shares its top-level keys with a KYC session. The KYB feature arrays are registry_checks, which carries the company, officers, beneficial owners and ownership structure; document_verifications, where each item has a status, node_id, items, groups and required_groups; key_people_checks, which buckets people into registry and submitted parties with a ubo_kyc_summary rollup; and aml_screenings, which holds company hits and per-person hits.
Three fields decide how you handle the result. status is the session status and uses exact, case-sensitive strings. status_override is set when a reviewer changed the status by hand and carries overridden_at and automatic_status. decision_trace records how the status was reached: decided_by (manual, automatic or investigator), automatic_status, terminal_node_id, actor, warning_counts and status_warnings.
Warnings live on every feature object, not in one global list. Each entry carries feature, risk, additional_data, log_type (error, warning or information), short_description, long_description and node_id. The KYB warning features you will see most are KYB_REGISTRY, KYB_DOCUMENTS, KYB_KEY_PEOPLE and AML.
Prerequisites
| Requirement | What you need | Where it comes from |
|---|---|---|
| Plan | Any plan. Sandbox testing is free and unlimited. KYB is billed per company from $2.00. | didit.me/pricing |
| Client | An HTTPS client, or an MCP client that signs in with OAuth. | Your stack |
| API key | Sent in the x-api-key header. | Business Console |
| Permissions | read:sessions to read a decision, write:sessions to change one. | Key scopes |
| Workflow | A workflow whose workflow_type is "kyb". | Workflows in the Console |
| Webhook destination | webhook_version "v3" plus the signing secret for X-Signature-V2. | Webhook destinations API |
Permission scopes are the usual gotcha. A key without read:sessions returns 403 with the body "You do not have permission to perform this action.", which reads like a missing session if you never open the body.
Connect and handle decisions in seven steps
- Create the KYB session. Send the business through the same
/v3/session/endpoint you use for KYC, with a KYB workflow id.vendor_datais your own business id and binds the session to a Business entity.
The response gives youcurl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "$KYB_WORKFLOW_ID", "vendor_data": "biz-acme", "callback": "https://myapp.com/kyb/return", "metadata": {"plan": "growth", "country": "GBR"} }'session_id,urlandsession_token. Deliverurlto the business contact by email, in your own UI or in an iframe. A KYC workflow id still creates a session, but it runs KYC steps, so checkworkflow_typebefore you debug anything else. - Register the webhook destination. Subscribe with
POST /v3/webhook/destinations/andwebhook_versionset to "v3". There is no wildcard, so list every event family you want, starting withstatus.updatedanddata.updated. VerifyX-Signature-V2(HMAC-SHA256 over the sorted canonical JSON) with your destination secret, reject a timestamp older than 300 seconds inX-Timestamp, de-duplicate onevent_idand answer 2xx within 5 seconds. Business payloads addbusiness_session_idandsession_kindset to "business". Thedecisionobject is present only for Approved, Declined, In Review and Abandoned. - Fetch the decision. Read it from
GET https://verification.didit.me/v3/session/{session_id}/decision/with a key that holdsread:sessions. Didit resolves the id as a user session first and then a business session, so you do not need to know the kind in advance.const decision = await (await fetch( "https://verification.didit.me/v3/session/" + sessionId + "/decision/", { headers: { "x-api-key": process.env.DIDIT_API_KEY } } )).json(); - Branch on
session_kind, then onstatus. Always branch on the kind first, because a KYB workflow spawns child KYC sessions for key people and those arrive as user sessions.
"Awaiting User" is KYB only: the Key People step has submitted the list of parties and the parent waits until every required child KYC finishes.switch (decision.session_kind) { case "user": return handleUserDecision(decision); case "business": return handleBusinessDecision(decision); } switch (decision.status) { case "Approved": await onboardBusiness(decision); break; case "Declined": await logRejection(collectWarnings(decision), decision); break; case "In Review": await markPending(decision); break; case "Resubmitted": await notifyBusiness(decision); break; case "Awaiting User": await pingChildPersonForKyc(decision); break; } - Flatten the warning tags. Warnings are per feature and per
node_id, so walk the four KYB arrays and pullwarningsoff each check.
Key your case record onfunction collectWarnings(decision) { const arrays = [ decision.registry_checks, decision.document_verifications, decision.key_people_checks, decision.aml_screenings ]; const out = []; for (const list of arrays) { if (!Array.isArray(list)) continue; for (const check of list) { for (const w of check.warnings || []) { out.push({ node_id: w.node_id, feature: w.feature, risk: w.risk, log_type: w.log_type, short_description: w.short_description, additional_data: w.additional_data }); } } } return out; }riskplusnode_id, not on the description text. Descriptions are human labels;riskis the stable code. - Record
decision_traceandstatus_override. If a reviewer changed the outcome,status_overrideis non-null and the automatic result is preserved beside it.// status_override is non-null when a reviewer changed the status by hand const override = decision.status_override; // { overridden_at, automatic_status } const trace = decision.decision_trace; // { decided_by, actor, warning_counts, ... } - Close the loop with
PATCH /v3/session/{session_id}/update-status/. Only "Approved", "Declined" and "Resubmitted" are accepted. Resubmitted requiresnodes_to_resubmit, and the KYB-only nodesKYB_REGISTRYandKYB_KEY_PEOPLEcannot be resubmitted directly because the parent recomputes from the child KYCs.
The response is onlycurl -X PATCH https://verification.didit.me/v3/session/<SESSION_ID>/update-status/ \ -H "x-api-key: <API_KEY>" \ -H "Content-Type: application/json" \ -d '{"new_status": "Approved", "comment": "Cleared after compliance review."}'{ "session_id": "..." }, so fetch the refreshed decision. If you also send email, preview it first with the decision-email-preview or resubmission-preview endpoint, then confirm within 15 minutes usingemail_preview_token.
Field and event mapping
| Webhook field | Decision field | Meaning |
|---|---|---|
event.session_id | session_id | The same UUID. Fetch the decision with it. |
event.status | status | Session status, exact string. |
event.session_kind | session_kind | "business" for KYB. |
event.decision.registry_checks[] | registry_checks[] | Company, officers, owners, ownership structure, warnings. |
event.decision.document_verifications[] | document_verifications[] | Corporate document steps, status and warnings. |
event.decision.key_people_checks[] | key_people_checks[] | People buckets and ubo_kyc_summary. |
event.decision.aml_screenings[] | aml_screenings[] | Company and person AML hits. |
| not in the envelope | status_override | Set only when a reviewer changed the status. |
| not in the envelope | decision_trace | How the status was reached. |
event.sandbox_scenario | sandbox_scenario | Armed scenario slug, null on live sessions. |
Where to connect from: MCP server or API
Two routes reach the same decision data. What changes is where the call originates.
MCP server route
Didit runs a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in, and the MCP server line on the price list is free. Point a supported MCP client at that URL and sign in. Setup notes for every client are on the MCP page.
API recipe route
Use a server-side client with an x-api-key header. Three calls cover the whole loop: POST /v3/session/ to create, GET /v3/session/{session_id}/decision/ to read, PATCH /v3/session/{session_id}/update-status/ to decide. Add a webhook destination so you do not poll. This is the route we recommend for production, because the key stays on your backend and you control every state change.
If a platform you use has no documented connector for Didit, do not improvise one. Send the documented HTTPS call, or receive the webhook and read the decision from it.
Feature statuses: In Review and Resub Requested
KYB feature statuses are a narrower enum than the session status: "Not Finished", "Approved", "Declined", "In Review" and "Resub Requested". The last one does not exist at session level, where the equivalent value is "Resubmitted". If you store a single status column and write a feature string into it, your dashboards will drift.
Read a feature status as the state of that one step and the session status as the state of the whole business. Each KYB feature object also carries its own warnings array and node_id. When node_id is present, it identifies the workflow step that raised the warning; legacy responses may return null. When a document step needs a new upload, the feature status is "Resub Requested" and the rest of the session keeps its state.
Two enums, two columns. A step can sit at Resub Requested while the business session keeps its own status, so never write a feature string into the session status column.
Why there is no single composite risk score
The documented decision schema does not contain one blended KYB score. It contains a session status, per-feature statuses, per-feature warnings and decision_trace. A registry mismatch and a sanctions hit are not interchangeable, and averaging them into one number loses the reason you keep the case file. Build your review queue on warning_counts, on which feature emitted the warning, and on log_type. If you need a weighted internal score, compute it in your own system from the tags, so the weighting stays yours and stays auditable.
Individual checks can still carry their own numbers in additional_data, for example a score and its threshold behind a risk code. Read those per-check fields and do not look for a total.
Test with sandbox data
Sandbox testing is free and unlimited on every plan. The webhook envelope carries sandbox_scenario, the armed scenario slug on that session, and it is null on live sessions or an unarmed sandbox session. A documented example is decline_aml_hit.
- Expected success: a business session reaches "Approved", the decision returns
registry_checks,document_verifications,key_people_checksandaml_screeningsas arrays, andcollectWarningsreturns an empty array. - Expected review path: a session that needs a person stops at "In Review" and the decision carries the warnings for it. The session awaits reviewer action, and a later status update arrives as another
status.updatedwebhook. - Expected resubmission:
PATCHwithnew_status"Resubmitted" and one entry innodes_to_resubmitreturns 200, firesstatus.updatedand writes a review-trail entry.
| Symptom | Response | Fix |
|---|---|---|
| Session not found | 404, detail "Not found." | The id belongs to another application, or it is mistyped. Both session kinds were already checked. |
| Permission denied | 403 | Add read:sessions or write:sessions to the key. |
| Invalid key | 401 | Rotate the key and redeploy. |
| Bad target status | 400 | Only Approved, Declined and Resubmitted are accepted. |
| Status cannot change | 400 | The session must currently be Approved, Declined, In Review, Kyc Expired, Abandoned or Resubmitted. |
| Nothing to resubmit | 400 | Send nodes_to_resubmit. KYB_REGISTRY and KYB_KEY_PEOPLE are not valid entries. |
| Preview receipt rejected | 400 or 409 | A preview token is only valid with send_email true, and a 409 means the email or session changed since the preview. Re-preview. |
| Registry provider outage | 502, code kyb_registry_provider_unavailable | Not billed. In the hosted flow the business is offered manual company entry. |
| Rate limited | 429 | Read Retry-After and back off. |
Worked cost example
One business at the starting registry price, one corporate document step, company AML, and two UBOs who each take a person AML check and a linked full ID check:
- Registry retrieval: $2.00
- KYB Documents step: $0.20
- Company AML screening: $0.20
- Person AML, 2 at $0.20: $0.40
- Linked KYC for UBOs, 2 at $0.33: $0.66
Total per business: 2.00 + 0.20 + 0.20 + 0.40 + 0.66 = $3.46 at list price. Registry retrieval is priced by country and data tier, from $2.00, so a Shareholders or UBOs tier raises the first line. On Scale the 10% discount applies to Didit prices: 3.46 x 0.90 = $3.11. Those are the Didit side of the bill. Your side adds nothing for the MCP server, the workflow orchestrator, the SDKs or the sandbox, all of which are free.
Add $2.00 per company a year if you turn on company registry monitoring, and $0.07 per person a year for ongoing AML monitoring.
Ready to wire it: start free in the sandbox at business.didit.me, no sales call, and connect Didit to an AI assistant through the MCP server.
Sources
- Retrieve Session API
- Update Session Status API
- Webhooks: event types, envelope and HMAC signing
- Verification statuses and the session lifecycle
- KYB integration guide
- KYB Documents API
- Data models: warning object and report objects
- Didit pricing and pricing as JSON
- Didit MCP server
Next step: create a free sandbox organization at business.didit.me, run one KYB session through the Approved and In Review branches, and keep the two status enums separate in your data model. No sales call required.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
How do I handle an Approved Didit KYB decision in code?
Check session_kind equals "business", then check status equals "Approved", then onboard the business and store the full decision. Read status_override if you need to know whether the approval was automatic or a reviewer's decision, and keep decision_trace with the record. Approved sessions can later move to "Kyc Expired" when the verified document passes its expiry date, so listen for the next webhook instead of assuming the state is final.
What does In Review mean on a Didit KYB session?
It means automated checks raised warnings that need a person. The decision endpoint returns those warnings so your case record explains why the business is held. A compliance reviewer opens the session in the Console and approves, declines or requests a resubmission, and the change arrives as another status.updated webhook. Your code should hold the business pending rather than re-running the check.
What is the difference between the session status Resubmitted and the feature status Resub Requested?
"Resubmitted" is a session status: the whole session goes back to the person to redo specific steps. "Resub Requested" is a feature status: one KYB step, for example a document step, needs a new upload while the rest of the session keeps its state. The KYB feature enum is "Not Finished", "Approved", "Declined", "In Review" and "Resub Requested".
Where are Didit KYB warnings returned in the API?
In a warnings array on each feature object, filtered to that feature and node_id. For KYB that means registry_checks[], document_verifications[], key_people_checks[] and aml_screenings[]. Each warning carries feature, risk, log_type, short_description, long_description and additional_data. The webhook decision object uses the same shape.
Why does a Didit KYB decision have no single risk score?
The documented decision schema returns a session status, per-feature statuses, warning tags and decision_trace, not one blended score. Registry mismatches, document problems and AML hits are different risks with different owners, and averaging them hides which one fired. Use warning_counts and the warning feature to route the case, and compute any weighted score in your own system.
What happens when a Didit reviewer changes the session status?
The decision gets a status_override object with overridden_at and automatic_status, and decision_trace.decided_by records who decided. Read the top-level status as the current state your onboarding logic acts on, and keep the override fields with automatic_status beside it as audit context. A reviewer can move Approved, Declined, Resubmitted, Abandoned or Kyc Expired sessions to Approved, Declined or Resubmitted.
Which statuses can I set with the Didit update-status API?
Only "Approved", "Declined" and "Resubmitted", sent to PATCH /v3/session/{session_id}/update-status/ with a key holding write:sessions. Resubmitted requires nodes_to_resubmit, and the response contains only session_id, so fetch the decision again afterwards. The call fires status.updated and writes an entry in the Console review trail.
Can I resubmit a Didit KYB registry or Key People step directly?
No. The KYB-only nodes KYB_REGISTRY and KYB_KEY_PEOPLE cannot be resubmitted directly, because the parent recomputes from the child KYC sessions. To re-verify one person, resubmit that person's child KYC session and the parent kyb_key_people re-aggregates. A party whose link expired before they started can be reissued with the regenerate endpoint.
How do I test Didit KYB decisions without paying?
Use the sandbox, which is free and unlimited on every plan. Arm a scenario and the webhook envelope reports it in sandbox_scenario, for example decline_aml_hit, while live sessions return null there. Test the Approved, In Review and Declined branches plus a resubmission before you point anything at production.
How much does one KYB decision cost?
Registry retrieval starts at $2.00 per company and is priced by country and data tier, then KYB Documents is $0.20 per step, company AML $0.20, person AML $0.20 per UBO or officer, and each linked KYC $0.33. A worked example with one document step and two UBOs comes to $3.46. Registry monitoring, if enabled, is $2.00 per company a year.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


