Skip to main content

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.

How to Test Bank Verification in Sandbox With the Didit Test Bank

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.

What a sandbox bank verification test needs
PieceWhere it livesWhat to know
Sandbox applicationOur Business Console, environment switcher set to SandboxAPI keys belong to one application and one environment, so a sandbox key never creates a billed check.
API keyOur Business Console, API keysFull 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 LinkPOST /v3/bank/links/, then the returned urlWe 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 bankThe bank picker inside the linkA sandbox application lists the Didit Test Bank; the sandbox page lists the test customers.
Return to your siteredirect_url on the linkIn a sandbox application only a localhost address works today.
Resultbank.* webhooks and GET /v3/bank/links/{id}/Read the link yourself on the server. Never trust a link id a browser sends you.
CostSandboxNothing 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

What you need before the first request
RequirementDetail
PlanAny plan, including Free. Sandbox is free on every plan, and a sandbox application has the features of every plan on its own screens.
ClientA 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.
PermissionsA 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 inputsA 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

  1. 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"
  2. 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"}'

    access takes ongoing or one_time, and one_time is the default: the connection ends itself when its read completes and the data stays readable until consent.retain_until. country is optional; send it when you know it so the person sees only that country's banks. data names what the person will share, history_days sets how far back transactions go, and vendor_data is 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_at is illustrative. Replace the sample link id in the read below with the id from your own POST response. Keep the link id with your user. The url and the client_token are returned once, when the link is created, and the url stops working at expires_at (60 minutes by default, from 5 minutes to 24 hours with expires_in).

  3. Open the link and connect the Didit Test Bank. Open the url in 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 url exactly 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.

    Walkthrough of the hosted screens a person sees inside our flow
    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.
  4. 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.completed arrives with the link_id and the connection_id, then bank.connection.created once 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: completed and take the connection_id from that response. For a final failure, inspect error.code.

  5. Read the test data. For this ongoing test, wait for bank.connection.created or confirm that the connection is active before reading accounts: a pending connection has no readable data yet. With that connection_id, list accounts, replacing CONNECTION_ID with 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_id from 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 take limit (default 100, maximum 500) and continue with cursor; the date-range transaction read continues with page_token. The full endpoint list is in the Bank Data API.

  6. Exercise the failure paths. Send a country the product does not serve and expect 400 country_not_available. Refresh or renew a one-time connection and expect 409 one_time_connection. If the connection still has more than 30 days of consent left, renew answers 409 renewal_not_needed; after consent.renewable_until it answers 409 renewal_window_expired. Run each only when the connection's consent dates make it reachable. Cancel a link with POST /v3/bank/links/{id}/cancel/ and let another one expire, so your handler sees bank.link.cancelled and bank.link.expired as well as the success case. Branch on the code field of every error, not on the HTTP status alone.

  7. Disconnect and delete. Stop access with POST /v3/bank/connections/{id}/revoke/, which ends the consent and leaves the data readable until consent.retain_until. Remove everything with DELETE /v3/bank/connections/{id}/, after which the connection reads deleted and 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

What each field and event means while you test
Field or eventWhere it appearsWhat it means
idLinkThe link id. Store it next to your user and read the link with it.
url, client_tokenLink responseReturned once at creation. The url is the hosted page; open it as it is.
expires_atLinkWhen the url stops working. Create a new link after that.
status on the linkLinkcreated while waiting for the person, then completed or a final failure.
connection_idLinknull 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_idAccounts responseUsed in balance and transaction reads for that account.
bank.link.completedWebhookThe person finished the hosted flow. Confirm with a link read.
bank.connection.createdWebhookThe first sync stored the accounts.
bank.link.failed, .cancelled, .expiredWebhookTerminal states of the link, each with its own handler.
connection.statusConnectionpending, active, renewal_required, paused, revoked, deleted or failed.
status_reasonConnectionFor example collection_complete when a one-time read ended itself, or first_sync_failed.
consent.expires_at, renew_by, renewable_until, ended_byConnectionThe real consent dates the bank set, and who ended access.
bank.connection.consent_expiringWebhookSent 14, 7 and 1 day before the consent ends.
bank.connection.revokedWebhookThe final signal when access ended, including an unpaid connection.
Idempotency-KeyEvery writeEvery 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: completed and take the connection_id from that response. For a final failure, inspect error.code.
  • Shortly after, bank.connection.created arrives and the connection reads active for 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

What breaks in a sandbox bank test, and the fix
SymptomWhyFix
400 country_not_availableThe 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_connectionA 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_neededIf more than 30 days of consent are left.Nothing to do yet; renew closer to consent.expires_at.
409 renewal_window_expiredIf the moment in consent.renewable_until has passed.Create a new link; the old connection cannot be renewed.
Connection failed, status_reason: first_sync_failedThe 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 finishThe 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 linkIn 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 refusedThe 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.

Explanation of Didit billing with credits, auto-recharge and volume discounts
A live one-time Bank Link is billed per completed collection. Bank Data API reads are free.

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.

Using our hosted MCP server from an AI assistant
Our hosted MCP server signs in with OAuth. The bank test itself uses the Bank Data API calls in this guide.

Didit MCP setup

Sources

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.

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

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.

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.