---
title: "Disconnect Bank"
method: DELETE
path: "/api/openbanking/disconnect/{connection_id}"
tags: ["openbanking"]
---

# Disconnect Bank

`DELETE /api/openbanking/disconnect/{connection_id}`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/openbanking/disconnect/{connection_id}`
- Auth: HTTP bearer

Disconnect a bank connection (set status to revoked).
Optionally revokes the consent on Finexer side.
Does NOT delete the user's transactions.

## Path parameters

- `connection_id` string, uuid, required

## Response `200`

Successful Response

- DisconnectResponse
  - `connection_id` string, required
  - `status` string, required
  - `disconnected_at` string, required
  - `transactions_preserved` boolean, required
  - `accounts_archived` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/earmarkiq/apis/earmark-api.md) · [All operations](https://skmtc.dev/earmarkiq/apis/earmark-api/llms.txt) · [OpenAPI document](https://skmtc.dev/earmarkiq/apis/earmark-api/revisions/4a2c41907105?raw)
