> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iso20022js.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Accounts

> Accounts and Agents

## Accounts and Agents

### Account

Represents either an IBAN account or a basic account.

```typescript theme={null}
type Account = IBANAccount | BaseAccount;

interface IBANAccount {
  iban: string;
}

interface BaseAccount {
  accountNumber: string;
  accountType?: "checking" | "savings";
}
```

### Agent

Represents either a BIC or ABA identified financial agent.

```typescript theme={null}
type Agent = BICAgent | ABAAgent;

interface BICAgent {
  bic: string;
  bankAddress?: StructuredAddress;
}

interface ABAAgent {
  abaRoutingNumber: string;
}
```
