BizKitHub
DokumentationAPI-ExplorerLedger/api/v1/ledger/trial-balance
getLedgerÖffentliche API v1

/api/v1/ledger/trial-balance

Trial balance (obratová předvaha) for one fiscal period.

Range

  • fiscalYear picks the period; default is the newest open period.
  • from / to narrow the range and are clamped to the period bounds.

Semantics

  • Opening (PS) = opening entry + movements of the period before from; balance accounts carry forward when no opening entry exists.
  • Opening and closing balances are netted to one side; turnovers are gross.
  • analytics=false rolls analytic accounts into their synthetic account.
  • afterClosing=true includes closing entries.
  • checks are the control equations (Σ MD = Σ Dal, trial balance turnover = journal turnover).
ledgergetApiV1LedgerTrial-balance

Parameter

7 in der Query

Query-Parameter

· 7
apiKeystringPflicht

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPflicht

Accounting entity id (from /ledger/entity-list).

Länge: 16–24
BeispielKq3vTnY8mZ0aB1cD2eF3gH4i
fiscalYearstring | numberOptional
Bereich: 1900–2999
fromstringOptional
Beispiel2026-03-31
tostringOptional
Beispiel2026-03-31
analyticsboolean | stringOptional
Standard: true
Beispieltrue
afterClosingboolean | stringOptional
Standard: false
Beispielfalse

Antwortschema

1 dokumentierter Statuscode

200Erfolg
fiscalYearnumberPflicht
fromstringPflicht
tostringPflicht
rowsobject[]Pflicht
Jedes Array-Element:
codestringPflicht
namestringPflicht
typestringPflicht
openingDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
openingCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
turnoverDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
turnoverCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
closingDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
closingCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
totalsobjectPflicht
openingDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
openingCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
turnoverDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
turnoverCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
closingDebitnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
closingCreditnumberPflicht

Amount in the base currency of the accounting entity (2 decimals).

Beispiel12100.5
checksobjectPflicht
turnoverBalancedbooleanPflicht
openingBalancedbooleanPflicht
closingBalancedbooleanPflicht
matchesJournalbooleanPflicht

Antwortbeispiel

application/json
{
  "fiscalYear": 0,
  "from": "example_from",
  "to": "example_to",
  "rows": [
    {
      "code": "example_code",
      "name": "example_name",
      "type": "example_type",
      "openingDebit": 12100.5,
      "openingCredit": 12100.5,
      "turnoverDebit": 12100.5,
      "turnoverCredit": 12100.5,
      "closingDebit": 12100.5,
      "closingCredit": 12100.5
    }
  ],
  "totals": {
    "openingDebit": 12100.5,
    "openingCredit": 12100.5,
    "turnoverDebit": 12100.5,
    "turnoverCredit": 12100.5,
    "closingDebit": 12100.5,
    "closingCredit": 12100.5
  },
  "checks": {
    "turnoverBalanced": false,
    "openingBalanced": false,
    "closingBalanced": false,
    "matchesJournal": false
  }
}

Anfragebeispiel

GET /api/v1/ledger/trial-balance

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/trial-balance?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&from=2026-03-31&to=2026-03-31&analytics=true&afterClosing=false" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten