> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lucanto.eu/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lucanto.eu/_mcp/server.

## Review, import, and retry bank statement extraction

Bank statement rows staged by AI extraction are now reviewable through the API.
List a statement's staged rows with
`GET /workspaces/{workspace_id}/bank_statements/{id}/entries`, add one the
extraction missed with `POST .../entries`, and book the reviewed set as
transactions with `POST .../entries/import` — omit `entry_ids` to book
everything `pending`, or pass `force: true` to push past a statement that
doesn't balance.

* `POST .../bank_statements/{id}/retry_extraction` re-parses a PDF with a
  stronger model when rows were dropped.
* `DELETE /workspaces/{workspace_id}/bank_statements/{id}` removes a duplicate
  upload without touching transactions already booked from it.
* All of these require the `manage:bank_accounts` scope.

## Merge duplicate bank accounts

`POST /workspaces/{workspace_id}/bank_accounts/{id}/merge_into` folds a
duplicate-IBAN account into the one the bank actually writes to. Every
transaction, statement, and document referencing the source is repointed at
the target and the source is archived; nothing is deleted. The source can't
carry a bank connection, and the workspace's default account can't be merged
away.

## Pair and unpair bank transactions

Transactions can now be settled, unsettled, and deleted through the API.

* `POST /workspaces/{workspace_id}/transactions/{id}/pair` links a transaction
  to the document or expense it pays for.
* `POST .../transactions/{id}/pair_with_transaction` links a refund to the
  charge it reverses.
* `POST .../transactions/{id}/unpair` undoes either.
* `DELETE /workspaces/{workspace_id}/transactions/{id}` hard-deletes a
  transaction and re-derives the payment status of whatever it settled.
* `GET .../transactions/{id}/suggestions` returns the same scored candidates
  as the app's "Suggested matches"; `GET .../invoices/{id}/transaction_suggestions`
  (also on proformas and credit notes) returns the mirror — transactions
  likely to settle that document.

Transaction responses also gained `display_name`, a ready-to-render
counterparty label, and `pairable`, which names what the transaction
currently settles.