Postings: add transaction posting
postings_create_for_transactionBooks bank transactions by creating postings for each, splitting amounts across posting accounts, VAT rates, and cost centers. Use for transactions that have an underlying bank movement.
Instructions
🟡 WRITE · creates data: Creates new records (receipts, transactions, postings, invoices, master data). Not idempotent: calling twice may create duplicates.
add transaction posting
Add postings for a specified transaction.
Use to book one or more bank transactions, splitting each across posting accounts, VAT rates and cost centres.
For a journal entry with no bank transaction behind it, use postings_create_free.
Takes one or many: pass an array of transactions in transactions. A single record is an array of one.
The per-transaction arrays are positional and must all have the same length. Not idempotent. Reversible with postings_unconfirm_for_transaction while the posting is not fixed.
Endpoint: POST /postings/add-batch/transactions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transactions | Yes | an array of transaction postings, each transaction posting has the same field declaration and validation as the postings/add/transaction endpoint |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| success | Yes | Success boolean | |
| transactions | No |