Skip to main content

Bank Account Check Idempotency and Billing Guide

Each bank-answered account check is billed once whatever the result; 400, 402, 404 and 503 are never billed. An Idempotency-Key returns the first response with the same request_id and bills once.

Bank Account Check Idempotency and Billing Guide

Contents

In this guide

Jump to the part you need.

The Didit Account Check API bills one credit each time a bank answers a check, whatever that answer is, and never bills a request the API refuses. It fits backend teams that confirm a payout account belongs to a name they already hold, before money moves. List price is $0.45 per answered check. The caveat: a retry without an Idempotency-Key runs a second check and bills again, and no endpoint reads a past check back, so you must store every response.

If you drive the build from an AI assistant, connect Didit through the MCP server at https://didit.me/developers/mcp/. The MCP setup page explains how to connect an AI assistant.

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

Idempotency and billing for the Didit bank account check
QuestionWhat Didit does
Is a failed check billed?Yes, when the bank answers. One credit for match, close_match, no_match or cannot_verify.
Which failures are never billed?400 with a refused body, 402 with no credit, 404 for an uncovered country, 503 when the bank is unavailable.
What does an Idempotency-Key do?Returns the first response for that key, with the same request_id, and bills once.
What if I retry without a key?A new check runs and is billed again.
How long is the response kept?24 hours, when you send a key.
Can I read a check back later?No read-back endpoint is documented. Store the response you get.
Rate limit300 requests per minute per API key.
SandboxSandbox keys are never charged.
Price$0.45 per answered account check at list price.

Start free in the sandbox at https://business.didit.me/, with no sales call. For developers, connect Didit to an AI assistant through the MCP server at https://didit.me/developers/mcp/.

Does a failed bank account verification get billed?

Yes, if the bank answered. The rule for the account check is one credit per bank-answered check, whatever the result. A no_match costs the same as a match, because the work is identical: we sent the account to the bank and the bank answered with a verdict on the holder name.

No, if the request was refused before the bank answered. Four statuses never reach a bank and are never billed, and a 429 reaches no bank and is not billed either. The table below shows what each one means and what to do about it.

Statuses on POST /v3/bank/account-check/ and what they cost
StatusWhat happenedBilledWhat to do
200 with a resultThe bank answered, with match, close_match, no_match or cannot_verifyOne creditApply your payout policy
400A field failed validation, for example account.bank_code or consent requiredNoFix the field the body names, then resend
402The check could not be paid for, code insufficient_creditsNoTop up, then resend
404 with country_not_coveredNo priced account check route in that countryNoCheck the coverage page
503A bank service is unavailable, or the check took too long to answer (query_timeout)NoResend with the same Idempotency-Key
429The rate limit was reached, so no bank check runsNo, no bank check runs and nothing is billedWait for Retry-After, then resend with the same key

Format is checked before the bank is called. Didit checks the length, the characters, the check digits and, for an IBAN, that it belongs to the selected country. A value that fails is refused with the field to fix and no attempt is spent, so a mistyped IBAN costs nothing and never reaches the bank.

What the four results mean

Results and the meaning of each
resultWhat it meansTypical next step
matchThe bank holds the account under the name you sentSend the money
close_matchThe bank holds a close name, returned in holder_name when the bank returns itCompare the name, or ask the person to confirm
no_matchAnother name holds the account, or there is no such accountDo not send the money
cannot_verifyThe bank answered without comparing the name, for example a blocked or closed accountApply your own policy, for example ask for another account

name_match_score is the 0 to 100 similarity between the holder name you sent and the name on the account. result stays authoritative: it is decided with the default thresholds, a match from 85 and a close_match from 70 up to 84, and your own threshold never changes it. The score is null when no name was compared, which covers a missing account, a bank verdict with no holder name, and holder details that could not be read.

Install route: the API recipe and the MCP connector

Didit documents two routes into this, and they answer different questions. The check itself is a backend API call: the account check page documents it as POST /v3/bank/account-check/, with no session and no sign-in, and the call needs your API key. The MCP server helps with the integration work rather than running the check: it connects an AI assistant to Didit so you can work from a prompt while you build, and the MCP setup page explains how to connect an AI assistant. The payout decision stays in your backend, because that is where the key and the money are. If your client has no documented connector, the documented route is the API call below, and its price sits on https://didit.me/pricing/.

Use Didit with MCP walkthrough thumbnail
The MCP walkthrough: connecting an AI assistant to Didit while you build the integration.

Prerequisites

What you need before the first account check
ItemWhat you needWhere
PlanAny plan. The sandbox is free on every plan; production pays per answered check from prepaid credithttps://didit.me/pricing/
CreditA balance that covers the check. A 402 means the check did not runBusiness Console billing
API keyA key with access to this endpoint, sent as x-api-key. Sandbox keys are never chargedAPI keys
CoverageThe account's country must have a priced account check route. The account check runs in 47 countries todayCoverage page
ClientA server-side HTTP client that sends JSON. The key never ships in a browserYour backend
StorageA place to store the response, because there is no read-back endpointYour own record

