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

# Zeilen

> Konten und Kategorien unter einer Datenzeile.

```bash cURL theme={null}
curl --request POST \
  --url https://api.fyvel.io/v1/reports/{reportId}/rows/{rowId}/lines \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "companyIds": ["11111111-1111-4111-8111-111111111111"],
  "periodFrom": "2026-01",
  "periodTo": "2026-06",
  "aggregation": "monthly",
  "layerIds": ["44444444-4444-4444-8444-444444444444"],
  "costCenterCodes": [100]
}'
```

```json Body theme={null}
{
  "companyIds": ["11111111-1111-4111-8111-111111111111"],
  "periodFrom": "2026-01",
  "periodTo": "2026-06",
  "aggregation": "monthly",
  "layerIds": ["44444444-4444-4444-8444-444444444444"],
  "costCenterCodes": [100]
}
```

```json 200 theme={null}
{
  "lines": [
    {
      "key": "category:99999999-9999-4999-8999-999999999999",
      "label": "Lizenzen",
      "values": {
        "2026-01": 8000,
        "2026-02": 7500
      }
    },
    {
      "key": "account:aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa",
      "label": "8400 · Erlöse",
      "values": {
        "2026-01": 4000,
        "2026-02": 4100
      }
    }
  ]
}
```

**Authorization** `string` *required*

`Bearer` und der API-Schlüssel. Siehe [Authentifizierung](https://docs.fyvel.io/api/authentication.md).

## Path parameters

**reportId** `string` *required*

Berichts-ID aus [Berichte](https://docs.fyvel.io/api/reports.md).

**rowId** `string` *required*

Zeilen-ID aus der [Struktur](https://docs.fyvel.io/api/report.md). Nur Zeilen vom Typ `data` lassen sich öffnen.

## Body

Der [Filter der Werte](https://docs.fyvel.io/api/report-values.md), ohne zusätzliche Felder. `costCenterCodes` und `costCenterGroupIds` begrenzen die Zeilen auf diese Kostenstellen, genau wie bei den Werten. Dieselbe Auswahl, sonst passen die Zeilen nicht zur Zahl.

**companyIds** `string[]` *required*

Eine oder mehrere Gesellschafts-IDs.

**periodFrom** `string` *required*

Inklusive, Format `YYYY-MM`.

**periodTo** `string` *required*

Inklusive, Format `YYYY-MM`. Darf nicht vor `periodFrom` liegen.

**aggregation** `string` (default: monthly)

`monthly`, `quarterly` oder `yearly`.

**layerIds** `string[]`

Buchungsebenen.

**layerGroupIds** `string[]`

Ebenengruppen.

**costCenterCodes** `number[]`

Kostenstellen-Codes. Die Zeilen enthalten nur diese Kostenstellen.

**costCenterGroupIds** `string[]`

Kostenstellengruppen.

**costCenter2Codes** `string[]`

Kostenträger-Codes.

**costCenter2GroupIds** `string[]`

Kostenträgergruppen.

**displayCurrency** `string`

Drei Buchstaben, für ein konsolidiertes Ergebnis.

## Response

**lines** `object[]` *required*

**key** `string` *required*

`category:<id>` oder `account:<id>`. Diesen Wert brauchst du für die [Buchungen](https://docs.fyvel.io/api/report-bookings.md).

**label** `string` *required*

Konto oder Kategorie, so wie im Bericht.

**values** `object` *required*

Betrag je Periode. Die Schlüssel sind dieselben Perioden wie bei den [Werten](https://docs.fyvel.io/api/report-values.md).

Andere Zeilentypen antworten mit 400 und `ROW_NOT_EXPANDABLE`. Eine unbekannte Zeile antwortet mit 404 und `ROW_NOT_FOUND`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.