Database Outage Fallbacks for Identity Verification (2026)
When a government source fails, configure the provider-error action so the ID Verification step falls back to document capture and the session still finishes.

Contents
In this guide
Jump to the part you need.
When a national registry stops answering, you should not lose the session. Didit lets you decide what happens when a lookup source errors, and send the user to document capture instead. Database Validation has a variable per-service price. Read the exact current rate for the service you plan to call. Document capture is $0.15 per check. The caveat: a fallback proves less than a lookup, and the no-billing rule covers standalone calls only.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Situation | What the API returns | What you configure | What the user sees |
|---|---|---|---|
| The source answers and the details match | match_type of full_match, with per-field matches | Nothing extra | Verified, moved on to the next step |
| The source answers and nothing matches | match_type of no_match and the DATABASE_VALIDATION_NO_MATCH warning | on_no_match set to decline or fallback_to_document | Declined, or asked for a document |
| Some fields match, others do not | match_type of partial_match and the DATABASE_VALIDATION_PARTIAL_MATCH warning | on_partial_match set to review or fallback_to_document | Sent to review, or asked for a document |
| The source is down or times out inside a workflow session | The configured provider-error action runs, and the session carries the COULD_NOT_PERFORM_DATABASE_VALIDATION warning | on_provider_error set to fallback_to_document | Asked for a document, and the session finishes |
| Every selected service fails on a standalone call | HTTP 502 with a validation_errors[] array. The docs state that request is not billed | Your own retry or fallback | Whatever your code decides |
| The request itself is wrong | HTTP 400 naming the field, the service or the missing consent | Nothing, fix the request | Nothing, no check runs |
Start free in the sandbox at business.didit.me, no sales call. Developers who want an assistant to drive the setup can connect the Didit MCP server. The feature is documented on the Database Validation page, the switches are described in the console guide, and every plan and price is on the pricing page.
Which of the three routes handles the outage
There are three implementation routes for handling this failure. Didit handles the workflow-session route, while your application handles the standalone and application-owned routes. Pick the route before you write any code.
| Route | Who applies the fallback | Use it when |
|---|---|---|
Workflow session with the provider-error action set to fallback_to_document | Didit, inside the session | Your flow runs on Didit and you want the session to finish without your code branching on the error |
| Standalone Database Validation call | Your code | You already hold the identity data and want one server-to-server check |
| Application-owned document fallback | Your code | The lookup cannot answer and you want to choose how and when the document check runs |
What an outage looks like on each Didit route
A government source can fail in two places inside Didit, and they report differently. Knowing which one you are looking at decides what you build and what you can assume about the bill.
In a workflow session the lookup is one step among several. When the configured provider-error action is fallback_to_document, a source that does not answer sends the user to document capture and the session still finishes. The session carries the COULD_NOT_PERFORM_DATABASE_VALIDATION log warning, and the assurance tier on the result becomes documentary instead of data_match. Your application does nothing special; it reads the decision as usual.
Billing on that path is a separate question from the standalone rule. The no-billing statement in the docs is written for a standalone Database Validation request that returns HTTP 502 after every selected upstream service fails. It does not describe what a workflow fallback costs, so do not extend it. Model the fallback from the published unit prices below, and confirm the workflow case with us before you put it in a forecast.
On the standalone API, POST https://verification.didit.me/v3/database-validation/ answers HTTP 502 with a validation_errors[] array when every selected upstream service failed. The docs state that request is not billed, and the same log warning is written. Your code owns the fallback there, because there is no workflow around it: retry later, or run a document check in your own flow.
Provenance and assurance-tier records make that distinction concrete for a regulator. A lookup proves that the details matched a record the source holds. A document check proves a physical document was captured, read and checked for authenticity. Neither is better in the abstract, but they are different claims, and the session records which one produced the result. When document capture produces the result after a fallback, the session records documentary rather than data_match. It can move the total price too, because the workflow may still run its own liveness, face match and device steps after the document capture.

