Skip to main content

Technical

BankID API in Sweden: integrate through Didit (2026 guide)

Didit publishes $0.20 per completed BankID Sweden verification through its digital ID wallet route, with a documented document fallback. The result carries the attributes the provider returns, so plan a separate step if your.

BankID API in Sweden: integrate through Didit (2026 guide)

Contents

In this guide

Jump to the part you need.

BankID is Sweden's bank-issued eID. The BankID API is the interface your service uses to start a sign-in for a Swedish user. This guide fits teams that onboard Swedish residents and want BankID through Didit's digital ID wallet route. Didit publishes $0.20 per completed BankID Sweden verification. The caveat: the wallet result contains the attributes the provider returns, so do not assume an address or a portrait.

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

Two documented Didit routes to BankID
RouteWhat you buildHow the user signs inPriceBest for
Didit Sessions API with the hosted wallet journeyOne session call. Didit runs the hosted wallet journey, the workflow rules and the configured document fallbackIn the wallet they already hold$0.20 per completed verification, publishedTeams that want BankID and a documented document fallback in one workflow
Didit digital ID wallet APIsYour own interface and authentication steps: a dedicated wallet start endpoint plus the shared result, polling and cancellation endpoints. No workflow neededIn the wallet they already hold$0.20 per completed verification, publishedTeams that manage the wallet interface themselves

Start free in the sandbox at business.didit.me, no sales call. If you want an AI assistant to wire the call for you, connect Didit through the Didit MCP server. Every number on this page is also on the pricing page.

BankID integration: the outcome and the route we recommend

At the end you call GET /v3/session/<SESSION_ID>/decision/ and read the attributes the wallet provider returned, the assurance tier that says a provider authenticated the person, and the warnings your policy reads before it says yes. You also have a fallback for applicants who cannot use BankID.

The wallet route is one integration that already speaks to BankID through Didit. We publish the price at $0.20 per completed verification, and no separate national eID transaction fee is added to it. You still own the policy, the risk decision and the address, because the wallet result is not a promise that every attribute you want is present. For teams that want BankID and a document fallback in one workflow, we recommend the wallet route.

If you are replacing an existing BankID integration, start with the switch page.

The screens a user sees in a Didit verification, from picking a method to the result
What the end user sees when BankID is one of the methods in the workflow.

What a BankID sign-in returns, and what it does not promise

A BankID sign-in is an authentication, not a document read. The person proves control of a credential issued by a Swedish bank, and the provider signs the attributes it shares. On the wallet route those attributes arrive in the session decision.

The wallet result contains the attributes returned by the provider, subject to availability, consent, and policy requirements. Do not design a policy that assumes an address or a portrait is present. If your policy needs more, add a separate step and price it.

Every ID Verification result carries an assurance tier. A wallet result carries cryptographic, which means an identity provider authenticated the person and signed the attributes it returned. That tier describes the evidence. It is not a ranking against a document check, because the tiers describe different evidence.

Prerequisites

  • The user needs an active BankID identity and must consent to sharing the returned attributes.
  • On the wallet route: a Didit API key and a workflow with Sweden enabled. BankID Sweden is available in production on our side.
  • An address source if your policy needs one, because address handling is application-specific.
  • A fallback method for applicants without BankID, and a decision about what that fallback is allowed to prove.

How to integrate BankID in a Didit workflow, step by step

  1. Authenticate the documented API calls with a Didit API key.

  2. Enable Sweden in the workflow. In the console, enable Sweden in the workflow and turn on the wallet method, or make the same change through the workflows API. Set the wallet failure behaviour to fallback_to_document so an applicant without BankID continues into a document check instead of a dead end. The console checks its environment's live capability catalog when you save, and a workflow that enables a wallet marked Coming soon is rejected on save.

  3. Open a session. The workflow id is a stable UUID and vendor_data is your own identifier for the person.

    curl -X POST https://verification.didit.me/v3/session/ -H 'x-api-key: <API_KEY>' -H 'Content-Type: application/json' -d '{"workflow_id": "<WORKFLOW_ID>", "vendor_data": "customer-88213", "callback": "https://app.example.com/verified", "language": "sv"}'

    The response carries the session id. The session object carries session_url, the hosted flow you send the user to.

    {
      "session_id": "b1f0c0de-6a52-4a1e-9a44-2f0e0f7c1a11",
      "status": "Not Started"
    }
  4. Send the user to the session. Depending on the wallet, the sign-in is an app handoff, a QR code, or a comparison code confirmed on the user's phone. The user approves the sign-in in the wallet they already hold.

  5. Wait for the outcome. Subscribe to the status.updated webhook for the result, or poll the decision endpoint if your integration needs a pull. The webhook and polling read the same session, so choose one path.

  6. Fetch the decision.

    curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ -H 'x-api-key: <API_KEY>'

    The key needs the read:sessions privilege.

  7. Read the result and apply your policy. Branch on session_kind first, then on status. Store session_id, vendor_data, the decision trace and the warnings.

  8. Cover the address and the risk checks. A BankID sign-in does not by itself complete an AML file or a verified address. Add a proof of address step and an AML screening step to the same workflow if your policy needs them.

