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

Parametre

5 v query

Parametre v query

· 5
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
registerIdstringPovinné

Cash money account external id.

Dĺžka: 16–24
Príkladexample_registerId
fromstringVoliteľné
Príklad2026-11-01
tostringVoliteľné
Príklad2026-11-30

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
registerobjectPovinné
idstringPovinné
namestringPovinné
currencystringPovinné
accountCodestringPovinné
Príklad211
isActivebooleanPovinné
fromstringPovinné
tostringPovinné
openingnumberPovinné
receiptsnumberPovinné
expensesnumberPovinné
otherMovementsnumberPovinné
closingnumberPovinné
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné
documentNostring | nullPovinné
direction"in" | "out"Povinné
purposestringPovinné
Príkladsale
status"draft" | "posted" | "reversed"Povinné
issueDatestringPovinné
partnerNamestring | nullPovinné
descriptionstringPovinné
totalnumberPovinné
balancenumberPovinné

Ukážka odpovede

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

Ukážka požiadavky

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"

Potrebujete API kľúč?

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

Získať API kľúč