# Get trial balance (saldobalance)

`GET /v1/trial-balance`

Balance per account at the end of a date; the balances always sum to zero. Balance-sheet accounts are closing balances, including everything carried forward from earlier years (posted primo for closed years, calculated for years not yet closed). P&L accounts are accounting-year-to-date; the current year's result is not yet transferred to equity. Drafts are excluded. Amounts are DKK; debit is positive, credit is negative (so income and liabilities are negative).

**Scopes:** any of `reports:read`, `read:ledger`

## Request

```bash
curl https://api.numina.app/v1/trial-balance \
  -H "Authorization: Bearer numi_YOUR_API_KEY"
```

## Query parameters

- `date` (string, optional): Balances at the end of this date (YYYY-MM-DD). Defaults to today in Denmark (Europe/Copenhagen). (YYYY-MM-DD)
- `include_zero_balances` (string, optional): Include balance-sheet and P&L accounts whose balance is zero (default: false) One of: `true`, `false`.

## Response `200`

Trial balance

```json
{
  "date": "2026-06-30",
  "accounting_year": "2026",
  "year_start": "2026-01-01",
  "year_end": "2026-12-31",
  "year_is_closed": false,
  "base_currency": "DKK",
  "accounts": [
    {
      "account_number": 1010,
      "name": "Salg af varer",
      "statement": "profit_loss",
      "category": "income",
      "balance_dkk": -500000
    },
    {
      "account_number": 2000,
      "name": "Vareforbrug",
      "statement": "profit_loss",
      "category": "expense",
      "balance_dkk": 300000
    },
    {
      "account_number": 5820,
      "name": "Bank",
      "statement": "balance_sheet",
      "category": "asset",
      "balance_dkk": 250000
    },
    {
      "account_number": 6800,
      "name": "Leverandørgæld",
      "statement": "balance_sheet",
      "category": "liability",
      "balance_dkk": -50000
    }
  ]
}
```

## Errors

- `400` Bad Request - Invalid input or validation failed
- `401` Unauthorized - Invalid or missing authentication
- `403` Forbidden - Missing scope, or the company is archived
- `404` Not Found - No accounting year contains the date
- `429` Too Many Requests - Rate limit exceeded
- `500` Internal Server Error

See https://developers.numina.app/errors.md for the error format.