If your application manages the wallet interface itself, the Digital ID wallet APIs give each wallet a dedicated start endpoint with shared result, polling and cancellation endpoints, and no workflow is needed. The endpoint paths are on that page.

Expected output

{
  "session_id": "b1f0c0de-6a52-4a1e-9a44-2f0e0f7c1a11",
  "session_kind": "user",
  "session_number": 1,
  "status": "Approved",
  "session_url": "https://verify.didit.me/session/...",
  "created_at": "2026-11-26T09:14:02Z",
  "expires_at": "2026-11-26T09:44:02Z",
  "decision_trace": {
    "status": "Approved",
    "decided_by": "automatic",
    "decided_at": "2026-11-26T09:16:40Z"
  }
}

The wallet result contains the attributes returned by the provider, subject to availability, consent, and policy requirements. The session carries the assurance tier cryptographic, because a digital identity provider authenticated the person and signed what it shared. That tier describes the evidence, not a ranking against a document check. Read it with the warning we repeat to every customer who asks whether a wallet is enough:

A signature verifies the issuer and returned claims; it does not guarantee that every requested attribute is present, current or sufficient for your compliance policy.

Inputs and outputs

Inputs and outputs for a BankID session
DirectionFieldWhat it does
Inworkflow_idRequired. Stable UUID of the workflow, read from the console or the workflows API.
Invendor_dataYour own identifier for the person. Binds the session to that person and drives duplicate detection.
IncallbackWhere the hosted flow returns the user. It must be on one of your allowed domains, or creation fails with 400.
InlanguageISO 639-1 code for the flow. sv for Swedish.
Insession_expiration_timeSeconds the link stays valid, between 3600 and 2419200. Overrides the workflow setting for this session.
Inexpected_detailsName, date of birth and nationality you already hold. Mismatches surface as decision warnings.
OutstatusApproved, Declined, In Review, In Progress, Not Started, Expired, Abandoned and the other session states.
Outdecision_traceHow the status was reached: automatic, manual or investigator, with the timestamp.
OutwarningsRisk codes with short and long descriptions, filtered to the feature that raised them.
OutProvider attributesThe attributes returned by the wallet provider, subject to availability, consent and policy requirements. A wallet without a portrait does not include a selfie comparison.

Failure cases and recovery

What to do when a BankID session does not end in a clean Approved
What you seeWhyRecovery
Status ExpiredThe user did not finish inside the session windowCreate a new session and send a fresh link. Do not reuse the old id.
Status AbandonedThe user closed the flowSend a new session, or route the person to the document fallback.
Status DeclinedAutomatic rules found a warningRead the warnings array, review the session in the console, then decide.
Status In ReviewA reviewer holds the sessionCheck assignee and sla_due_at; the review clock is on the session.
400 on callbackThe URL is not on the application's allowed domainsAdd the origin to allowed_domains, or use an app deep link, which is always accepted.
404 on the decisionWrong session id, or the session belongs to another applicationRe-read session_id from the create response.
403 or 401The key lacks read:sessions, or the key is wrongUse a key that holds read:sessions.
Workflow will not saveA wallet marked Coming soon is enabledLeave that wallet off, or switch to a country whose wallet is Available.
User has no BankIDThe person has no eligible BankID, or the wallet sign-in failsApplicants who cannot complete the wallet sign-in can use the configured document fallback.
A user photographing an identity document during the document verification step
The document route that runs when an applicant has no BankID.

Choosing an integration route

On the Didit wallet route, the identity result is an input to your decision, not a replacement for it. You still need your own policy for acceptance, sanctions, address and retention.

Assurance and what it means for your policy

A wallet result carries the assurance tier cryptographic. That tier means an identity provider authenticated the person and signed the attributes it returned. It is not a ranking against a document check, because the tiers describe different evidence.

For AML and other regulated onboarding, due diligence remains risk based and needs jurisdiction-specific review. Use the wallet result as identity evidence, then apply your own policy, sanctions screening and address checks. Do not treat any eID sign-in as completing the file.

How to handle an address in a BankID workflow

The wallet result contains the attributes the provider returns. Address handling is application-specific: if your policy requires a verified address, add a proof of address step at $0.20, query your own source, or verify a document that shows it. Record the choice in your policy, because a BankID sign-in alone is not a promise of a verified address.

What 10,000 onboardings a month cost

