Update split
Replaces every line of a split, the same as editing a split in the Finta app. The body is the
same as splitting a transaction: send all the lines the split should have, including ones that
don’t change, since lines have no IDs to update one at a time. Their signed amount_cents must
add up exactly to the transaction’s. The old lines are deleted and the new ones saved in one
step, so a refused update changes nothing.
Each line is set only from what it’s sent with. A split transaction has no department of its
own, so a line without department_id has none; send each line’s department again. A line
without merchant takes the transaction’s, and a line without spread isn’t spread. An income or
expense line without accounting_date takes the one the split’s income and expense lines had. If
they had different ones, send each income or expense line’s accounting_date, or the update is
refused (invalid_request).
Only a split by category can be updated; department splits and payroll splits are changed in the Finta app. Requires Transactions: Manage.
Authorizations
API key prefixed with finta_
Path Parameters
Transaction ID with txn_ prefix.
^txn_Body
The lines, which the response lists in this order. Their signed amount_cents must add up exactly to the transaction's.
2 - 100 elementsResponse
The split's new lines, in the order they were sent: the same list GET /transactions/splits returns for this transaction.