Developer Deep Dive: Implementing ISO 18013-5 mDL Verification
Didit's documentation shows how to verify mobile driving licence credentials returned by Digital Credentials API wallets such as Google Wallet at $0.10 per completed wallet verification.

Contents
In this guide
Jump to the part you need.
If you are a backend developer who has to verify a mobile driving licence (mDL) that follows ISO 18013-5, this guide is for you. Didit's documentation shows how to verify mobile driving licence credentials returned by Digital Credentials API wallets such as Google Wallet, at a published $0.10 per completed wallet verification. Confirm that your credential and wallet meet ISO 18013-5 requirements before relying on this flow: your integration is a start, response and result flow, not a Bluetooth proximity reader you code yourself.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Item | Detail |
|---|---|
| What you integrate | Didit Digital ID wallet APIs, called from your backend |
| Endpoint family | /v3/id-verification/wallets/{wallet}/ to start, plus result, poll, response and cancel operations |
| Authentication | x-api-key header, kept on the server, never in a browser bundle or app |
| Published price | Google Wallet ID $0.10 per completed verification. Other published wallet rates in the catalog range from $0.15 to $2.75 |
| mDL coverage documented today | Google Wallet ID is available in the US, UK, Brazil, Singapore and Taiwan. The documented mDL example names US state issuers. |
| What Didit checks | Issuer signature against trusted issuer roots, each returned value against its signed digest, device signature over your origin and the request |
| When you pay | Once per verified verification. Cancelling a pending attempt is not charged |
Start free in the sandbox at business.didit.me, with no sales call. Sandbox testing is free and unlimited. For developers building with an AI assistant, connect Didit through the MCP server and drive the same APIs from the assistant.

