Skip to main content

How to Normalize Names and Dates of Birth Before Database Verification

Normalize names to the spelling the registry holds and send date of birth as ISO 8601 before a Didit Database Validation call. Pricing varies by service; $0.05 per check is the lowest published example.

How to Normalize Names and Dates of Birth Before Database Verification

Contents

In this guide

Jump to the part you need.

This guide is for teams that hold an identity record and check it against a government registry. It covers the name and date-of-birth cleanup that decides whether the lookup matches, then the exact Didit Database Validation call. Pricing varies by service and country; $0.05 per check is the lowest published example. The caveat: normalization fixes formatting, not spelling. If the registry holds a different name, the record will not match, so read the per-field result, not only the overall status.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

What this page gives you
ItemAnswer
ResultA normalized identity record plus a registry match type: full_match, partial_match or no_match, with the fields that matched.
Install routeThree documented routes: the API recipe POST /v3/database-validation/, the MCP connector at mcp.didit.me, or a hosted session with the DATABASE_VALIDATION feature.
PriceDatabase Validation pricing varies by selected service and country. $0.05 per check is the lowest published example; specialist sources can reach $7.00.
PrerequisitesAny plan, a Business Console account, an API key, and prepaid credit for live calls. Sandbox testing is free.
Normalization scopeGiven and family names, and date_of_birth as an ISO date, decided before the call leaves your code.
Cost of both endsNormalization runs in your own code at no Didit charge. Billing depends on the service. Some no-match lookups and retries are billable, so check the current Database Validation pricing table.

Start free in the sandbox at business.didit.me, no sales call. For developers who want to run lookups from an AI assistant, connect Didit over MCP at didit.me/developers/mcp. Every price below is checked against didit.me/pricing and the Database Validation documentation.

Why a registry lookup fails on a record that looks correct

Database Validation sends your fields to the source that issued the record: a national civil registry, a tax authority, an electoral roll, a credit bureau or a biometric registry. The source compares what you send against what it holds. There is no fuzzy tuning knob on that comparison from the outside, so a record that is obviously correct to a human can fail as a machine one. Common causes include stripping diacritics, swapping name order, sending a local date format, and sending a placeholder where a real value belongs.

Record problems and what they do to a lookup
What happened upstreamWhat reaches the serviceWhat you see back
Accents strippedNunez where the register holds Núñezpartial_match on last_name
Encoding mangledJosé from a CSV importno_match
Name order swappedfamily name in first_namepartial_match
One of two family names sentGarcía instead of García Lópezpartial_match or no_match
Local date format15/01/1990rejected field, or no match on date_of_birth
Placeholder kept as data1900-01-01 from an empty formno_match, read as a synthetic identity
Wrong country codeBR instead of BRAHTTP 400, service id not eligible for that issuing_state

The fields Database Validation reads

The standalone endpoint takes multipart form fields. Use the universal identification_number: Didit maps it to CPF, RUT, CURP, DNI and the other national identifiers by issuing_state, so the country code has to be right before anything else is.

Request fields and their expected form
FieldFormatNote
issuing_stateISO 3166-1 alpha-3BRA, ARG, DOM. Not alpha-2.
identification_numberstring, as the country prints itMapped to the country identifier by issuing_state.
first_nametextGiven name or names.
last_nametextFamily name or names.
date_of_birthISO date, YYYY-MM-DDThe docs use 1990-01-15 in the example call.
servicesarray of service idsOmit to run the country default; pass bra_cpf or several ids to choose.
consentbooleanRequired when the catalog flags the service requires_consent=true, otherwise HTTP 400.
selfie and genderJPG, PNG or WebP up to 2 MBOnly for arg_renaper and pan_sib, which face-match against the registry photo.
vendor_datastringYour user id, echoed back for reconciliation.
A lookup form where the user types a national ID number, name and date of birth
The non-document lookup form. Every field on this screen is one you can also send server to server, normalized, without a document at all.

How to normalize names

Normalize Unicode first, then decide about diacritics

