Transactions: assign receipt to transaction
transactions_assign_receiptsMatch receipts to the bank transactions they paid by assigning them in batches. Creates reversible links between receipt and transaction records, keeping bookkeeping aligned.
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"transactions_to_receipts": "<transactions_to_receipts>"
},
"name": "transactions_assign_receipts"
}
}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 |