Posting

Create a journal entry in one call

QBO-style journal entry endpoint for adjustments and corrections. Defaults to posted; use ordinary purchase, deposit, transfer, or bill-payment endpoints for normal register activity. Optional reviewToken must match a prior POST /journal-entries/preview.

post/journal-entries

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/journal-entries
  • Auth: one of:
    • HTTP bearer and API key in header x-organization-id
    • HTTP bearer and API key in header x-organization-id

Headers

Idempotency-Keystring required

Stable retry key for this posting request within the LedgerHQ organization.

Request body

datestring date required
descriptionstring required
referencestring nullable
status'draft' | 'posted'
basisTreatment'both' | 'accrual_only'

Whether this manual entry affects both bases or accrual only

reviewTokenstring

Optional short-lived token from POST /journal-entries/preview; when set the posted payload must match the preview

metadataobject

Response

Idempotent replay

Changes

No recorded changes to this operation across all 5 revisions of this API.