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

/api/v1/ledger/dimension-list

Dimensions of the accounting entity (cost centre, project, branch, …) with their values. Journal lines carry at most one value per dimension; see dimensions in journal-detail.

ledgergetApiV1LedgerDimension-list

Parametry

2 w query

Parametry query

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

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane
codestringWymagane
PrzykładSTR
namestringWymagane
PrzykładStředisko
kindstringWymagane
Przykładcost_center
isActivebooleanWymagane
valuesobject[]Wymagane
Każdy element tablicy:
idstringWymagane
codestringWymagane
PrzykładPRAHA
namestringWymagane
PrzykładPobočka Praha
parentIdstring | nullWymagane
isActivebooleanWymagane

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "example_id",
      "code": "STR",
      "name": "Středisko",
      "kind": "cost_center",
      "isActive": false,
      "values": [
        {
          "id": "example_id",
          "code": "PRAHA",
          "name": "Pobočka Praha",
          "isActive": false
        }
      ]
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/dimension-list

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