BizKitHub
DokumentacePrůzkumník APILedger/api/v1/ledger/journal-detail
getLedgerVeřejné 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 v query

Parametry v query

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

PříkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPovinné

Accounting entity id (from /ledger/entity-list).

Délka: 16–24
PříkladKq3vTnY8mZ0aB1cD2eF3gH4i
idstringPovinné
Délka: 24
Příkladexample_id

Schéma odpovědi

1 zdokumentovaný stavový kód

200Úspěch
idstringPovinné

Journal entry id.

entryNostring | nullPovinné
entryDatestringPovinné

Accounting date (YYYY-MM-DD).

documentDatestring | nullPovinné
documentNostring | nullPovinné
descriptionstring | nullPovinné
amountnumberPovinné

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

Příklad12100.5
sourceTypestringPovinné

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

originstringPovinné

manual, document, opening, closing, adjustment, …

fiscalYearnumberPovinné
reversesEntryIdstring | nullPovinné
reversedByEntryIdstring | nullPovinné
linesobject[]Povinné
Každá položka pole:
lineNonumberPovinné
accountCodestringPovinné
accountNamestringPovinné
side"debit" | "credit"Povinné
amountnumberPovinné

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

Příklad12100.5
isRedStornobooleanPovinné
partnerIdstring | nullPovinné

Contact id of the counterparty.

descriptionstring | nullPovinné
dimensionsobject[]Povinné

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

Každá položka pole:
typeIdstringPovinné
typeNamestringPovinné
PříkladStředisko
valueIdstringPovinné
valueCodestringPovinné
PříkladPRAHA
valueNamestringPovinné

Ukázka odpovědi

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

Ukázka požadavku

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"

Potřebujete API klíč?

Všechny veřejné endpointy BizKitHub API se ověřují API klíčem.

Získat API klíč