Posting

Preview a journal entry without writing

Validates a journal entry payload, projects affected account balances and total equity/P&L effects, and returns a short-lived reviewToken bound to the exact lines. Writes nothing.

post/journal-entries/preview

Request

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

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

Valid preview with reviewToken

Changes

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