BizKitHub
DokumentacjaEksplorator APILedger/api/v1/ledger/document-posting
getLedgerPubliczne 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

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

Document id from /document-list.

Długość: 24
Przykładexample_id

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
documentStatusstringWymagane
operationTypestringWymagane
Przykładdocument.issued
decisionstringWymagane
Przykładauto
reasonstring | nullWymagane
errorobject | nullWymagane
codestringWymagane
messagestringWymagane
journalEntryobject | nullWymagane
idstringWymagane
entryNostring | nullWymagane
originstringWymagane
isReversedbooleanWymagane
proposalobject | nullWymagane
entryDatestringWymagane
amountnumberWymagane

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

Przykład12100.5
linesobject[]Wymagane
Każdy element tablicy:
accountCodestringWymagane
accountNamestringWymagane
sidestringWymagane
amountnumberWymagane

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

Przykład12100.5
ruleKeystringWymagane

Przykład odpowiedzi

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

Przykład żądania

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"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API