Convert every string to Unicode NFC before comparing or storing it. A decomposed e followed by a combining accent and a precomposed é look identical on screen and compare as different bytes, so half your cleanup work disappears into that. Once the encoding is stable, decide diacritics per source rather than globally. The machine-readable zone of a passport is uppercase ASCII; the visual zone of the same passport keeps its accents. Both describe the person, but they are not interchangeable. Where you cannot tell, consider sending the visual-zone spelling with the accents intact, and verify the exact source convention for that country before you rely on it. A partial_match on first_name tells you the form was wrong and you can correct it; a record that silently lost an accent looks correct and keeps failing.

Keep the order the document prints

Send given names in first_name and family names in last_name. Do not merge them into one field and do not reverse them to match your own display convention. Spanish and Portuguese records also carry two family names often enough that dropping the second one is a common cause of a partial match. If you collected the name from a document, take the split from the document's own fields rather than from a single free-text input.

Keep particles with the name they belong to

Particles such as de, da, dos, van, von and bin are part of the family name where the document puts them. Do not strip them to make sorting easier, and do not move them into a separate column that never reaches the API. Trim leading and trailing whitespace and collapse repeated spaces, then stop. Those two operations are safe; everything beyond them is a decision you should make per country.

Do not fill gaps with guesses

If the user gave an initial, send the initial. Do not expand it. If the form has no middle name, send an empty value rather than inventing one. If a name is longer than your database column, widen the column instead of truncating, because a truncated family name is likely to cause a partial match. Placeholder text such as N/A, unknown or a single dash should be treated as missing data and should stop the lookup rather than travel to the registry.

How to normalize dates of birth

Send date_of_birth as an ISO date, YYYY-MM-DD. The same format applies when you correct a stored field later through the Update Session Data API, which lists date_of_birth as an ISO date in its mutable fields.

  • Zero-pad month and day: 1990-01-05, never 1990-1-5.
  • Keep four digits in the year. Turning 90 into 1990 is a guess about a person's age, so ask instead of inferring.
  • Drop the time and the timezone. A timestamp of 1990-01-15T23:00:00-05:00 is 16 January in UTC, and picking the wrong side of midnight turns a full match into a partial one.
  • Reject calendar-impossible dates in your own validation (1990-02-31) before they reach the API.
  • Treat placeholder dates (00/00/1990, 1900-01-01) as missing values. Sending one produces no_match, which your policy will then read as a synthetic identity.
  • Never reorder day and month by locale. If a source system gives you 03/04/1990, resolve it against the source's own convention before you format it.

Prerequisites

What you need before the first call
RequirementDetail
PlanAny plan. Sandbox testing is free and unlimited on every plan. Free includes $10 of monthly credit for organizations that sign up with a work email, and phone codes are excluded from that credit.
AccountAn organization in the Business Console at business.didit.me.
CredentialAn API key from the console, sent as the x-api-key header.
Clientcurl or your server for the standalone call; the Web or Mobile SDK for a hosted session; an MCP client for the connector.
PermissionThe key alone is enough for the standalone lookup. Correcting a session KYC record with PATCH /v3/session/{session_id}/update-data/ needs the write:sessions privilege, from an API key or a user-auth token.
BillingPrepaid credit. The endpoint answers HTTP 403 with the not-enough-credits error when the balance cannot cover the call, before any processing.
ConsentEnd-user consent captured for any service the catalog flags requires_consent=true.

Install route: the API recipe, the MCP connector, or a hosted session

Route 1: the documented API recipe

Best when you already hold the record and want to control every field you send. One server-to-server call, no session, no front end. This is the route the steps below use, and it is the only one where you decide the exact spelling of first_name and last_name rather than having them read from a document.

Route 2: the MCP connector

Best when the person doing the check works inside an AI assistant. The hosted server is at https://mcp.didit.me/mcp with OAuth sign-in, and the MCP server is included free on every plan. Add it through your MCP client's custom connector dialog, or follow the setup notes for every client at didit.me/developers/mcp. The normalization rules do not change: the assistant still needs the accent-correct name and an ISO date of birth as inputs.

Cover of the Didit Academy lesson on connecting Didit to an AI assistant over MCP
The MCP lesson: connect the hosted Didit server to your MCP client and run checks without a custom front end.

