BizKitHub
DokumentáciaPrieskumník APILedger/api/v1/ledger/document-posting
getLedgerVerejné API v1

/api/v1/ledger/document-posting

Posting of one accounting document: the journal entry it would get now (accounts resolved exactly as posting would), what the automation would decide (auto, suggest, needs_input, blocked, skip) with a reason code, and the live journal entry once posted. Read only.

ledgergetApiV1LedgerDocument-posting

Parametre

3 v query

Parametre 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

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
entityIdstringPovinné

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

Dĺžka: 16–24
PríkladKq3vTnY8mZ0aB1cD2eF3gH4i
idstringPovinné

Document id from /document-list.

Dĺžka: 24
Príkladexample_id

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
documentStatusstringPovinné
operationTypestringPovinné
Príkladdocument.issued
decisionstringPovinné
Príkladauto
reasonstring | nullPovinné
errorobject | nullPovinné
codestringPovinné
messagestringPovinné
journalEntryobject | nullPovinné
idstringPovinné
entryNostring | nullPovinné
originstringPovinné
isReversedbooleanPovinné
proposalobject | nullPovinné
entryDatestringPovinné
amountnumberPovinné

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

Príklad12100.5
linesobject[]Povinné
Každá položka poľa:
accountCodestringPovinné
accountNamestringPovinné
sidestringPovinné
amountnumberPovinné

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

Príklad12100.5
ruleKeystringPovinné

Ukážka odpovede

application/json
{
  "documentStatus": "example_documentStatus",
  "operationType": "document.issued",
  "decision": "auto"
}

Ukážka požiadavky

GET /api/v1/ledger/document-posting

get
curl -X GET "https://api.bizkithub.com/api/v1/ledger/document-posting?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&entityId=Kq3vTnY8mZ0aB1cD2eF3gH4i&id=example_id" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč