Transactions: assign receipt to transaction
transactions_assign_receiptsAssign receipts to bank transactions to match payments with proof documents. Link one or many receipt-transaction pairs in a single request.
Instructions
๐ก WRITE ยท links/unlinks records: Creates or removes an assignment between records (e.g. receipt โ transaction). Reversible.
assign receipt to transaction
Assign a receipt to a transaction.
Use to match receipts to the bank transactions that paid them, one pair or many at once.
To attach a receipt to a posting rather than a bank transaction, use postings_assign_receipt_to_free.
Takes one or many: pass an array of transactions to receipts in transactions_to_receipts. A single record is an array of one.
Reversible with transactions_unassign_receipt. Creating the link does not book anything: use postings_create_for_transaction to post the transaction.
Endpoint: POST /transactions/assign-batch/receipt
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transactions_to_receipts | Yes | list of receipts to transactions maximum of 50 element are allowed |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| errors | No | ||
| success | Yes | is the request successful or faulty | |
| transactions_to_receipts | No |