Route 3: a hosted session with the DATABASE_VALIDATION feature

Best when the user is present and can correct a rejected field themselves. In session mode the fields are fed into the lookup from the steps in front of it, such as ID Verification, NFC, Liveness, Phone or Email Verification, Proof of Address, Document AI or a Questionnaire. An ID Verification step is not required. The trade-off is that the document read decides the spelling, so a misread accent becomes your normalization problem after the fact.

Step by step, from a raw record to a registry result

  1. Choose the country and service. Set issuing_state as ISO 3166-1 alpha-3 and read the rate for that exact service in the per-service pricing table. Omit services to run the country default only, or pass services=["bra_cpf"] to choose, and list several ids to run more than one service in a single request.

  2. Normalize the two name fields. Apply the rules above: NFC, trim, collapse spaces, keep particles, keep order, no guessing. Record which form you sent so that a partial match has a cause you can look up.

  3. Normalize date_of_birth to YYYY-MM-DD. Drop the time and timezone, refuse impossible dates, and stop the request when the value is a placeholder rather than a real date.

  4. Send the lookup. The docs example for a Brazil CPF is the template:

    Normalization checklist before you send:

    • issuing_state is ISO 3166-1 alpha-3.
    • Names are NFC, trimmed, spaces collapsed, particles kept and order preserved.
    • date_of_birth is YYYY-MM-DD, with no time or timezone.
    • No placeholder values for names or dates; stop the request instead.
    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"
  5. Read the answer, per field. The response carries the overall type and the detail underneath it:

    { "request_id": "...",
      "database_validation": {
        "match_type": "full_match",
        "validation_type": "...",
        "services_used": [...],
        "match_score": 0.0,
        "validations": [ { "service": "...", "status": "...", "matched_fields": [...], "record_details": {...} } ],
        "warnings": [...] } }

    matched_fields is the part that tells you whether normalization was the problem. match_type values are full_match, partial_match and no_match; warning codes include DATABASE_VALIDATION_NO_MATCH, DATABASE_VALIDATION_PARTIAL_MATCH and COULD_NOT_PERFORM_DATABASE_VALIDATION. The full catalogue is in the warnings reference and the outcome codes.

  6. Or run it inside a session. Add the DATABASE_VALIDATION feature to the workflow in the Business Console or with POST /v3/workflows/, optionally pinning specific services per country. Create the session with POST /v3/session/ and { workflow_id, vendor_data, callback }, open session.url for the user, then fetch the decision with GET /v3/session/{sessionId}/decision/ or subscribe to session.status.updated. The result is the database_validations[] array, one entry per lookup in the workflow.

  7. Correct a stored field when the read was wrong. If a document step misread an accent or a date, fix the session KYC record instead of asking the user to resubmit:

    curl -X PATCH "https://verification.didit.me/v3/session/<SESSION_ID>/update-data/" \
    -H "x-api-key: <API_KEY>" \
    -H "Content-Type: application/json" \
    -d '{
      "first_name": "John",
      "last_name": "Doe",
      "date_of_birth": "1990-01-01",
      "issuing_state": "ESP",
      "extra_fields": { "municipality": "Madrid" }
    }'

    The PATCH is partial: only the fields you send change, and sending null on an extra_fields key removes it. Two side effects matter for normalization. A change to KYC name, date of birth or nationality can re-trigger AML if AML was still running, and an address change re-runs geocoding asynchronously without ever failing the update. The full mutable field list is in the Update Session Data docs.

Session detail screen showing the identity fields read from an ID document
The identity fields a session stores after the document read. This is the session KYC record the update-data PATCH corrects when an accent or a date was read wrong.

Field and event mapping

