BizKitHub
DokumentáciaPrieskumník APILedger/api/v1/ledger/trial-balance
getLedgerVerejné 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

Parametre

7 v query

Parametre v query

· 7
apiKeystringPovinné

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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPovinné

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

Dĺžka: 16–24
PríkladKq3vTnY8mZ0aB1cD2eF3gH4i
fiscalYearstring | numberVoliteľné
Rozsah: 1900–2999
fromstringVoliteľné
Príklad2026-03-31
tostringVoliteľné
Príklad2026-03-31
analyticsboolean | stringVoliteľné
Predvolené: true
Príkladtrue
afterClosingboolean | stringVoliteľné
Predvolené: false
Príkladfalse

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
fiscalYearnumberPovinné
fromstringPovinné
tostringPovinné
rowsobject[]Povinné
Každá položka poľa:
codestringPovinné
namestringPovinné
typestringPovinné
openingDebitnumberPovinné

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

Príklad12100.5
openingCreditnumberPovinné

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

Príklad12100.5
turnoverDebitnumberPovinné

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

Príklad12100.5
turnoverCreditnumberPovinné

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

Príklad12100.5
closingDebitnumberPovinné

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

Príklad12100.5
closingCreditnumberPovinné

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

Príklad12100.5
totalsobjectPovinné
openingDebitnumberPovinné

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

Príklad12100.5
openingCreditnumberPovinné

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

Príklad12100.5
turnoverDebitnumberPovinné

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

Príklad12100.5
turnoverCreditnumberPovinné

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

Príklad12100.5
closingDebitnumberPovinné

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

Príklad12100.5
closingCreditnumberPovinné

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

Príklad12100.5
checksobjectPovinné
turnoverBalancedbooleanPovinné
openingBalancedbooleanPovinné
closingBalancedbooleanPovinné
matchesJournalbooleanPovinné

Ukážka odpovede

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

Ukážka požiadavky

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"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč