Postings: add receipt posting
postings_create_for_receiptAdds postings to existing receipts, splitting each across posting accounts, VAT rates, and cost centres. For booking receipts stored in BuchhaltungsButler.
Instructions
🟡 WRITE · creates data: Creates new records (receipts, transactions, postings, invoices, master data). Not idempotent: calling twice may create duplicates.
add receipt posting
Add postings for a specified receipt. Important: Receipt postings are only available if creditor or debtor posting is activated!
IMPORTANT: If you add postings to a receipt with foreign currency, you have to get that receipt (/receipts/get/id_by_customer) and find the calculated amount before performing this request.
Use to book one or more receipts that already exist in BuchhaltungsButler, splitting each across posting accounts, VAT rates and cost centres.
For a journal entry with no receipt behind it, use postings_create_free.
Takes one or many: pass an array of receipts in receipts. A single record is an array of one.
The per-receipt arrays (postingaccounts, amounts, vats, postingtexts) are positional: index 0 of each describes the same split line, so they must all have the same length. Not idempotent. Reversible with postings_unconfirm_for_receipt while the posting is not fixed.
Endpoint: POST /postings/add-batch/receipts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receipts | Yes | an array of receipt postings, each receipt posting has the same field declaration and validation as the postings/add/receipt endpoint |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| success | Yes | Success boolean | |
| receipts | No |