Didit fields, events and where they land in your system
Didit field or eventWhere it appearsMap toNote
identification_numberRequest fieldnational_idUniversal field, resolved by issuing_state.
first_name, last_nameRequest field, and mutable on update-datagiven_name, family_nameStore the exact string you sent, plus the normalized form.
date_of_birthRequest field, and mutable on update-datadob as a DATE columnISO YYYY-MM-DD in both places.
issuing_stateRequest field, and mutable on update-datacountry_iso3ISO 3166-1 alpha-3.
vendor_dataRequest field, echoed in the decisionyour user idThe join key back to your record.
database_validation.match_typeStandalone response; database_validations[] in the decisionregistry_matchfull_match, partial_match, no_match.
validations[].matched_fieldsInside each service resulta per-field match tableThe diagnostic for normalization errors.
warnings[].riskEvery warning objectyour risk tableFilters on feature: DATABASE_VALIDATION; each warning also carries node_id.
session.status.updatedWebhooksession lifecycleFires as the session moves through its statuses.
data.updatedWebhookfield correction logFires after a successful PATCH, with session_kind of user or business.
id_lookup.sourceSession payloadprovenance recordNames the exact source queried for that country, for you and your auditors.

Test in the sandbox

Sandbox testing is free and unlimited, so build the normalization path against sandbox first and only move to live credit once a full match, a partial match and a no match all land where you expect. The docs example request (Brazil, identification_number=00000000191, first_name=Jane, last_name=Doe, date_of_birth=1990-01-15) is the template; replace the values with your own sandbox records and do not assume the example's outcome.

Test cases, expected results and fixes
CaseWhat you sendExpectedIf it goes wrong
Correct recordAccent-correct names, ISO date, correct alpha-3 countrymatch_type: full_matchpartial_match means one field's spelling differs; read matched_fields.
One field differsAccent stripped on the family namepartial_matchSend the visual-zone spelling and re-check; route the record to review rather than declining it.
Not in the registerFabricated or unknown identifierno_matchConfirm the record is real and normalized before treating it as a synthetic identity.
Wrong country codeissuing_state=BRHTTP 400, service not eligibleUse ISO alpha-3 and confirm the service exists for that country.
Missing consentService flagged requires_consent=true, no consentHTTP 400Capture consent and resend with consent=true.
Biometric service incompletearg_renaper or pan_sib without selfie and genderHTTP 400Send a JPG, PNG or WebP under 2 MB plus the gender field.
Upstream outageAny request where every selected service failsHTTP 502 with validation_errors[]Not billed, and a COULD_NOT_PERFORM_DATABASE_VALIDATION log is written. Retry later or fall back to OCR only.
No balanceLive call with an empty balanceHTTP 403, not enough creditsTop up; the call is refused before any processing.
Correcting a sessionupdate-data on a session with no session KYC recordHTTP 404Check the session id and the node_id of the KYC instance you meant.
Missing privilegeupdate-data with a key lacking write:sessionsHTTP 403Use a key with the privilege, or a user-auth token.
A session overview with its warnings listed in the Didit Business Console
A session overview with its warnings. The same risk codes that appear on the decision payload are readable here while you are testing.

Disconnect and revoke

Disconnecting is two actions, and doing only one leaves access open. Remove the connector in the MCP client where it was added. Then retire the API key you issued for the integration, because the connector and the key are separate credentials. Sessions already created stay in the Business Console with their decisions and audit records, so export whatever you need first.

What it costs on both ends

Normalization itself has no Didit charge. It runs in your own code, before the request, and the MCP server, the Workflow Orchestrator and the SDKs are all free on every plan. What you pay for is the lookup. Billing depends on the service: some no-match lookups and retries are billable, so check the current Database Validation pricing table before you size a budget.

Worked example, using published unit prices. A monthly file of 30,000 first-time lookups on a service priced at $0.05 per check, the lowest published Database Validation example. Your selected service and country rate may be higher.

  • 30,000 lookups x $0.05 = $1,500.00
  • Assume 8% of records arrive with a name or date the register will not match as typed: 30,000 x 0.08 = 2,400 corrected records
  • One more lookup each: 2,400 x $0.05 = $120.00
  • Monthly total: $1,500.00 + $120.00 = $1,620.00
  • Compare the same 30,000 people as full KYC at $0.33: 30,000 x $0.33 = $9,900.00
  • Difference: $9,900.00 minus $1,620.00 = $8,280.00