Check the source before you enable a country
Most countries resolve to a government register: the Department of Home Affairs in South Africa, RENAPER in Argentina, UIDAI in India, the CPR register in Denmark. Some do not. In Canada, France, Indonesia, the Netherlands, Norway, Singapore, the United Kingdom and the United States the authoritative record Didit can reach is a credit-bureau, financial-services, utility or residential-records file rather than a state register.
That difference changes what a match proves and which consent regime the query runs under, so the docs never generalise it. The source is named per country in the published catalog, and the session payload carries it on id_lookup.source. Read the catalog entry for a country before you enable a route there, and check that the source you name to your compliance team is the one the catalog states.
Prerequisites
| Requirement | What exactly | Where |
|---|---|---|
| Plan | Free, Growth or Scale for self-serve. Sandbox testing is free and unlimited | didit.me/pricing |
| API key | An x-api-key header value created in the Didit Business Console | API authentication |
| Key permissions | A key that reaches this endpoint, and the sessions it must read. A scoped key without access answers HTTP 403 and a key limited to other workflows answers HTTP 404 | API keys |
| Workflow | One published workflow with an ID Verification node | Configure ID Verification methods |
| Country source | The source must be available in the capability catalog. A source marked Coming soon can be seen but not switched on, and a workflow that enables it is rejected on save | Same console page |
| Consent | Services flagged requires_consent=true need consent=true, or the call returns HTTP 400 | Database Validation |
Step by step: the workflow fallback, no code
- Open the Didit Business Console, go to Workflows and select the workflow you want to change.
- Select the ID Verification node, then open the Countries tab.
- Pick the country and open Non-doc lookup. Set
max_attemptsfor how many answered attempts the user gets before you treat it as a failure. - Switch on Fall back to document capture when the provider errors. Decide the same for partial match and no match, by your own risk policy. The switches are only available when document capture is on for that country, because there is nowhere to fall back to otherwise.
- Save and publish the workflow. Start a new session with that workflow and read the completed session to confirm which method produced the result.
The same configuration through the Management API writes the methods key on the ID Verification node. The console and the API are two views of one object, so pick whichever you already use:
{
"feature": "OCR",
"config": {
"methods": {
"ZAF": {
"document": { "enabled": true },
"id_lookup": {
"enabled": true,
"max_attempts": 2,
"skip_liveness_and_face_match": true,
"on_partial_match": "fallback_to_document",
"on_no_match": "fallback_to_document",
"on_provider_error": "fallback_to_document"
}
}
}
}
}
The setting Offer document capture only as the fallback keeps document capture out of the first screen and shows it only when the lookup does not land. It sets document.fallback_only together with the matching fallback switches in one step, so the user sees the lookup first and the camera second.
Step by step: the standalone API with your own fallback
Use this route when you already hold the identity data and want one call, not a session. It is server to server, and you decide what happens when the source does not answer.
curl -X POST 'https://verification.didit.me/v3/database-validation/' \
-H "x-api-key: $DIDIT_API_KEY" \
-F "issuing_state=BRA" \
-F "identification_number=00000000191" \
-F "first_name=Jane" \
-F "last_name=Doe" \
-F "date_of_birth=1990-01-15" \
-F "vendor_data=user-1234"
- Send the request as
multipart/form-datawith the universalidentification_numberfield. Didit maps it to CPF, RUT, CURP, DNI and the rest byissuing_state. - Read
database_validation.match_type. It isfull_match,partial_matchorno_match, andvalidations[]tells you which service answered and which fields matched. - On HTTP 502 with
validation_errors[], every selected service failed. The docs state that request is not billed. Retry later, or move the user to a document check in your own flow. - On HTTP 400, fix what the body names: an ineligible service for that
issuing_state, a missing required field, or a missing consent flag. - Read and retain
request_idwith the response for your own correlation.
Argentina (arg_renaper) and Panama (pan_sib) take an extra selfie and gender for the biometric comparison against the registry photograph. Billing is per successful service hit, so a multi-service request can produce more than one usage event.
Running the setup from an AI assistant
Didit provides a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in, free on every plan. The setup instructions for each client are on the MCP setup page, and that page is the reference for what a given client can do. Where a client has no documented connector, use the REST call above instead.

