journalEntries
Módulo Finance · 5 operaciones
List journal entry rows
GET/journal-entries
A journal entry. The preparer cannot post it. Returns a cursor page of journal entry rows the caller may see. The default order is `created_at` ascending. Supports sparse fieldsets and the filter grammar.
Create a journal entry
POST/journal-entries
A journal entry. The preparer cannot post it. Creates a journal entry. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.
Get a journal entry
GET/journal-entries/{id}
A journal entry. The preparer cannot post it. Returns one journal entry with its `ETag`. A journal entry the caller may not see returns 404.
Update a journal entry
PATCH/journal-entries/{id}
A journal entry. The preparer cannot post it. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.
Post a journal entry
POST/journal-entries/{id}/post
Posts the entry to the ledger. The preparer cannot post it; a closed period refuses it. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.