That gap is why the normalization step earns its place. Every 1,000 avoidable lookups at $0.05 costs $50.00, so the only real question is how many of your records would fail a first pass. Read the per-service and per-country rate before you size anything, because the price varies by selected service and country and a specialist source can sit far above the cheap end of the range. Some no-match lookups and retries are billable, and the docs pricing page lists them. On volume plans, Growth is $99 a month with 4% off every Didit price and Scale is $299 a month with 10% off. The documented per-call prices also live in the price book behind didit.me/pricing and the machine-readable pricing.json.

Sources

Next step: open the sandbox at business.didit.me, create an API key, and run the documented lookup against a handful of normalized sandbox records before you touch live credit. No sales call, and sandbox testing is free on every plan.

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

How do I normalize a name with accents before a database verification?

Convert the string to Unicode NFC, trim the ends and collapse repeated spaces, then keep the accents. Send the spelling the identity document's visual zone shows, but verify the exact source convention for that country before you rely on it. A partial_match on first_name or last_name in the Didit response tells you the form was wrong, so you can correct and retry instead of guessing up front.

What date format does Didit Database Validation expect for date of birth?

An ISO date, YYYY-MM-DD, such as 1990-01-15 in the documentation's example call. The Update Session Data API also lists date_of_birth as an ISO date when you correct a stored record. Drop the time and timezone, zero-pad the month and day, and never send a placeholder such as 1900-01-01 for a value you do not have.

Does Didit normalize names for me before the registry lookup?

Our documentation does not describe a normalizer sitting between the document read and the registry call, so the field you send is the field the source compares. Didit does map identification_number to the country's identifier (CPF, RUT, CURP, DNI and others) based on issuing_state. Treat name and date cleanup as your responsibility, or you inherit whatever OCR or a CSV import produced.

What does partial_match mean and what should I do with it?

partial_match means some fields matched the register and others did not, for example the date of birth matched and the family name did not. The per-service validations[] entry lists which fields matched, so you can see whether the cause is a spelling, an accent or a name order. The docs recommend routing a partial match to review, and in session mode the workflow's configured partial-match action decides between Approved, In Review and Declined.

What does no_match mean, and is it billed?

no_match means the record is not in the registry, which the docs say to treat as a synthetic identity under your own policy. Confirm two things first: that the record is real, and that you normalized it before sending. Billing depends on the service; some no-match lookups and retries are billable, so check the current Database Validation pricing table. A request where every selected service fails returns HTTP 502 and is not billed.

Can I fix a name or a date of birth after a session is finished?

Yes, with PATCH /v3/session/{session_id}/update-data/, which accepts first_name, last_name, date_of_birth, issuing_state and other KYC fields as a partial update. The session must be in Approved, Declined, In Review or Kyc Expired status and must carry a session KYC record. Changing a name, date of birth or nationality can re-trigger AML if that check is still running, and a successful patch fires a data.updated webhook.

Which countries use a government registry and which use something else?

Most are a government register, such as the Department of Home Affairs in South Africa, RENAPER in Argentina, UIDAI in India or the CPR register in Denmark. 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 changes what the match proves and what you can say to a regulator, so read the source column for the country before enabling it.

How much does Database Validation cost?

Pricing varies by the selected service and country, from $0.05 per check as the lowest published example up to $7.00 for the most expensive specialist sources; Finland's National ID is $2.10 as an example of a high-wholesale source. There are no monthly minimums or platform fees on the lookup. Billing depends on the service; some no-match lookups and retries are billable, so check the current Database Validation pricing table before you size a budget.

Can I run Didit Database Validation from Claude or ChatGPT?

Yes. Didit hosts an MCP server at https://mcp.didit.me/mcp with OAuth sign-in, and the server is included free on every plan. Add it through your MCP client's custom connector dialog. The inputs still have to be normalized before the assistant calls the lookup.

Why does issuing_state matter so much for the ID number?

identification_number is a universal field, and Didit resolves it to CPF, RUT, CURP, DNI or another national identifier using issuing_state. Send the country as ISO 3166-1 alpha-3, so BRA and not BR. A wrong or alpha-2 code returns HTTP 400 with the service not eligible for that issuing_state, and the lookup never runs.

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.