gl

Replace Gl Journal Entry

Correct a draft entry in place — full-object replace (ZET-127).

Validation runs at post, so a rejected posting leaves a draft behind. Until now the router exposed no way to fix it (or to discard it), so the only recourse was to create a fresh entry and abandon the old one. 409 for anything but a draft, or a closed period.

Full-object semantics apply to auto_reverse_date too (ZCT-527): pass it to arm the draft, omit it (or send null) to disarm one.

put/companies/{company_id}/gl/journal-entries/{entry_id}

Request

  • Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
  • URL: https://app.zeno-works.ch/companies/{company_id}/gl/journal-entries/{entry_id}
  • Auth: none declared

Path parameters

company_idstring required
entry_idstring required

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

period_idstring required
posting_datestring date required
currencystring nullable
entry_type'manual' | 'invoice' | 'payment' | 'bank' | 'vat' | 'payroll' | 'accrual' | 'deferral' | 'depreciation' | 'inventory' | 'closing' | 'adjustment' | 'reversal'
descriptionstring nullable
auto_reverse_datestring date nullable

Response

Successful Response

idstring required
company_idstring required
entry_nointeger nullable
period_idstring required
posting_datestring date required
statusstring required
entry_typestring required
originstring required
descriptionstring nullable
debit_total_basestring required
credit_total_basestring required
line_countinteger required
version_nointeger required
reversal_of_entry_idstring nullable
reversed_by_entry_idstring nullable
auto_reverse_datestring date nullable
coding_guessedboolean
untagged_subledger_controlboolean
source_ref_typestring nullable
source_ref_idstring nullable
source_actionstring nullable
created_atstring date-time required
posted_bystring nullable
created_bystring nullable
posted_atstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.