BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/entity-list
getLedgerPubliczne API v1

/api/v1/ledger/entity-list

List accounting entities of the organisation that keep double-entry books.

Use the returned id as entityId in the other ledger endpoints. Entities without activated bookkeeping are omitted.

ledgergetApiV1LedgerEntity-list

Parametry

1 w query

Parametry query

· 1
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

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane
namestringWymagane
baseCurrencystringWymagane
PrzykładCZK
accountingStartsOnstring | nullWymagane
fiscalYearStartMonthnumberWymagane
Zakres: 1–12
lockedUntilstring | nullWymagane

No postings on or before this date.

itemCountnumberWymagane

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "example_id",
      "name": "example_name",
      "baseCurrency": "CZK",
      "fiscalYearStartMonth": 0
    }
  ],
  "itemCount": 0
}

Przykład żądania

GET /api/v1/ledger/entity-list

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/entity-list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -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