Add an invoice or bill
add_ledger_entryUse this when the user wants to record an invoice, bill or receipt in their Xenition ledger — vendor, amount, due date, optionally already paid. Returns the ledger's invoices. Do not use to pay, send or email an invoice; Xenition has no payment or messaging channel.
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>",
"amount": "<amount>"
},
"name": "add_ledger_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | invoice | receipt | credit_note (default invoice) | |
| amount | Yes | the invoice total | |
| vendor | Yes | the vendor / who the invoice is from | |
| dueDate | No | YYYY-MM-DD | |
| currency | No | currency code, default USD | |
| markPaid | No | also mark it paid now | |
| invoiceNumber | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| empty | No | ||
| items | Yes | ||
| title | Yes |