BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/trial-balance
getLedgerPubliczne 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

Parametry

7 w query

Parametry query

· 7
apiKeystringWymagane

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

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringWymagane

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

Długość: 16–24
PrzykładKq3vTnY8mZ0aB1cD2eF3gH4i
fiscalYearstring | numberOpcjonalne
Zakres: 1900–2999
fromstringOpcjonalne
Przykład2026-03-31
tostringOpcjonalne
Przykład2026-03-31
analyticsboolean | stringOpcjonalne
Domyślnie: true
Przykładtrue
afterClosingboolean | stringOpcjonalne
Domyślnie: false
Przykładfalse

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
fiscalYearnumberWymagane
fromstringWymagane
tostringWymagane
rowsobject[]Wymagane
Każdy element tablicy:
codestringWymagane
namestringWymagane
typestringWymagane
openingDebitnumberWymagane

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

Przykład12100.5
openingCreditnumberWymagane

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

Przykład12100.5
turnoverDebitnumberWymagane

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

Przykład12100.5
turnoverCreditnumberWymagane

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

Przykład12100.5
closingDebitnumberWymagane

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

Przykład12100.5
closingCreditnumberWymagane

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

Przykład12100.5
totalsobjectWymagane
openingDebitnumberWymagane

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

Przykład12100.5
openingCreditnumberWymagane

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

Przykład12100.5
turnoverDebitnumberWymagane

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

Przykład12100.5
turnoverCreditnumberWymagane

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

Przykład12100.5
closingDebitnumberWymagane

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

Przykład12100.5
closingCreditnumberWymagane

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

Przykład12100.5
checksobjectWymagane
turnoverBalancedbooleanWymagane
openingBalancedbooleanWymagane
closingBalancedbooleanWymagane
matchesJournalbooleanWymagane

Przykład odpowiedzi

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
  }
}

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API