# Bank

Bank accounts, and bank lines with their reconciliation state. Read-only.

## Endpoints

- [List bank accounts](https://developers.numina.app/api/bank/list-bank-accounts.md): `GET /v1/bank-accounts`
- [List bank lines](https://developers.numina.app/api/bank/list-bank-lines.md): `GET /v1/bank-transactions`
- [Get bank line](https://developers.numina.app/api/bank/get-bank-line.md): `GET /v1/bank-transactions/{id}`

## The bank line object

- `id` (string (uuid), required)
- `bank_account_id` (string (uuid), required)
- `bank_account_name` (string, required, nullable)
- `ledger_account_number` (number, required, nullable)
- `date` (string, required, nullable)
- `value_date` (string, required, nullable)
- `amount` (number, required): Negative is money out
- `currency` (string, required)
- `counterparty` (string, required, nullable)
- `payment_reference` (string, required, nullable)
- `state` (string, required): One of: `unreconciled`, `reconciled`.
- `journal_entries` (array of objects, required): The entries this line is reconciled with. Here `state` only separates booked from not booked, so a canceled entry shows as one of these two.
  - `id` (string (uuid), required)
  - `state` (string, required): One of: `draft`, `booked`.
- `agent_processing` (boolean, required): Numina's bookkeeping agent is handling this line right now

```json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "bank_account_id": "550e8400-e29b-41d4-a716-446655440000",
  "bank_account_name": "string",
  "ledger_account_number": 0,
  "date": "string",
  "value_date": "string",
  "amount": 0,
  "currency": "string",
  "counterparty": "string",
  "payment_reference": "string",
  "state": "unreconciled",
  "journal_entries": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "state": "draft"
    }
  ],
  "agent_processing": false
}
```
