BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/inventory
getLedgerPubliczne API v1

/api/v1/ledger/inventory

Inventory of balance-sheet accounts for one fiscal period (§ 29–30 of the Czech Accounting Act): book balance at the balance-sheet date, actual (counted) balance, difference and how it was resolved.

ledgergetApiV1LedgerInventory

Parametry

3 w query

Parametry query

· 3
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
periodIdstringWymagane

Fiscal period external id.

Długość: 16–24
Przykładexample_periodId

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
periodobjectWymagane
idstringWymagane
fiscalYearnumberWymagane
startsOnstringWymagane
endsOnstringWymagane
status"not_started" | "in_progress" | "completed"Wymagane
asOfstring | nullWymagane
responsiblePersonstring | nullWymagane
inventoryDatestring | nullWymagane
protocolRefstring | nullWymagane
itemsobject[]Wymagane
Każdy element tablicy:
accountCodestringWymagane
Przykład211
accountNamestringWymagane
method"physical" | "document"Wymagane
booknumberWymagane
countednumber | nullWymagane
differencenumberWymagane
resolution"open" | "resolved" | "posted"Wymagane
adjustmentEntryNostring | nullWymagane

Przykład odpowiedzi

application/json
{
  "period": {
    "id": "example_id",
    "fiscalYear": 0,
    "startsOn": "example_startsOn",
    "endsOn": "example_endsOn"
  },
  "items": [
    {
      "accountCode": "211",
      "accountName": "example_accountName",
      "book": 0,
      "difference": 0
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/inventory

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/inventory?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&periodId=example_periodId" \
  -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