Step by step

  1. Create a sandbox application and an API key. Open https://business.didit.me/, create a sandbox application, then create a key on the API keys page. Sandbox keys are never charged, and a sandbox key asks for consent in the same countries a live key does.

  2. Send the check with an Idempotency-Key. Send the account in the shape its country writes it, and add the key as a header. Pick a key your system can rebuild for the same payout attempt, so a retry after a timeout repeats it instead of creating a new one.

    curl -X POST https://verification.didit.me/v3/bank/account-check/ \
      -H "x-api-key: $DIDIT_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: payout-4821-attempt-1" \
      -d '{
        "country": "ESP",
        "account": { "iban": "ES5500000000000000000001" },
        "holder": { "business_name": "Northwind Trading S.L." }
      }'
  3. Read the result. Take result, holder_name and name_match_score from the body. result is authoritative. The score is the number it was decided on, so you can apply your own threshold on close_match without changing the verdict.

  4. Store the response. There is no endpoint that reads a check back, so write request_id, result, holder_name, name_match_score and the time against your payout record.

  5. Retry with the same key. On a 503 with query_timeout, a 500 or 502, or a 429 after waiting for Retry-After, resend the identical body with the identical Idempotency-Key. You get the first response back with the same request_id, and one credit is charged.

  6. Fix refusals and resend. A 400 names the field to fix, for example account.bank_code with reason required, or consent with reason required. A 402 means top up. A 404 with country_not_covered means there is no priced route in that country. None of these is billed, so fixing and resending costs only one credit when the bank finally answers.

  7. Go live. Swap the sandbox key for a live key, confirm the country is on the coverage page, and check whether the country requires consent. Where it does, ask the holder for explicit consent in your product and send "consent": true before each check.

The account lookup form where a holder types bank details
The account form in the hosted step. The Account Check API takes the same fields from your backend.

Field and response mapping

Request fields

What each request field controls
FieldWhat it doesWatch out for
countryThe ISO code of the account's country, which decides the account format and the coverageAn uncovered country answers 404 with country_not_covered and is not billed
accountThe account object in that country's shapeA missing key is a 400 naming the field. Spaces, dashes and dots are ignored
holder.full_nameChecks a person's account against that nameSend one of the two holder fields
holder.business_nameChecks a company's account against that nameSame field family, use this for business accounts
consentRecords the holder's explicit consent where the country requires it before each checkMissing consent is a 400 on consent and is not billed
Idempotency-Key headerMakes the call safe to retryThe same key returns the first response with the same request_id and bills once

Account shapes by country

The account object in the countries the docs give an example for
Countryaccount
IBAN countries, United Arab Emirates{"iban": "..."}
United Kingdom{"sort_code": "...", "account_number": "..."}
United States{"routing_number": "...", "account_number": "..."}
Canada{"transit_institution": "...", "account_number": "..."}
Australia{"bsb": "...", "account_number": "..."}
India{"ifsc": "...", "account_number": "..."}
Nigeria{"bank_code": "...", "account_number": "..."}, with the 6-digit NIP code and the 10-digit NUBAN
Ghana{"bank_code": "...", "account_number": "..."}, with the bank's 3-letter code
Kenya, Zambia{"bank_code": "...", "account_number": "..."}, with the bank's code for that country
Brazil{"iban": "...", "registration_id": "..."}, with the CPF or CNPJ
Mexico{"clabe": "..."}
Argentina{"cbu_cvu": "..."}

Response fields

What comes back and where it should go
FieldMeaningWhere it goes
request_idThe id of this checkStore it. Every retry with the same key returns the same value
resultmatch, close_match, no_match or cannot_verifyYour payout decision
holder_nameThe name the bank holds, when the bank returns itReview queue, mostly for close_match
name_match_score0 to 100 similarity, or null when no name was comparedYour own threshold as a secondary signal

Test with sandbox data, then handle the errors

A sandbox application mocks every external provider, and sandbox keys are never charged, so the whole loop can be exercised before a live key exists. Send the documented Spain example with a sandbox key and a key header. Expect HTTP 200 with result, name_match_score and request_id in the body, so assert on the shape of the response and on your own handling of each result value rather than on one fixed verdict. Then resend the identical request with the identical Idempotency-Key and confirm the same request_id comes back, which proves your retry path bills once.

Error cases and the fix
What you seeWhyFixBilled
400, account.bank_code, requiredThe country's check needs a bank code you did not sendSend the bank's code for that countryNo
400, consent, requiredThe country needs the holder's explicit consent before each checkAsk for consent in your product, then send "consent": trueNo
402 with insufficient_creditsThe check could not be paid for, so it did not runTop up, then resendNo
404 with country_not_coveredNo priced route in that countryCheck the coverage page before offering the check thereNo
503 with query_timeoutThe bank did not answer in timeResend with the same Idempotency-KeyNo
429 with Retry-AfterMore than 300 write requests per minute on one keyWait for Retry-After, add backoff with jitter, stop after a few attempts, resend with the same keyNo, no bank check runs and nothing is billed
409The request conflicts with the current state. The docs name a reused Idempotency-Key as an exampleRead code and reload the state before resendingDepends on the code

