Partner API

Post a journal entry

post/companies/{companyId}/journal-entries

Request

  • Base URL: https://ledgerhq.pro/api/v1
  • URL: https://ledgerhq.pro/api/v1/companies/{companyId}/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

Path parameters

companyIdstring uuid required

LedgerHQ company UUID

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.