Skip to main content
PATCH
Update journal entry batch

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Path Parameters

id
string
required

Journal entry batch ID, with jmb_ prefix, or jeu_ for a CSV import.

Pattern: ^(jmb|jeu)_

Body

application/json

Send memo, entries or both.

base_revision
integer

The batch's revision when you read it. If the batch was edited after that, the edit returns 409 revision_conflict. Left out, the edit applies to the batch as it is now.

Required range: x >= 0
memo
string

What the batch is for and why. Left out, the memo stays the same.

Required string length: 1 - 1000
reason
string

Why the caller is making this edit, saved with who made it and when. The batch's reason still shows why it was created.

Maximum string length: 500
entries
object[]

Every entry the batch should have. Left out, the entries stay the same.

Required array length: 2 - 100 elements

Response

The edited batch and its entries

id
string
required

Unique identifier with jmb_ prefix, or jeu_ for a CSV journal entry import.

Example:

"jmb_a1b2c3d4e5f6g7"

object
enum<string>
required
Available options:
journal_entry_batch
memo
string | null
required

What the batch is for. For a CSV import, the uploaded file's name. Null for batches made in Finta before memos existed.

Example:

"Accrue the last week of October payroll, paid November 3."

source
enum<string>
required

The posting channel, or csv_import for a CSV journal entry import. Finta Agent posts through mcp and is identified separately by reason.source. Any batch can be deleted, and any manual batch edited, through the API, whatever its source.

Available options:
ui,
api,
mcp,
csv_import
entry_count
integer
required
Example:

2

total_debit_cents
integer
required

Total of the batch's debits, in cents.

Example:

1800000

total_credit_cents
integer
required

Total of the batch's credits, in cents.

Example:

1800000

start_date
string<date> | null
required

The earliest entry date. Null for a batch without entries.

Example:

"2026-10-31"

end_date
string<date> | null
required

The latest entry date. Null for a batch without entries.

Example:

"2026-10-31"

created
integer
required

When the batch was created, as a Unix timestamp.

Example:

1793404800

revision
integer | null
required

How many times the batch has been edited, starting at 0. Send it as base_revision on an edit so it's refused if the batch changed since. Null for a CSV journal entry import, which can't be edited.

Example:

0

entries
object[]
required

The batch's journal entries, in the order they were made.

reason
object

Creation attribution for this company. The list omits the object when there is no recorded attribution.

supporting_documents
object[]

References to linked supporting documents. The batch list omits this field when there are none.