Field and event mapping
| Field or event | Where it appears | What it says | What you do |
|---|---|---|---|
database_validation.match_type | database_validations[] on the decision | full_match, partial_match or no_match | Branch on the two mismatch values |
database_validation.validations[] | Inside the same object | Per-service status, matched_fields and record_details | See exactly which service answered |
validation_errors[] | HTTP 502 body from the standalone API | One entry per failed upstream service | Fall back to a document check or retry later |
warnings[] | Decision payload | COULD_NOT_PERFORM_DATABASE_VALIDATION, DATABASE_VALIDATION_NO_MATCH, DATABASE_VALIDATION_PARTIAL_MATCH | Route by your policy, and alert on the first one |
id_lookup.source | Session payload, console and exports | The exact source that was queried | Keep it as evidence of provenance |
| Assurance tier | Session payload | data_match before a fallback, documentary after one | Pass it to systems that price risk on it |
session.status.updated | Webhook | The session changed status | Fetch GET /v3/session/{sessionId}/decision/ |
Test it with sandbox data
Sandbox testing is free and unlimited on every plan. Create an application there, copy its key into DIDIT_API_KEY, and run the Brazil CPF example above unchanged.
Read what comes back rather than assuming it. Check the HTTP status, the match_type value, every entry in validations[] and anything in warnings[]. A sandbox identity is test data, so treat what one identifier returns as that identifier's result, not as a promise about the country. For the workflow route, publish a workflow with the provider-error action set to fallback_to_document, run one sandbox session in that country and open the session in the console. The session overview shows the method that produced the result and any warnings the session collected.