What ISO 18013-5 asks of a verifier
ISO 18013-5 (ISO/IEC 18013-5:2021) is the standard that defines how a mobile driving licence is stored on a phone and presented to a reader. It covers three things a normal document scan does not: a credential signed by the issuing authority, a device signature that binds the response to your specific request, and selective disclosure, so the holder can release only the attributes you actually asked for.
For web and app developers the route we document is the Digital Credentials API: the page or app asks the wallet for a credential, the wallet shows its own approval screen, and the wallet returns an encrypted response that only the verifier can read. That is the route our documentation covers for mDL today, and it is why the check is asynchronous rather than a single blocking call.
For an integrator, the hard parts are cryptography and wallet handshake, not field mapping. You need to keep issuer trust roots current, verify a signature chain, and be sure the response you received was produced for your origin and your request. A wallet without a portrait also does not include a selfie comparison, so a credential check alone does not prove a live human is holding the phone.
How Didit verifies an mDL
We expose wallets as a dedicated API family, so you do not create or publish a workflow and you do not pass a workflow_id. Your backend starts the verification, Didit returns a verification reference and the action the person needs to take, and your interface guides them through the wallet's own authentication.
For a Digital Credentials wallet such as Google Wallet, the start response carries next_action.type = request_digital_credential. Your page calls the wallet through navigator.credentials.get, or your Android app reads the parsed credentialJson from Credential Manager, and then you post exactly what the wallet returned to the response endpoint. Didit decrypts it and checks the issuer's signature against its trusted issuer roots, every returned value against its signed digest, and the device signature over your origin and this request. The outcome is verified, billed once, or declined with an error code.
The result carries the assurance tier cryptographic: an identity provider authenticated the person and signed the attributes it returned. That tier claims exactly that and nothing more. If your policy needs liveness or a face comparison, add those steps separately, and route the person to a document check when the wallet cannot serve the attribute you need. Our platform runs identity, business and transaction checks on one API, and more than 4,000 active companies use Didit.
Read the Didit ID verification methods documentation for the three methods and their assurance tiers, and the pricing page for every published rate.
Prerequisites
- A Didit application API key with the rights your calls need. Read it in the Didit Console under Settings, then API and Webhooks.
- Server-side code that can hold the
x-api-keyand make outbound HTTPS calls. Never ship the key in a browser bundle or a mobile app. - A way to open a URL in the person's browser and to receive them back, for redirect wallets. Digital Credentials wallets need your own page instead.
- An HTTPS hostname you control for the
return_url, registered with Didit before the first start call if you use a redirect wallet. - For digital credentials, a browser or app that can reach the wallet, and a person who holds the credential in that wallet.
- Optional: a document fallback workflow configured in the Console for people whose wallet cannot return the attributes you need.
Step-by-step: implement the flow
- Read the wallet catalog. Call the wallet catalog endpoint first. It returns the current endpoints, required fields and availability for your application, so you never hardcode a start URL that may not be enabled in your environment. See List digital ID wallets.
- Register your return hostname (redirect wallets only). Send bare hostnames, without scheme, path or wildcard, up to 20 of them. Updating the list replaces it, so include every hostname you want to keep.
curl --request PATCH --url https://verification.didit.me/v3/webhook/ --header 'x-api-key: YOUR_API_KEY' --header 'Content-Type: application/json' --data '{"allowed_return_hosts": ["app.example.com"]}'
- Start the verification. Call the start endpoint of the wallet you picked, with a fresh
Idempotency-Keyper attempt. The example below is the documented shape, shown with the Finnish Trust Network wallet. For Google Wallet, use the start path the catalog returns and expect a digital credential next action instead of a redirect.
curl --request POST --url https://verification.didit.me/v3/id-verification/wallets/ftn/ --header 'x-api-key: YOUR_API_KEY' --header 'Idempotency-Key: your-unique-attempt-key' --header 'Content-Type: application/json' --data '{"country": "FIN", "return_url": "https://app.example.com/identity/complete", "vendor_data": "your-customer-reference"}'
- Hand the next action to the person. Save the returned
request_id. Whenwallet_verification.next_action.typeisredirect, send the browser towallet_verification.next_action.url. A successful start only means authentication has started. - Submit the wallet response. For a Digital Credentials wallet, send
{protocol, data}fromnavigator.credentials.get, or the parsedcredentialJsonfrom Android Credential Manager, toPOST /v3/id-verification/wallets/verifications/{request_id}/response/. Send it unaltered: it is encrypted to Didit and the response can be submitted once.
{
"response": {
"protocol": "openid4vp-v1-signed",
"data": {
"response": "<compact JWE returned by the wallet>"
}
}
}
- Read the result on your backend. Fetch the verification and branch on
wallet_verification.outcome. Only use the identity when the outcome isverifiedandsimulatedisfalsefor a real check.
curl --request GET --url https://verification.didit.me/v3/id-verification/wallets/verifications/REQUEST_ID/ --header 'x-api-key: YOUR_API_KEY'
- Handle completion notifications. Poll the phone approval with
POST /v3/id-verification/wallets/verifications/{request_id}/poll/only where the selected wallet supports polling, and configure completion webhooks per the webhook documentation so your backend reacts without waiting on a browser. - Set a cancellation path.
POST /v3/id-verification/wallets/verifications/{request_id}/cancel/declines a pending verification without charging for it, and returns a completed one unchanged.
Expected output
A verified Google Wallet mDL check returns the reference you saved, the wallet and issuing authority, the interaction type and the identity attributes the wallet released:
{
"request_id": "00000000-0000-4000-8000-000000000001",
"wallet_verification": {
"wallet": {
"id": "google_wallet",
"name": "Google Wallet",
"issuing_authority": "Google Wallet (ID pass) and US state issuers (mobile driving licence)"
},
"country": "USA",
"status": "Approved",
"outcome": "verified",
"interaction": "digital_credentials",
"simulated": false,
"next_action": null,
"identity": {
"full_name": "Alex Example"
}
}
}

Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
x-api-key | Request header | Application key that started the verification. The same key must read and act on the result |
Idempotency-Key | Request header | Distinct per new attempt, reused only when retrying the identical start request. Changing the body while reusing the key is a conflict |
country | Input | Wallet market, where the wallet requires it |
return_url | Input | HTTPS page the person returns to, on a registered host. Redirect wallets only |
vendor_data | Input | Your own reference, up to 2,000 UTF-8 bytes, returned with the result and the completion webhook |
metadata | Input | Optional JSON object echoed back with the result |
response.protocol, response.data | Input | The unaltered payload the wallet returned to your page or app |
request_id | Output | Identifies the standalone verification for every later operation |
wallet_verification.outcome | Output | pending, verified, cancelled, timeout or failed |
wallet_verification.error | Output | The error code behind a declined verification |
wallet_verification.simulated | Output | True for sandbox identities. Never treat a simulated result as a real check |
wallet_verification.identity | Output | The attributes the issuer signed and the wallet released |
next_action | Output | Present while the attempt is pending, null once terminal |
Failure cases and recovery
| Signal | Meaning | Recovery |
|---|---|---|
Outcome pending | Authentication is still in progress | Keep the UI waiting and read the result again, or wait for the completion webhook |
Outcome cancelled | The person or your application cancelled | Start a new verification with a new Idempotency-Key |
Outcome timeout | The authentication window expired | Offer a new attempt and say how long the person has |
Outcome failed | Authentication or identity validation failed | Read error, do not mark the person verified, and decide whether policy allows a document fallback |
409 with verification_in_progress | The person is completing the flow right now and cannot be cancelled | Retry after the seconds in the Retry-After header, then read the completed result |
409 with not_a_digital_credentials_wallet | You posted a wallet response to a verification that does not take one | Check next_action.type from the start response and use the matching route |
| Second response submit | The response was already decided | Read the returned verification instead of submitting again |
| Return host rejected | return_url is not on your registered host list | PATCH /v3/webhook/ with the full host list and retry the start |
simulated is true | Sandbox identity, not a real person | Treat the result as a test artefact only |
One more rule saves time in production: a wallet without a portrait returns no selfie comparison at all. If your risk model expects one, add liveness and face match deliberately rather than assuming them.
What is billed, and where review begins
The wallet check is the billable unit. Google Wallet ID costs $0.10 per completed verification, and the rest of the catalog has published wallet rates from $0.15 to $2.75, including methods marked coming soon. EUDI Wallet, Personalausweis Profile 2, iDIN and OneID sit at their own published rates. A coming-soon method can show a published rate but cannot be enabled in production. Cancelling a pending attempt declines it without charging, and a verified verification is billed once, which is why the second submit returns the decided result instead of opening a new charge. All prices are on didit.me/pricing and in the pricing documentation.
If you add a document fallback, that is a separate document check with its own price. Inside a workflow the full ID check costs $0.33 and combines ID document verification at $0.15, passive liveness at $0.10, face match at $0.05 and device and IP analysis at $0.03. A wallet check never silently turns into a document check and never adds a charge you did not configure.
Review is a boundary you should set before launch. The wallet response produces an automatic outcome with an error code, and the signature proves the issuer and the returned claims; it does not prove that every attribute you wanted is present, current, or enough for your compliance policy. Where a human decision is required, route the case into a workflow session and work it in the Didit Business Console, where a session can sit in In Review with a reviewer, a review clock and a recorded status override. No wallet outcome is quietly upgraded to verified by a person.

