Skip to main content

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.

Database Outage Fallbacks for Identity Verification (2026)

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.

What Didit returns when a registry answers, does not match, or does not answer at all
SituationWhat the API returnsWhat you configureWhat the user sees
The source answers and the details matchmatch_type of full_match, with per-field matchesNothing extraVerified, moved on to the next step
The source answers and nothing matchesmatch_type of no_match and the DATABASE_VALIDATION_NO_MATCH warningon_no_match set to decline or fallback_to_documentDeclined, or asked for a document
Some fields match, others do notmatch_type of partial_match and the DATABASE_VALIDATION_PARTIAL_MATCH warningon_partial_match set to review or fallback_to_documentSent to review, or asked for a document
The source is down or times out inside a workflow sessionThe configured provider-error action runs, and the session carries the COULD_NOT_PERFORM_DATABASE_VALIDATION warningon_provider_error set to fallback_to_documentAsked for a document, and the session finishes
Every selected service fails on a standalone callHTTP 502 with a validation_errors[] array. The docs state that request is not billedYour own retry or fallbackWhatever your code decides
The request itself is wrongHTTP 400 naming the field, the service or the missing consentNothing, fix the requestNothing, 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.

Where a registry outage gets handled
RouteWho applies the fallbackUse it when
Workflow session with the provider-error action set to fallback_to_documentDidit, inside the sessionYour flow runs on Didit and you want the session to finish without your code branching on the error
Standalone Database Validation callYour codeYou already hold the identity data and want one server-to-server check
Application-owned document fallbackYour codeThe 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.

The non-document lookup step where the user types their national ID number and personal details
The lookup step: typing only, no document. When the source behind it fails, the workflow can send the same user to 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

What you need before you configure the fallback
RequirementWhat exactlyWhere
PlanFree, Growth or Scale for self-serve. Sandbox testing is free and unlimiteddidit.me/pricing
API keyAn x-api-key header value created in the Didit Business ConsoleAPI authentication
Key permissionsA 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 404API keys
WorkflowOne published workflow with an ID Verification nodeConfigure ID Verification methods
Country sourceThe 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 saveSame console page
ConsentServices flagged requires_consent=true need consent=true, or the call returns HTTP 400Database Validation

Step by step: the workflow fallback, no code

  1. Open the Didit Business Console, go to Workflows and select the workflow you want to change.
  2. Select the ID Verification node, then open the Countries tab.
  3. Pick the country and open Non-doc lookup. Set max_attempts for how many answered attempts the user gets before you treat it as a failure.
  4. 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.
  5. 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"
  1. Send the request as multipart/form-data with the universal identification_number field. Didit maps it to CPF, RUT, CURP, DNI and the rest by issuing_state.
  2. Read database_validation.match_type. It is full_match, partial_match or no_match, and validations[] tells you which service answered and which fields matched.
  3. 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.
  4. On HTTP 400, fix what the body names: an ineligible service for that issuing_state, a missing required field, or a missing consent flag.
  5. Read and retain request_id with 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.

Cover of the Didit academy video showing how to use Didit with MCP
The MCP walkthrough. The server is hosted by Didit and authenticated with OAuth.

Field and event mapping

What to read on the payload, and what it means when a source is unavailable
Field or eventWhere it appearsWhat it saysWhat you do
database_validation.match_typedatabase_validations[] on the decisionfull_match, partial_match or no_matchBranch on the two mismatch values
database_validation.validations[]Inside the same objectPer-service status, matched_fields and record_detailsSee exactly which service answered
validation_errors[]HTTP 502 body from the standalone APIOne entry per failed upstream serviceFall back to a document check or retry later
warnings[]Decision payloadCOULD_NOT_PERFORM_DATABASE_VALIDATION, DATABASE_VALIDATION_NO_MATCH, DATABASE_VALIDATION_PARTIAL_MATCHRoute by your policy, and alert on the first one
id_lookup.sourceSession payload, console and exportsThe exact source that was queriedKeep it as evidence of provenance
Assurance tierSession payloaddata_match before a fallback, documentary after onePass it to systems that price risk on it
session.status.updatedWebhookThe session changed statusFetch 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.

A session overview in the Didit Business Console showing the checks run and the warnings attached to the session
The session overview in the console. After a fallback, the method and the warnings tell you what actually happened.
Error cases you will hit, and the fix
SymptomCauseFix
HTTP 400 with field errorsService id not eligible for that issuing_state, a missing required field, or missing consent for a consent-flagged serviceRead the body and correct the request
HTTP 502 with validation_errors[]Every selected upstream service failedThe docs state that request is not billed. Retry later, or fall back to document capture
match_type of no_matchThe record is not in the registryTreat as synthetic identity per your policy, or fall back to document capture
match_type of partial_matchSome fields match and others do notRoute to review, or fall back
HTTP 429A rate limit or a quota was reachedWait for Retry-After, then retry
HTTP 402 or 403 with an insufficient credit messageThe balance cannot cover the callTop up, or turn on auto top-up
HTTP 403 with application_deletedThe application and its keys are goneDo 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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.