---
title: "Extract Bank Account"
method: POST
path: "/onboarding/extract-bank-account"
tags: ["onboarding"]
---

# Extract Bank Account

`POST /onboarding/extract-bank-account`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/onboarding/extract-bank-account`
- Auth: none declared

Extract the IBAN(s) from an uploaded bank statement via doculyse (eligible).

Stateless and DB-free: reads the upload and runs doculyse pinned to the
bank-statement extractor, returning the IBAN(s) + currency/holder for the wizard to
pre-fill (and feed to ``propose-bank-mapping``). An unrecognized document returns an
empty ``accounts`` list with a ``warning`` (the user can still type the IBAN). **413**
when the file exceeds the upload cap or the analyzer's own (lower) one; **503** when
doculyse is unreachable. Rate-limited per user (LLM call).

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- ExtractBankAccountResponse: ``POST /onboarding/extract-bank-account`` → the IBAN(s) found in the statement. ``accounts`` may be empty (with an explanatory ``warning``) when the document is not a bank statement or carries no IBAN — the wizard then falls back to manual entry. ``accounts_without_iban`` (ZET-412) lists the statement's accounts that carry only an account number, so the wizard can prefill a row for the IBAN to be typed into.
  - `accounts` ExtractedBankAccount[]
    - `iban` string, required
    - `currency` string, nullable
    - `holder_name` string, nullable
    - `bank_name` string, nullable
  - `accounts_without_iban` ExtractedAccountWithoutIban[]
    - `account_number` string, required
    - `currency` string, nullable
    - `holder_name` string, nullable
  - `warnings` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