Disconnect and clean up

Delete the API key in the console and calls from it answer 401: the credentials are invalid. If the whole application is deleted, its keys answer 403 with code: application_deleted for a few minutes, then are refused like any wrong key. Do not retry after that.

On your side, the record is the response you stored. Since no endpoint reads a check back, keep your own copy for as long as your payout records need it.

What the integration costs at both ends

Didit charges only the per-check price: one credit for each check a bank answers, nothing for the four refusal statuses. Your side is one POST, one stored response and a retry path that resends the same key. A retry loop that mints a new Idempotency-Key on every attempt, or sends none, runs a new check each time, and every check the bank answers is billed again.

Take 10,000 payout account checks in a month. 9,200 are answered by a bank and 800 are refused: a 400 with a missing bank code, a 404 for a country without a route, and some 402 calls while the balance was empty. Billed: 9,200 x $0.45 = $4,140.00. Refused: 800 x $0.00 = $0.00. Month total: $4,140.00.

Now run the same 10,000 checks through a retry loop that omits the Idempotency-Key, and let 2,000 of them run a second time after a timeout. Billed: 11,200 x $0.45 = $5,040.00. The missing header costs $900.00 a month, more than a fifth of the original bill, for 2,000 duplicate answers. Growth takes 4% off every Didit price and Scale 10%, applied at billing, so the per-check figure falls with the plan, not with how many times you resend.

How Didit billing works: credits, auto-recharge and volume discounts
Credits and billing in the Didit console, where the per-check charge lands.

Sources

The next step is to run the two calls that matter before you write any payout code: one answer that costs a credit, and one retry that must not. Start free in the sandbox at https://business.didit.me/, with no sales call.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

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

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

Does a failed bank account verification get billed?

Yes, when the bank answered. Didit bills one credit for each bank-answered account check, whatever the result, so no_match and cannot_verify cost the same as match. Requests refused before the bank answered are never billed: 400 with a refused body, 402 when the check cannot be paid for, 404 for an uncovered country, and 503 when the bank is unavailable.

What does an Idempotency-Key do on the Didit account check?

It makes the call safe to retry. When you send an Idempotency-Key header, a second request with the same key returns the first response, with the same request_id, and one credit is charged in total. The response is kept for 24 hours when a key is used, so the key covers the window in which a timeout or a network failure usually resolves.

What happens if I retry the account check without an Idempotency-Key?

A new check runs and it is billed again. Nothing about the previous response is returned, because without a key Didit has no way to match the retry to the first request. Send a key per payout attempt, and rebuilding that key on a retry is the whole fix.

How long does Didit keep the response of an idempotent account check?

24 hours, when you send an Idempotency-Key. Inside that window a retry with the same key returns the same response and the same request_id. After it, store your own copy, because there is no endpoint to read a past check back.

Can I read a past bank account check back through the API?

No. The docs describe no endpoint that returns a past account check, so the response body is the only record and you must store it. Write request_id, result, holder_name, name_match_score and the time into your own payout record when the call returns.

How much does a Didit bank account check cost?

$0.45 per answered account check at list price, charged once for each check a bank answers whatever the result. Refused requests cost nothing. Growth takes 4% off every Didit price and Scale takes 10%, and sandbox keys are never charged.

What is the rate limit on the account check API?

300 requests per minute per API key, because the account check is a write request and writes share that ceiling. A 429 carries a Retry-After header, so wait that long, add backoff with jitter, stop after a few attempts, and resend with the same Idempotency-Key.

Are sandbox account checks charged?

No. Sandbox keys are never charged, and a sandbox application mocks every external provider, so you can run the full success and error set before a live key exists. A sandbox key asks for consent in the same countries a live key does, so the consent path is testable too.

What is name_match_score and which value wins?

name_match_score is the 0 to 100 similarity between the holder name you sent and the name on the account. result stays authoritative: it is decided with the default thresholds, a match from 85 and a close_match from 70 up to 84. The score is null when no name was compared, for example when there is no such account.

Does the account check need the account holder's consent?

In some countries, yes. Where the country requires it, ask for the holder's explicit consent in your product and send "consent": true with the check. Without it, the check in those countries is refused with a 400 on consent and is not billed. Elsewhere consent is optional, and when you send it Didit records it with the check's charge.

Can an AI assistant run the account check for me?

The account check is documented as a server-to-server call with your API key, so the call belongs in your backend, where the key and the payout decision live. The MCP server connects an AI assistant to Didit so you can work from a prompt while you build, and its setup page explains how to connect an AI assistant.

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.