BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/cash-book
getLedgerPubliczne API v1

/api/v1/ledger/cash-book

Cash book of one cash register (cash money account) for a period: opening and closing balance from the ledger, receipts (PPD) and expenses (VPD) with a running balance, and other entries on the cash account.

ledgergetApiV1LedgerCash-book

Parametry

5 w query

Parametry query

· 5
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
registerIdstringWymagane

Cash money account external id.

Długość: 16–24
Przykładexample_registerId
fromstringOpcjonalne
Przykład2026-11-01
tostringOpcjonalne
Przykład2026-11-30

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
registerobjectWymagane
idstringWymagane
namestringWymagane
currencystringWymagane
accountCodestringWymagane
Przykład211
isActivebooleanWymagane
fromstringWymagane
tostringWymagane
openingnumberWymagane
receiptsnumberWymagane
expensesnumberWymagane
otherMovementsnumberWymagane
closingnumberWymagane
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane
documentNostring | nullWymagane
direction"in" | "out"Wymagane
purposestringWymagane
Przykładsale
status"draft" | "posted" | "reversed"Wymagane
issueDatestringWymagane
partnerNamestring | nullWymagane
descriptionstringWymagane
totalnumberWymagane
balancenumberWymagane

Przykład odpowiedzi

application/json
{
  "register": {
    "id": "example_id",
    "name": "example_name",
    "currency": "example_currency",
    "accountCode": "211",
    "isActive": false
  },
  "from": "example_from",
  "to": "example_to",
  "opening": 0,
  "receipts": 0,
  "expenses": 0,
  "otherMovements": 0,
  "closing": 0,
  "items": [
    {
      "id": "example_id",
      "purpose": "sale",
      "issueDate": "example_issueDate",
      "description": "example_description",
      "total": 0,
      "balance": 0
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/cash-book

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/cash-book?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&registerId=example_registerId&from=2026-11-01&to=2026-11-30" \
  -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