| Symptom | Cause | Fix |
|---|---|---|
| HTTP 400 with field errors | Service id not eligible for that issuing_state, a missing required field, or missing consent for a consent-flagged service | Read the body and correct the request |
HTTP 502 with validation_errors[] | Every selected upstream service failed | The docs state that request is not billed. Retry later, or fall back to document capture |
match_type of no_match | The record is not in the registry | Treat as synthetic identity per your policy, or fall back to document capture |
match_type of partial_match | Some fields match and others do not | Route to review, or fall back |
| HTTP 429 | A rate limit or a quota was reached | Wait for Retry-After, then retry |
| HTTP 402 or 403 with an insufficient credit message | The balance cannot cover the call | Top up, or turn on auto top-up |
HTTP 403 with application_deleted | The application and its keys are gone | Do not retry. Create a new application |
One honest limit: the docs do not publish a switch that forces a provider outage on demand, so the 502 branch is verified by reading the response shape and by exercising your own fallback code, not by simulating a registry failure. Test the branch you own, and leave the source's own availability to Didit.
Disconnect and roll back
- Revoke or delete the API key in the console when a service account ends. Scoped keys make this narrower, because one key can be limited to some workflows or statuses.
- Turn Non-doc lookup off for a country to stop offering it. Document capture stays on if it was on. A country with every method off is rejected on save with No method enabled, nobody can verify here.
- Remove the connector in your assistant client to end that route.
- Sessions already created keep their result, their warnings and their assurance tier, so historical decisions stay explainable after you disconnect.
What both ends cost
The lookup end is priced per service, not per country, so the number is variable. Database Validation has a variable per-service price. Read the exact current rate for the service you plan to call. The per-service pricing table lists the rate for each service, so read it before you quote a price to anyone.
The document end is simpler. Document capture is $0.15 per check. If the workflow also runs passive liveness at $0.10, face match 1:1 at $0.05 and device and IP analysis at $0.03, the session totals $0.33, which is the published full ID check. Price the fallback at $0.15 when the session stops at document capture, and at $0.33 only when those extra steps really run.
Worked example. Say 10,000 sessions a month and a hypothetical lookup rate of $0.10 per lookup for this example only. Database Validation has a variable per-service price. Read the exact current rate for the service you plan to call. A quiet month costs 10,000 x $0.10 = $1,000.00. A one-day outage sends 800 sessions to document capture at $0.15 each: 800 x $0.15 = $120.00. The other 9,200 lookups cost 9,200 x $0.10 = $920.00. Month total $920.00 + $120.00 = $1,040.00, which is $40.00 more than the quiet month. If that same workflow also runs passive liveness, face match and device and IP analysis after the document capture, those 800 sessions cost 800 x $0.33 = $264.00 instead, and the month totals $1,184.00, or $184.00 more than the quiet month.
On Scale, take 10% off every Didit price; on Growth, 4%. Plan credit is $10 a month on Free, $115 on Growth and $350 on Scale, and it does not roll over.
Sources
- Didit docs: Database Validation API
- Didit docs: Database Validation warnings
- Didit docs: per-service Database Validation pricing
- Didit docs: ID Verification methods and the methods config
- Didit docs: configure ID Verification methods in the console
- Didit docs: non-document lookup and the source per country
- Didit docs: API errors, status codes and retries
- Didit docs: Create Session API
- Didit docs: pricing and billing rules
- Didit pricing page and cost estimator (read November 26, 2026)
- Didit MCP server setup
Next step: create a free sandbox application at business.didit.me, publish one workflow with the provider-error action set to fallback_to_document, and run the Brazil example. No sales call.
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
What happens when a government database is down during identity verification?
On Didit the session can continue while the lookup does not. When the configured provider-error action is fallback_to_document on the ID Verification step, the user is moved to document capture and the session finishes with the assurance tier documentary. The session carries the COULD_NOT_PERFORM_DATABASE_VALIDATION warning, so you can see what happened.
Does a failed registry lookup get billed?
Only the standalone case has a published rule: when every selected upstream service fails, a standalone Database Validation call answers HTTP 502, that request is not billed, and a COULD_NOT_PERFORM_DATABASE_VALIDATION log warning is written. Billing is otherwise per successful service hit, so a multi-service request can produce more than one usage event. The docs do not extend the no-billing rule to workflow fallbacks.
How do I make Didit fall back to document capture automatically?
Open the workflow in the Didit Business Console, select the ID Verification node, open the Countries tab, pick the country and switch on Fall back to document capture when the provider errors. Document capture must be on for that country, otherwise the switch has nowhere to fall back to. Through the Management API the same setting is id_lookup.on_provider_error inside the methods key.
What is the difference between the provider-error, no-match and partial-match switches?
They are three separate switches on the same lookup block. on_provider_error fires when the source does not answer, on_no_match when the source answers and the record is not there, and on_partial_match when some fields match and others do not. Each switch has its own documented outcome options, and you set them independently per country. The provider-error example uses fallback_to_document; check the workflow configuration documentation for the allowed outcome for each failure mode.
Which HTTP status means the government registry did not answer?
HTTP 502 with a validation_errors[] array means every selected upstream service failed on a standalone call, and the docs state that the request is not billed. HTTP 503 means a service Didit depends on is temporarily unavailable or the query timed out, so read the code and try again. Both are listed on the Didit API errors page with the retry guidance.
What assurance tier does the user get after a fallback?
The tier follows the method that produced the result, not the method you hoped for. A registry lookup returns data_match, a document check returns documentary, and a digital ID wallet returns cryptographic. After a provider-error fallback the session records documentary, so anything downstream that scores risk on the tier should read the session rather than assume.
How many lookup attempts does a user get before the fallback runs?
That is max_attempts on the id_lookup block, set per country in the console. It counts answered attempts, so it controls how many corrections a user may make. The provider-error switch is separate from it and fires when the source itself does not respond.
Can I run a database validation from an AI assistant?
Didit provides a hosted MCP server at https://mcp.didit.me/mcp with OAuth sign-in, free on every plan. The documented setup for each client is on the MCP setup page. Where a client has no documented connector, use the REST call to the Database Validation endpoint instead.
How much does Database Validation cost?
Database Validation has a variable per-service price. Read the exact current rate for the service you plan to call. The rate depends on the exact service and not on the country, so read the per-service pricing table before quoting.
Can I keep accepting users while a source is down for days?
Yes, if document capture is enabled for that country and the provider-error action is set to fallback_to_document. Users finish on a document check and the session records the documentary tier. If you would rather not accept a weaker tier for that country, set the action to decline, and the session ends cleanly instead of hanging.
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


