Mark an invoice paid
mark_paidMark a specific invoice in the user's own Xenition ledger as paid. This changes financial records, so it is a confirmed, two-step action: first call it WITHOUT confirmed to preview exactly which invoice would change, relay that to the user, and only call again with confirmed:true after they explicitly agree. When the user asks to mark ALL/EVERY/multiple unpaid invoices paid, list the affected invoices and get the user's confirmation before marking any. Returns the ledger's invoices.
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": {
"vendor": "<vendor>"
},
"name": "mark_paid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | date paid YYYY-MM-DD (default today) | |
| amount | No | amount paid (default the invoice total) | |
| vendor | Yes | the invoice's vendor (matched) | |
| confirmed | No | set true ONLY after the user has explicitly confirmed this invoice should be marked paid; leave false/absent on the first attempt so they can review and confirm | |
| invoiceNumber | No | the invoice number, if you know it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| empty | No | ||
| items | Yes | ||
| title | Yes |