BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/journal-template-list
getLedgerPubliczne API v1

/api/v1/ledger/journal-template-list

Journal templates of the accounting entity: the recommended ones (seedKey: payroll, closing.*) and the entity's own. defaultAmount null means the amount is filled in when the template is used.

ledgergetApiV1LedgerJournal-template-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
namestringWymagane
PrzykładMzdy
descriptionstring | nullWymagane
seedKeystring | nullWymagane
Przykładpayroll
linesobject[]Wymagane
Każdy element tablicy:
lineNonumberWymagane
labelstring | nullWymagane
accountCodestringWymagane
Przykład521
side"debit" | "credit"Wymagane
defaultAmountnumber | nullWymagane

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

Przykład12100.5

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "example_id",
      "name": "Mzdy",
      "lines": [
        {
          "lineNo": 0,
          "accountCode": "521"
        }
      ]
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/journal-template-list

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/journal-template-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