How to Test Bank Verification in Sandbox With the Didit Test Bank
Run the whole bank verification flow in our sandbox application: create an API key, POST /v3/bank/links/, pick the Didit Test Bank, then read test accounts, balances and transactions. Nothing is charged in sandbox.

Contents
In this guide
Jump to the part you need.
This guide is for developers proving a bank verification integration before a real bank is in the loop. In our sandbox application you create an API key, make a Bank Link, connect the Didit Test Bank and read test accounts, balances and transactions. Nothing is charged in sandbox. Ongoing access with real banks is not open yet for live applications and opens country by country, so check the coverage page.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
| Piece | Where it lives | What to know |
|---|---|---|
| Sandbox application | Our Business Console, environment switcher set to Sandbox | API keys belong to one application and one environment, so a sandbox key never creates a billed check. |
| API key | Our Business Console, API keys | Full access works. A key with custom access needs Bank data: Read for the reads, Write for the calls that create, change or delete something. |
| Bank Link | POST /v3/bank/links/, then the returned url | We host four Bank Link screens: consent, bank picker, account selection and confirmation. The sign-in happens on the bank's own page. The url and client_token come back once, at creation. |
| Test bank | The bank picker inside the link | A sandbox application lists the Didit Test Bank; the sandbox page lists the test customers. |
| Return to your site | redirect_url on the link | In a sandbox application only a localhost address works today. |
| Result | bank.* webhooks and GET /v3/bank/links/{id}/ | Read the link yourself on the server. Never trust a link id a browser sends you. |
| Cost | Sandbox | Nothing is charged in sandbox. In live, we bill one-time access per completed read; the documented ongoing model bills per active connection per month. |
Start free in the sandbox at business.didit.me, no sales call needed. For developers, connect our hosted MCP server to an AI assistant using OAuth at didit.me/developers/mcp.
Prerequisites
| Requirement | Detail |
|---|---|
| Plan | Any plan, including Free. Sandbox is free on every plan, and a sandbox application has the features of every plan on its own screens. |
| Client | A browser for the hosted screens, and a server or terminal for the API calls. The API key stays on your server: it never reaches a browser or an app. |
| Permissions | A full-access key, or a custom key whose scopes name Bank data. Write is needed for the calls that create, change or delete something. The primary secret of the application and any key created without scopes also read Bank data. |
| Optional inputs | A three-letter country for the person's bank, and a localhost redirect_url if you want the browser to come back to your machine. |
The seven steps, end to end
-
Create the sandbox API key. Open the Business Console, pick your sandbox application in the application switcher and go to API keys. Create a named key. Full access works. For a key with custom access, add Bank data with Read for the reads and Write for the calls that create, change or delete something. Copy the key and export it on your server:
export DIDIT_API_KEY="your-sandbox-key" -
Create a Bank Link. A link is one run of the screens where a person connects a bank. This request asks for ongoing access to a Spanish bank, three data types and 90 days of history:
curl -X POST https://verification.didit.me/v3/bank/links/ -H "x-api-key: $DIDIT_API_KEY" -H "content-type: application/json" -d '{"access": "ongoing", "country": "ESP", "data": ["accounts", "balances", "transactions"], "history_days": 90, "vendor_data": "client-7731"}'accesstakesongoingorone_time, andone_timeis the default: the connection ends itself when its read completes and the data stays readable untilconsent.retain_until.countryis optional; send it when you know it so the person sees only that country's banks.datanames what the person will share,history_dayssets how far back transactions go, andvendor_datais your own reference for the link.{"id": "0b9c4f1e-6a2d-4e8b-9f31-7c5d2e1a8b40", "mode": "connect", "access": "ongoing", "status": "created", "url": "https://verify.didit.me/bank/link/...", "expires_at": "2026-11-22T13:00:00Z", "connection_id": null}The response above is shortened to the fields that matter, and its
expires_atis illustrative. Replace the sample link id in the read below with the id from your own POST response. Keep the linkidwith your user. Theurland theclient_tokenare returned once, when the link is created, and theurlstops working atexpires_at(60 minutes by default, from 5 minutes to 24 hours withexpires_in). -
Open the link and connect the Didit Test Bank. Open the
urlin a browser, or send it by email or chat. We host four Bank Link screens in this walkthrough: consent (who reads the data, what is shared, for how long), the bank picker where the Didit Test Bank appears, the account selection where every eligible account is preselected and at least one must stay ticked, and the confirmation that the data was shared. After choosing Didit Test Bank and before selecting accounts, the person signs in on the test bank's page with a customer from the sandbox customer list. Choose a documented customer whose expected accounts match the test you want to run. The sign-in happens on the bank's own page, never inside our screens.Open the
urlexactly as it is. Do not proxy or re-host the page on your own domain: it works at its own address only, so a copy elsewhere cannot finish. The bank's own sign-in page cannot run inside a frame, so the link sends the person to the bank and brings them back, and the state of the link lives on our servers, which means closing a tab never loses a consent the person already gave.
Our hosted screens follow this pattern. In Bank Link we host consent, bank picker, account selection and the shared-data confirmation; the sign-in happens on the test bank's page. -
Receive the webhooks and confirm on your server. Subscribe a destination to the
bank.*events in the console, the same way as any webhook. When the person finishes,bank.link.completedarrives with thelink_idand theconnection_id, thenbank.connection.createdonce the first sync has stored the accounts. Read the link yourself before you act on it. The link id below is the sample from the create response; replace it with the id from your own POST response.curl https://verification.didit.me/v3/bank/links/0b9c4f1e-6a2d-4e8b-9f31-7c5d2e1a8b40/ -H "x-api-key: $DIDIT_API_KEY"After a completion event, read the link using the ID you stored. Confirm
status: completedand take theconnection_idfrom that response. For a final failure, inspecterror.code. -
Read the test data. For this ongoing test, wait for
bank.connection.createdor confirm that the connection isactivebefore reading accounts: apendingconnection has no readable data yet. With thatconnection_id, list accounts, replacingCONNECTION_IDwith the value from your completed link response:curl https://verification.didit.me/v3/bank/connections/CONNECTION_ID/accounts/ -H "x-api-key: $DIDIT_API_KEY"Take an
account_idfrom that response and use it for balances and transactions:curl https://verification.didit.me/v3/bank/accounts/ACCOUNT_ID/balances/ -H "x-api-key: $DIDIT_API_KEY" curl https://verification.didit.me/v3/bank/accounts/ACCOUNT_ID/transactions/ -H "x-api-key: $DIDIT_API_KEY"The connection id lists accounts and opens the change feed at
GET /v3/bank/connections/{id}/transactions/sync/with its durable cursor. Balance and date-range transaction reads use the account id. Reads never bill. Lists takelimit(default 100, maximum 500) and continue withcursor; the date-range transaction read continues withpage_token. The full endpoint list is in the Bank Data API. -
Exercise the failure paths. Send a
countrythe product does not serve and expect400 country_not_available. Refresh or renew a one-time connection and expect409 one_time_connection. If the connection still has more than 30 days of consent left, renew answers409 renewal_not_needed; afterconsent.renewable_untilit answers409 renewal_window_expired. Run each only when the connection's consent dates make it reachable. Cancel a link withPOST /v3/bank/links/{id}/cancel/and let another one expire, so your handler seesbank.link.cancelledandbank.link.expiredas well as the success case. Branch on thecodefield of every error, not on the HTTP status alone. -
Disconnect and delete. Stop access with
POST /v3/bank/connections/{id}/revoke/, which ends the consent and leaves the data readable untilconsent.retain_until. Remove everything withDELETE /v3/bank/connections/{id}/, after which the connection readsdeletedand no data is readable. To stop a person who never finished, cancel the link instead. Test both paths in sandbox before you ship.
Field and event mapping
| Field or event | Where it appears | What it means |
|---|---|---|
id | Link | The link id. Store it next to your user and read the link with it. |
url, client_token | Link response | Returned once at creation. The url is the hosted page; open it as it is. |
expires_at | Link | When the url stops working. Create a new link after that. |
status on the link | Link | created while waiting for the person, then completed or a final failure. |
connection_id | Link | null until the person finishes. The connection id lists accounts and opens the change feed. Balance and transaction reads use an account id from that list. |
account_id | Accounts response | Used in balance and transaction reads for that account. |
bank.link.completed | Webhook | The person finished the hosted flow. Confirm with a link read. |
bank.connection.created | Webhook | The first sync stored the accounts. |
bank.link.failed, .cancelled, .expired | Webhook | Terminal states of the link, each with its own handler. |
connection.status | Connection | pending, active, renewal_required, paused, revoked, deleted or failed. |
status_reason | Connection | For example collection_complete when a one-time read ended itself, or first_sync_failed. |
consent.expires_at, renew_by, renewable_until, ended_by | Connection | The real consent dates the bank set, and who ended access. |
bank.connection.consent_expiring | Webhook | Sent 14, 7 and 1 day before the consent ends. |
bank.connection.revoked | Webhook | The final signal when access ended, including an unpaid connection. |
Idempotency-Key | Every write | Every Bank Data API write accepts this header. |
The account check is the one operation outside this scope model: POST /v3/bank/account-check/ needs an API key with write access to sessions, or full access.
Test data: the Didit Test Bank customers
A sandbox application lists one bank, the Didit Test Bank, under the country card of the link. After the picker the person signs in on the test bank's page with one of the test customers. The sandbox customer list is the source for those customers and for what each one gives you, and it is kept current there rather than copied into this guide. Pick one customer per test case so a shared account list, a balance and a transaction history arrive exactly as you expect, To check separation, run a separate Bank Link for each test user. Read each stored link on your server to get its connection_id, then list that connection's accounts. Verify that your application shows each test user only the accounts from their own connection.
This Bank Link walkthrough uses the Didit Test Bank and its documented test customers. You can complete it without real bank credentials or personal data. Sandbox runs are free. A sandbox application also cannot add a custom domain, so the hosted pages always run on our default domain. We don't charge for Bank Link tests with the Didit Test Bank. The sandbox is free on every plan.
Expected success
The request above creates ongoing access, so this is the success path to check first.
- With the request above, the browser finishes on our result page. If you created the link with an accepted
redirect_url, the browser returns there with the link status. - After a completion event, read the link using the ID you stored. Confirm
status: completedand take theconnection_idfrom that response. For a final failure, inspecterror.code. - Shortly after,
bank.connection.createdarrives and the connection readsactivefor ongoing access. The confirmation screen shows until when access lasts. GET /v3/bank/connections/{id}/accounts/returns the accounts the person ticked.
For a one-time variant, change only access to one_time in the same POST. The connection then reads revoked with status_reason: collection_complete and consent.ended_by: system, and sync.next_sync_at is null. The data stays readable until consent.retain_until. The one-time confirmation says bank access has ended, while the ongoing confirmation shows until when access lasts.
Error cases and fixes
| Symptom | Why | Fix |
|---|---|---|
400 country_not_available | The country is not served, or no bank is offered there. | Send a served country or omit country so the person sees every country you can serve. |
409 one_time_connection | A refresh or renewal was sent for a one-time connection, which ended when its read completed. | Create a new link for the person to read the bank again. |
409 renewal_not_needed | If more than 30 days of consent are left. | Nothing to do yet; renew closer to consent.expires_at. |
409 renewal_window_expired | If the moment in consent.renewable_until has passed. | Create a new link; the old connection cannot be renewed. |
Connection failed, status_reason: first_sync_failed | The first read never started, or ran and failed with no retry left. | A failed connection cannot be resumed: create a new link. |
| The hosted page will not open or finish | The url was proxied or re-hosted on your own domain. | Open the url exactly as it comes back, or embed the flow with the Bank Link SDK after adding your site to Allowed origins. |
redirect_url rejected when creating the link | In a sandbox application only a localhost address works today. | Use a localhost address in sandbox, and test your production address in a live application. |
| Reads refused | The key does not name Bank data and is not full access. | Use a full-access key, or add Bank data with Read (and Write where the call changes something). |
What a sandbox run costs, and what the live side costs
In live applications, we bill one-time access per completed read. The documented ongoing model bills per active connection per month. You can test ongoing access in a sandbox application with the Didit Test Bank. Ongoing access with real banks is unavailable to live applications. Reads never bill. The unit prices for both access types are on the bank verification pricing page, and live list prices sit on didit.me/pricing. What is open today, country by country, is on the coverage page and the Bank Verification product page.
Worked example. Suppose you complete 100 one-time Bank Link tests and 100 ongoing Bank Link tests with the Didit Test Bank. At $0.00 per sandbox test, (100 + 100) × $0.00 = $0.00.