Assume 10,000 new Swedish users a month, 70% with BankID, 30% without it and sent to the document route, and an AML screening on every user.

  • BankID Sweden: 7,000 x $0.20 = $1,400.00
  • Document check in the fallback: 3,000 x $0.15 = $450.00
  • AML screening: 10,000 x $0.20 = $2,000.00
  • Total at list price: $3,850.00, which is $0.385 per user

On the Scale plan the same month costs 7,000 x $0.18 = $1,260.00 for BankID, 3,000 x $0.135 = $405.00 for the document check and 10,000 x $0.18 = $1,800.00 for screening, $3,465.00 in total. If you configure passive liveness, face match and device and IP analysis on the fallback as well, the fallback is a full ID check at $0.33 on list price, not $0.15. Add $0.15 per NFC chip reading on the fallback if you require one, and $0.20 per proof of address check if your policy needs the address. Didit's published BankID wallet rate is per completed wallet verification. Confirm billing for any additional workflow step against the live price feed.

What is billed in a BankID workflow
StepBilledList price
BankID Sweden sign-in completesYes$0.20
Document check in the fallbackYes$0.15
Passive liveness, face match and device and IP analysis if added to the fallbackYes$0.18, making the fallback a $0.33 full ID check
NFC chip reading, add-on to a document checkYes$0.15
AML screeningYes$0.20
Proof of addressYes$0.20

We run the checks and return the evidence, the tier and the warnings. What stays with you: accepting the user, the sanctions decision, the address source and the retention period. A reviewer can override a status in the console, and the override is recorded in status_override with the automatic status kept beside it, so an auditor sees both.

A session overview in the Didit Business Console showing its status and warnings
A session overview with the warnings your policy reads before the decision.

BankID integration checklist

  • Choose between the Didit Sessions API and the dedicated wallet APIs before you write code.
  • List the attributes your policy needs, and name the source of the address.
  • Confirm the wallet is available in your environment before saving the workflow.
  • Set the wallet failure behaviour to fallback_to_document.
  • Subscribe to status.updated or poll the decision endpoint.
  • Decide what the document fallback is allowed to prove.
  • Test in the sandbox and with your chosen route before you go live.

Sources

Open the sandbox at business.didit.me, turn on BankID Sweden in a workflow, and run a test session against the create and decision calls above. There is no sales call. We publish every price on the pricing page, and 4,000+ companies run their identity checks on Didit.

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

What is the BankID API?

The BankID API is the interface a service uses to start a BankID sign-in for a Swedish user. In Didit, BankID Sweden is a digital ID wallet method inside ID Verification, priced at $0.20 per completed verification. The result carries the cryptographic assurance tier and the attributes the provider returns.

How do I integrate BankID into my app?

Through Didit, you create a session, send the user to the hosted flow or start the wallet from your own interface, and read the decision when the sign-in finishes. Didit makes BankID Sweden available through the Sessions API and through a dedicated wallet API, at $0.20 per completed verification.

Is there a free BankID test environment?

The sandbox is free and unlimited on every plan. You can create a workflow with BankID Sweden enabled and run test sessions against the create and decision calls. Testing in the sandbox does not remove the need to validate your own configuration against the route you finally ship.

How much does BankID integration cost?

Didit publishes $0.20 per completed BankID Sweden verification, with no separate national eID transaction fee. Didit's published BankID wallet rate is per completed wallet verification, so confirm billing for any additional workflow step against the live price feed.

Does the BankID API return the address?

Do not assume it does. The wallet result contains the attributes the provider returns, subject to availability, consent and policy requirements, and address handling is application-specific. If your policy needs a verified address, add a proof of address check at $0.20 or verify a document that shows it.

What does a BankID sign-in tell me about the person?

It tells you that a digital identity provider authenticated the person and signed the attributes it shared. In Didit the session records the cryptographic assurance tier and the attributes returned by the provider. It does not by itself complete your policy, so sanctions screening and any address step remain separate.

What should I check before I use a route other than the Didit wallet?

Compare it against Didit's documented wallet route before you build. Didit publishes $0.20 per completed BankID Sweden verification through its digital ID wallet route, with the configured document fallback.

Can I use BankID for customers who are not Swedish residents?

If the wallet is unavailable, configure the documented document fallback and any separate checks your policy requires. Do not promise BankID coverage to a non-resident population without checking each case.

What assurance level is BankID, and is it enough for AML?

Didit records the wallet result at the cryptographic assurance tier, which means a provider authenticated the person and signed the attributes. That is identity evidence, not a complete AML file. AML due diligence remains risk based and requires jurisdiction-specific review, so add sanctions screening and any address step your policy requires.

What happens if the user cancels the BankID app?

The session moves to a terminal state such as Abandoned or Expired. Create a new session and send a fresh link, or route the person to the document fallback in the same workflow. Do not reuse the old session id.

Is BankID the same as Freja eID?

No. Freja eID is a separate Swedish eID. Didit publishes a $0.25 rate for Freja eID and it is coming soon in production on our side.

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.