Confirm Transaction
confirm_transactionConfirm a bank transaction by providing distribution rows for accounts or invoices. Client ID is auto-resolved from invoice distributions, or set manually when missing.
Instructions
Confirm a bank transaction by providing distribution rows. If the transaction has no clients_id (common for CAMT imports), pass clients_id — otherwise the API rejects with 'buyer or supplier is missing'. For invoice distributions, clients_id is auto-resolved from the invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Transaction ID | |
| clients_id | No | Client ID to set on the transaction before confirming (required when transaction has no clients_id and distribution is against accounts, not invoices) | |
| distributions | No | Array of distribution rows: [{related_table: 'accounts'|'purchase_invoices'|'sale_invoices', related_id, related_sub_id?, amount}]. related_id is always REQUIRED (the account or invoice DB ID). related_sub_id is REQUIRED when related_table='accounts' and the account has dimensions — pass the dimension ID (e.g. 1360 has one sub-account per person); the API rejects dimensioned postings without it. |