Match invoice transaction
match_invoice_transactionFind and link the bank transaction that paid an invoice. Run after book_invoice and BEFORE sevdesk_push_documents so the local record is complete before it goes to sevDesk. Ranks unmatched transactions by amount closeness, date proximity to the invoice date, and payee/vendor word overlap. Without transaction_id it only returns ranked candidates; pass transaction_id to link a specific one, or confirm:true to accept the top candidate when it is clearly ahead of the rest.
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": {
"document_id": "<document_id>"
},
"name": "match_invoice_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Link the top candidate automatically, but only when it scores well AND no other candidate is close (default false) | |
| days_window | No | Days either side of the invoice date to consider (default 60) | |
| document_id | Yes | The booked invoice | |
| transaction_id | No | Link this specific transaction. Omit to just see candidates. | |
| amount_tolerance | No | Absolute amount tolerance, e.g. 0.50 to allow for FX/bank rounding (default 1.00) |