Worked cost example
Take 10,000 mDL verifications a month through Google Wallet ID at list price, with a document fallback configured for 2,000 people whose wallet cannot return the attributes you need. The fallback line assumes your configured fallback runs the full ID check at $0.33, not a wallet check plus an automatic upgrade.
- Wallet checks: 10,000 x $0.10 = $1,000.00
- Document fallbacks at the full ID check rate: 2,000 x $0.33 = $660.00
- Total at list price: $1,000.00 + $660.00 = $1,660.00 per month
On the Scale plan, every Didit price carries a 10% discount: 10,000 x $0.09 = $900.00 and 2,000 x $0.297 = $594.00, so the same month costs $900.00 + $594.00 = $1,494.00. The $299 monthly fee and its $350 of monthly credit are separate from this arithmetic and are read from the live price feed, not estimated here.
Sources
- Didit docs: Digital ID Wallet Verification APIs
- Didit docs: Submit a Digital Credentials Wallet Response
- Didit docs: List digital ID wallets
- Didit docs: Digital ID Wallet Verification API and Coverage
- Didit docs: ID verification methods and assurance tiers
- Didit docs: Create Session API
- Didit docs: Retrieve Session API
- Didit docs: Webhooks
- Didit docs: Pricing and billing
- Didit pricing page, read November 26, 2026
- Didit MCP server
- ISO/IEC 18013-5:2021, Personal identification, ISO-compliant driving licence, Part 5: Mobile driving licence application
Next step: open business.didit.me, create an application, and run a wallet verification in the sandbox with a simulated credential before you touch production. No sales call is needed to start, and the sandbox is free and unlimited.
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
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is ISO 18013-5 in simple terms?
ISO 18013-5 is the international standard for mobile driving licences. It defines how a licence is stored on a phone, how it is presented to a reader, how the issuing authority signs it, and how the holder can release only the attributes a verifier asked for. It is the reason an mDL can be checked without photographing a plastic card.
Does Didit read an ISO 18013-5 mDL over Bluetooth or NFC?
The documented route is the Digital Credentials API: your page or app asks the wallet, the person approves in the wallet, and the encrypted response comes back to your backend, where Didit verifies it. The documented route is the digital credential flow, so plan around that rather than a proximity reader you build yourself.
How much does Didit charge to verify an mDL?
Google Wallet ID, whose documented mDL example names US state issuers, costs $0.10 per completed wallet verification at list price. Other published wallet rates in the catalog run from $0.15 to $2.75 per completed verification, and a document fallback is a separate document check at $0.33 for a full ID check. Cancelling a pending attempt is not charged.
Which wallets can present an mDL that Didit verifies?
Google Wallet ID is available in the US, UK, Brazil, Singapore and Taiwan. The documented mDL example names US state issuers, and that is the one to design for today. The wallet catalog endpoint is the authority on what is enabled for your application, because availability is specific to your environment. A wallet marked coming soon cannot be enabled in production.
Do I need a workflow to verify a wallet credential?
No. The Digital ID wallet APIs are standalone: you call the wallet start endpoint with your API key and you do not create or publish a workflow or pass a workflow_id. Use a workflow session when you want Didit's hosted journey, workflow rules and a configured document fallback in one link.
Which outcome value means the person is verified?
Only verified, and only when simulated is false for a real identity check. The other terminal values are cancelled, timeout and failed, and pending means the person has not finished. A pending response can carry a next action; a terminal one never does.
What happens if I submit the same wallet response twice?
The response can be submitted once. A second submit returns the verification that was already decided rather than creating a new decision or a second charge. That makes a retry safe when your first request times out at the network layer.
What does a 409 verification_in_progress error mean?
It means the person is completing the verification at that moment and the attempt cannot be cancelled. The response carries a Retry-After header, and you should retry after that many seconds to read the completed result. For Smart-ID and Mobile-ID, a cancel that arrives while a poll is checking waits a few seconds, then declines or returns the verification as verified.
Can I cancel a pending verification and avoid the charge?
Yes. A cancel declines a pending verification without charging for it, and it returns a completed verification unchanged. If the person had already approved, you get the verified result and pay for that check, which is the correct outcome.
Is a signed wallet credential enough for my compliance policy?
Not on its own. The signature verifies the issuer and the attributes it returned, and the tier is called cryptographic for that reason. It does not guarantee that every attribute you need is present, current or sufficient, and a wallet without a portrait returns no selfie comparison. Add liveness, face match or a document step when your policy requires them.
Where do I keep the API key in a mobile app?
On your backend, never in the app or a browser bundle. Your backend starts the verification, opens or hands the next action to the interface, submits the wallet response, and reads the result. The same application key that started the verification is the one that must read and act on it.
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


