BizKitHub
getLedgerPubliczne 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

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
asOfstringOpcjonalne
Przykład2026-03-31
side"receivable" | "payable"Opcjonalne
accountCodestringOpcjonalne
Długość: 0–16
Przykład311
pagestring | numberOpcjonalne
Zakres: 1–∞
limitstring | numberOpcjonalne
Zakres: 1–500

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
asOfstringWymagane
pagenumberWymagane
limitnumberWymagane
totalnumberWymagane
accountsobject[]Wymagane
Każdy element tablicy:
codestringWymagane
namestringWymagane
sidestringWymagane
amountnumberWymagane

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

Przykład12100.5
countnumberWymagane
bucketsobjectWymagane
itemsobject[]Wymagane
Każdy element tablicy:
documentIdstring | nullWymagane
documentNostring | nullWymagane
dueDatestring | nullWymagane
partnerNamestring | nullWymagane
accountCodestringWymagane
sidestringWymagane
amountnumberWymagane

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

Przykład12100.5
daysOverduenumber | nullWymagane
bucketstringWymagane

Przykład odpowiedzi

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

Przykład żądania

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"

Potrzebujesz klucza API?

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

Uzyskaj klucz API