BizKitHub
DokumentacePrůzkumník APILedger/api/v1/ledger/trial-balance
getLedgerVeřejné 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 v query

Parametry 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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPovinné

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

Délka: 16–24
PříkladKq3vTnY8mZ0aB1cD2eF3gH4i
fiscalYearstring | numberVolitelné
Rozsah: 1900–2999
fromstringVolitelné
Příklad2026-03-31
tostringVolitelné
Příklad2026-03-31
analyticsboolean | stringVolitelné
Výchozí: true
Příkladtrue
afterClosingboolean | stringVolitelné
Výchozí: false
Příkladfalse

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
fiscalYearnumberPovinné
fromstringPovinné
tostringPovinné
rowsobject[]Povinné
Každá položka pole:
codestringPovinné
namestringPovinné
typestringPovinné
openingDebitnumberPovinné

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

Příklad12100.5
openingCreditnumberPovinné

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

Příklad12100.5
turnoverDebitnumberPovinné

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

Příklad12100.5
turnoverCreditnumberPovinné

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

Příklad12100.5
closingDebitnumberPovinné

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

Příklad12100.5
closingCreditnumberPovinné

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

Příklad12100.5
totalsobjectPovinné
openingDebitnumberPovinné

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

Příklad12100.5
openingCreditnumberPovinné

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

Příklad12100.5
turnoverDebitnumberPovinné

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

Příklad12100.5
turnoverCreditnumberPovinné

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

Příklad12100.5
closingDebitnumberPovinné

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

Příklad12100.5
closingCreditnumberPovinné

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

Příklad12100.5
checksobjectPovinné
turnoverBalancedbooleanPovinné
openingBalancedbooleanPovinné
closingBalancedbooleanPovinné
matchesJournalbooleanPovinné

Ukázka odpovědi

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ázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč