BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/journal-detail
getLedgerPubliczne API v1

/api/v1/ledger/journal-detail

One posted journal entry with its lines.

Each line has a side (debit = MD, credit = Dal) and a positive amount. isRedStorno lines count negatively on their side (červené storno).

ledgergetApiV1LedgerJournal-detail

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
idstringWymagane
Długość: 24
Przykładexample_id

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
idstringWymagane

Journal entry id.

entryNostring | nullWymagane
entryDatestringWymagane

Accounting date (YYYY-MM-DD).

documentDatestring | nullWymagane
documentNostring | nullWymagane
descriptionstring | nullWymagane
amountnumberWymagane

Amount in the base currency of the accounting entity (2 decimals).

Przykład12100.5
sourceTypestringWymagane

Origin document type (manual, invoice, bank, …).

originstringWymagane

manual, document, opening, closing, adjustment, …

fiscalYearnumberWymagane
reversesEntryIdstring | nullWymagane
reversedByEntryIdstring | nullWymagane
linesobject[]Wymagane
Każdy element tablicy:
lineNonumberWymagane
accountCodestringWymagane
accountNamestringWymagane
side"debit" | "credit"Wymagane
amountnumberWymagane

Amount in the base currency of the accounting entity (2 decimals).

Przykład12100.5
isRedStornobooleanWymagane
partnerIdstring | nullWymagane

Contact id of the counterparty.

descriptionstring | nullWymagane
dimensionsobject[]Wymagane

Dimension values of the line (cost centre, project, …), one per dimension type.

Każdy element tablicy:
typeIdstringWymagane
typeNamestringWymagane
PrzykładStředisko
valueIdstringWymagane
valueCodestringWymagane
PrzykładPRAHA
valueNamestringWymagane

Przykład odpowiedzi

application/json
{
  "id": "example_id",
  "entryDate": "example_entryDate",
  "amount": 12100.5,
  "sourceType": "example_sourceType",
  "origin": "example_origin",
  "fiscalYear": 0,
  "lines": [
    {
      "lineNo": 0,
      "accountCode": "example_accountCode",
      "accountName": "example_accountName",
      "amount": 12100.5,
      "isRedStorno": false,
      "dimensions": [
        {
          "typeId": "example_typeId",
          "typeName": "Středisko",
          "valueId": "example_valueId",
          "valueCode": "PRAHA",
          "valueName": "example_valueName"
        }
      ]
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/journal-detail

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