BizKitHub
getLedgerVerejné API v1

/api/v1/ledger/saldo

Saldokonto: open receivables and payables from the journal as of a date (default today), per document, with aging.

  • amount is positive for what is owed (to the entity for receivables, by the entity for payables), in the base currency.
  • bucket: not_due, d1_30, d31_60, d61_90, d91_180, d181_365, over_365, unassigned (journal lines without a document).
  • accounts sums every open-item account with the same buckets.
ledgergetApiV1LedgerSaldo

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
asOfstringVoliteľné
Príklad2026-03-31
side"receivable" | "payable"Voliteľné
accountCodestringVoliteľné
Dĺžka: 0–16
Príklad311
pagestring | numberVoliteľné
Rozsah: 1–∞
limitstring | numberVoliteľné
Rozsah: 1–500

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
asOfstringPovinné
pagenumberPovinné
limitnumberPovinné
totalnumberPovinné
accountsobject[]Povinné
Každá položka poľa:
codestringPovinné
namestringPovinné
sidestringPovinné
amountnumberPovinné

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

Príklad12100.5
countnumberPovinné
bucketsobjectPovinné
itemsobject[]Povinné
Každá položka poľa:
documentIdstring | nullPovinné
documentNostring | nullPovinné
dueDatestring | nullPovinné
partnerNamestring | nullPovinné
accountCodestringPovinné
sidestringPovinné
amountnumberPovinné

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

Príklad12100.5
daysOverduenumber | nullPovinné
bucketstringPovinné

Ukážka odpovede

application/json
{
  "asOf": "example_asOf",
  "page": 0,
  "limit": 0,
  "total": 0,
  "accounts": [
    {
      "code": "example_code",
      "name": "example_name",
      "side": "example_side",
      "amount": 12100.5,
      "count": 0,
      "buckets": {}
    }
  ],
  "items": [
    {
      "accountCode": "example_accountCode",
      "side": "example_side",
      "amount": 12100.5,
      "bucket": "example_bucket"
    }
  ]
}

Ukážka požiadavky

GET /api/v1/ledger/saldo

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/saldo?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&asOf=2026-03-31&accountCode=311" \
  -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ľúč