# Stop reading a bank account from the bank

`POST /accounting/bank/accounts/{id}/unlink` · Rivier · accounting

Stop reading a bank account from the bank. The account and its lines stay; statements are imported from then on.

- Scope: accounting:admin
- Sdk: accounting.bank.unlink
- Cli: accounting bank unlink

## Parameters

- `id` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "disconnect": {
      "type": "boolean",
      "default": false,
      "description": "also remove the stored sign-in of the bank connection, when no other account uses it"
    }
  },
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/accounting/bank/accounts/{id}/unlink' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "disconnect": false
}'
```
