Skip to navigation

Add a row to a statement's staging area

View as Markdown

Manual escape hatch for a row the AI extraction dropped — the statement’s balance_check never reconciles and it cannot be imported until the missing row exists. Mirrors what the web review screen’s “add row” does by hand.

The new row is created pending, at row_index one past the current highest row on the statement, so it never collides with a later re-extraction (which offsets from the maximum too).

Requires manage:bank_accounts — the same scope import requires, because a staged row becomes accounting data the moment it is imported.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlongRequired>=1
bank_statement_idlong or stringRequired

Bank statement ID. Either the numeric id or the public_id (bst_…).

Headers

Idempotency-KeystringOptional<=255 characters

Client-supplied unique key (recommended: UUID v4) for safe retries. Within 24 hours, repeating the same key with the same request (method, path, query, body) replays the original response instead of re-executing the action — once the action has run, a 5xx included; a request stopped before it ran is not stored. Reusing a key with a different request returns 422 idempotency_key_conflict (IETF draft §2.7).

Request

This endpoint expects an object.
booking_datedate or nullOptional
value_datedate or nullOptional
amountstring or nullOptional
currencystring or nullOptional
directionenum or nullOptional
Allowed values:
counterparty_namestring or nullOptional
counterparty_ibanstring or nullOptional
remittance_infostring or nullOptional
variable_symbolstring or nullOptional
constant_symbolstring or nullOptional
specific_symbolstring or nullOptional

Response

Created
idlong
row_indexinteger
statusenum

informational is a zero-amount line the statement prints for information (a fee summary such as “BANKFEE 0.00”). It is never imported; correcting its amount to a non-zero value turns it back into pending.

booking_datedate or nullOptional
value_datedate or nullOptional
amountstring or nullOptional
currencystring or nullOptional

ISO-4217 currency code, always uppercase (EUR).

directionenum or nullOptional
Allowed values:
counterparty_namestring or nullOptional
counterparty_ibanstring or nullOptional
remittance_infostring or nullOptional
variable_symbolstring or nullOptional
constant_symbolstring or nullOptional
specific_symbolstring or nullOptional
import_errorstring or nullOptional
transaction_idlong or nullOptional

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error