# How do I use bank data for accounting or bookkeeping?

Source: https://help.didit.me/bank-verification/bank-data-for-accounting
Updated: 2026-11-23

Connect each client's bank once with ongoing access, read only what changed with a cursor, and renew before the consent ends. It works in Sandbox today.

For accounting, create one link with **ongoing access** for each client and bank.
Didit then syncs the balances and transactions by itself, tells you with a webhook when new data arrived, and a change feed returns only what changed since your last read.
The Bank data API works in Sandbox applications today: live banks are being opened, and Sandbox is available today.

## The shape that works

Use one connection per client and bank, and run the same code for every client.
Your own reference for the client goes in `end_user.reference`, so Didit recognises the same client connecting the same accounts again and does not store them twice.

## What to ask for when you create the link

| Ask for | What it does |
|---|---|
| `access: ongoing` | Keeps access open until the consent ends or someone stops it |
| `data` | Which data you need: accounts, balances, transactions |
| `history_from` or `history_days` | How far back to read, up to 365 days. The bank may deliver less, and each account reports how far back the data really goes in `history_coverage` |
| `segment` | Personal or business accounts, where the bank allows business accounts |
| `ownership.compare` | `none` skips the holder comparison. The other values compare the holder with a person or a company verified in Didit |
| `consent_days` | A request: the bank decides the real end date, shown on the connection |

The person connects on the hosted page. See [how a person connects their bank](https://help.didit.me/bank-verification/how-a-person-connects-their-bank).

## Keep the feed current

- Didit syncs every active ongoing connection automatically, between one and four times a day depending on the bank.
- When a sync stores changes, the `bank.data.updated` webhook arrives. You then call the change feed with your stored cursor.
- Your first read, with an empty cursor, returns every current transaction as added with `reset: true`. Replace your copy with it instead of adding to it.
- Each later read returns what was added, modified and removed since your cursor. Store the new cursor only when a page says there is nothing more.
- A transaction id stays the same across reads, syncs and renewals, so a re-read does not duplicate a movement.
- Reads never bill. The data changes only when a sync runs, so one read per webhook is enough. You can also ask for a sync on demand, within the bank's daily limit.

## Renew before the consent ends

Didit sends a reminder 14, 7 and 1 day before the end.
A renewal keeps the same connection, the same accounts and the same history.
To renew, you send the person the renew link: they confirm on one screen and sign in at their bank once, and the connection then has a new end date.
Read [one-time read or ongoing access](https://help.didit.me/bank-verification/one-time-or-ongoing-bank-access) for the details.

## When a client leaves

Stopping access and deleting are different actions.
Revoke the connection to stop reading, or delete it to stop access and delete the data.
If the client stops sharing at their bank, a `bank.connection.revoked` webhook arrives and you stop the feed for that connection.
See [stopping access and deleting a connection](https://help.didit.me/bank-verification/stop-access-and-delete-a-bank-connection).

## What it costs

Ongoing access is charged per active connection per month.
Its live price is published when live ongoing access opens.
See [what bank data costs](https://help.didit.me/bank-verification/what-bank-data-costs).

## Related

- [Continuous bank feed for accounting in the Didit documentation](https://docs.didit.me/use-cases/bank-data-for-accounting)
- [Try bank data in the Sandbox](https://help.didit.me/bank-verification/try-bank-data-in-the-sandbox)
