BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/vat-ledger
getLedgerPubliczne API v1

/api/v1/ledger/vat-ledger

VAT ledger (evidence pro DPH, § 100 ZDPH) of one month.

  • basis=tax_point (default) groups by the tax point; claimed groups received VAT by the period it may be claimed in.
  • byFormRow sums per DPH return row, byKhSection per control statement section (A4/A5 and B2/B3 split at 10 000 CZK).
ledgergetApiV1LedgerVat-ledger

Parametry

5 w query

Parametry query

· 5
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
periodstringWymagane
Przykład2027-01
direction"issued" | "received"Opcjonalne
basis"tax_point" | "claimed"Opcjonalne

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
periodstringWymagane
basisstringWymagane
totalsobjectWymagane
outputBasenumberWymagane

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

Przykład12100.5
outputVatnumberWymagane

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

Przykład12100.5
inputBasenumberWymagane

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

Przykład12100.5
inputVatnumberWymagane

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

Przykład12100.5
balancenumberWymagane

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

Przykład12100.5
byFormRowobject[]Wymagane
Każdy element tablicy:
keystringWymagane
directionstringWymagane
basenumberWymagane

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

Przykład12100.5
vatnumberWymagane

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

Przykład12100.5
countnumberWymagane
byKhSectionobject[]Wymagane
Każdy element tablicy:
keystringWymagane
directionstringWymagane
basenumberWymagane

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

Przykład12100.5
vatnumberWymagane

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

Przykład12100.5
countnumberWymagane
entriesobject[]Wymagane
Każdy element tablicy:
directionstringWymagane
taxPointDatestringWymagane
claimedPeriodstring | nullWymagane
classificationCodestring | nullWymagane
dphFormRowstring | nullWymagane
khSectionstring | nullWymagane
vatRatenumberWymagane
partnerVatIdstring | nullWymagane
documentNostring | nullWymagane
documentIdstringWymagane
basenumberWymagane

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

Przykład12100.5
vatnumberWymagane

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

Przykład12100.5

Przykład odpowiedzi

application/json
{
  "period": "example_period",
  "basis": "example_basis",
  "totals": {
    "outputBase": 12100.5,
    "outputVat": 12100.5,
    "inputBase": 12100.5,
    "inputVat": 12100.5,
    "balance": 12100.5
  },
  "byFormRow": [
    {
      "key": "example_key",
      "direction": "example_direction",
      "base": 12100.5,
      "vat": 12100.5,
      "count": 0
    }
  ],
  "byKhSection": [
    {
      "key": "example_key",
      "direction": "example_direction",
      "base": 12100.5,
      "vat": 12100.5,
      "count": 0
    }
  ],
  "entries": [
    {
      "direction": "example_direction",
      "taxPointDate": "example_taxPointDate",
      "vatRate": 0,
      "documentId": "example_documentId",
      "base": 12100.5,
      "vat": 12100.5
    }
  ]
}

Przykład żądania

GET /api/v1/ledger/vat-ledger

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