Accounting

Edit a posted manual journal entry

Replaces the date, description, reference, and lines of a posted manual journal entry in place. The entry keeps its number and the before/after values are recorded in the audit log. Send every line of the corrected entry; amounts are integer cents and debits must equal credits. Entries created by invoices, bills, payments, bank-feed postings, or imports are corrected from their source record. Bank register rows created by the entry are updated to match; a reconciled bank line must keep its bank account, amount, and date. Closed fiscal years protect both the original and the new date. Sending the current values again changes nothing. Requires post:entries.

patch/entries/{id}

Request

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

idstring uuid required

Journal entry UUID

Request body

datestring date required
descriptionstring required
referencestring nullable
expectedUpdatedAtstring date-time nullable

Refuse the edit if the entry changed after this updatedAt

Response

Updated entry with lines

changedboolean
entryobject

Changes

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