Connecting an AI assistant
You can connect an AI assistant to our hosted MCP server using OAuth. To run this bank test, use the documented Bank Data API calls above.

Sources
- Didit docs: Bank Data Quickstart, connect a test bank and read transactions
- Didit docs: Bank verification sandbox page with the test customers
- Didit docs: Bank Link, the hosted bank connection flow
- Didit docs: Hosted Bank Link
- Didit docs: Return to your site
- Didit docs: Bank connections, consent and renewal
- Didit docs: Bank Data API reference
- Didit docs: Bank account check
- Didit docs: Bank verification coverage
- Didit docs: Bank verification pricing
- Didit docs: Sandbox testing
- Didit docs: Applications, live and sandbox
- Didit docs: API keys
- Didit docs: Webhooks
- Didit Bank Verification product page
- Didit pricing page and pricing.json, read November 26, 2026
- Didit MCP server
- Didit documentation index
Start in the sandbox: create your account at business.didit.me, open the sandbox application, create a key, open your first Bank Link and select Didit Test Bank. There is no sales call and nothing is charged in sandbox, so you can run the whole flow today and switch to live one-time reads when your country is on the coverage page.
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
Do I need a real bank account to test bank verification in Didit?
No. A sandbox application lists the Didit Test Bank, and the person connects it with one of the test customers documented on the sandbox page. The whole flow runs, including consent screens, account selection, webhooks and reads, with no real bank and no real person's data. Nothing is charged in sandbox.
What is the Didit Test Bank?
It is the bank that appears in the picker of a sandbox application in place of real banks. You sign in with a test customer, choose which accounts to share, and the API returns accounts, balances and transactions you can build against. Ongoing access with real banks is not open yet for live applications, which is why the Test Bank is where that path gets tested.
How do I get a sandbox API key for bank data?
Open the Business Console, select your sandbox application in the application switcher and go to API keys. Create a named key: full access works, and a key with custom access needs the Bank data scope with Read for reads and Write for the calls that create, change or delete something. Then export it on your server as DIDIT_API_KEY.
Which endpoint creates a bank link?
POST https://verification.didit.me/v3/bank/links/ with your API key in the x-api-key header. Send access, optionally country, data, history_days and vendor_data. The response carries the link id, the hosted url and expires_at.
Can I use http://localhost as redirect_url in a sandbox application?
Yes, and today it is the only kind of address that works: redirect_url is checked when the link is created, and in a sandbox application only a localhost address is accepted. Production addresses are checked in a live application. Without a redirect_url the person finishes on our result page and you learn the result from the webhook or a link read.
How do I know the bank read succeeded on my server?
Subscribe to the bank.* events and wait for bank.link.completed, which carries the link_id and the connection_id, followed by bank.connection.created when the first sync has stored the accounts. Then call GET /v3/bank/links/{id}/ with the link id you stored for that user and confirm status: completed. Never trust a link id that a browser sends you.
Is anything charged while I test in sandbox?
We don't charge for Bank Link tests with the Didit Test Bank. The sandbox is free on every plan. Sandbox keys never create billed checks.
Can I test ongoing access with a real bank today?
Not with a live application. Ongoing access with real banks is not open yet for live applications and opens country by country; it is available for sandbox applications with the Didit Test Bank. One-time reads of real banks are already open to live applications in the countries listed on the coverage page.
How do I disconnect or delete a test bank connection?
Call POST /v3/bank/connections/{id}/revoke/ to end access; the connection reads revoked and its data stays readable until consent.retain_until. Call DELETE /v3/bank/connections/{id}/ to remove the connection and its data, after which it reads deleted. To stop a person who never finished, cancel the link with POST /v3/bank/links/{id}/cancel/.
What does country_not_available mean?
The country you sent is one the product does not serve, or one where no bank is offered, so the create call answers 400 country_not_available. Send a served country, or omit country and let the person choose among every country you can serve. Check the coverage page and the institutions endpoint before you hardcode a list.
Can I run this sandbox test from an AI assistant?
The documented route for an AI-assisted sandbox bank test is the Bank Data API. Use a sandbox application API key on your server to call POST /v3/bank/links/, then open the returned URL in a browser and sign in to the Didit Test Bank with a documented test customer. Your server can confirm completion with GET /v3/bank/links/{id}/. MCP setup for each client is on the Didit MCP setup page.
Which test customer should I use with the Didit Test Bank?
Open the sandbox customer list and pick a documented customer whose expected accounts match the test you want to run. Connect the Didit Test Bank with that customer, then check that the accounts, balances and transactions you read match the fixture the page describes. To check separation, run a separate Bank Link for each test user. Read each stored link on your server to get its connection_id, then list that connection's accounts. Verify that your application shows each test user only the accounts from their own connection.
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


