Create Expense
create_expenseRecord a tax-classified business expense with supplier details and line items; provide subtotals and tax keys to auto-calculate tax amounts and assign a numbering series.
Instructions
Record a business expense with tax classification. Provide subtotal and tax key — tax amount is auto-calculated. Requires serialCode (e.g. 'GASTO') for numbering series.
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": {
"identifier": "<identifier>",
"issuedDate": "<issuedDate>",
"lines": "<lines>",
"contact": "<contact>"
},
"name": "create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Expense line items — taxAmount and totalAmount are auto-calculated | |
| contact | Yes | Supplier contact | |
| serieId | No | Serie UUID. Takes priority over serialCode if both provided. | |
| comments | No | Notes | |
| currency | No | Currency (default: EUR) | EUR |
| identifier | Yes | Supplier invoice number / expense identifier | |
| issuedDate | Yes | Issue date YYYY-MM-DD | |
| serialCode | No | Serial code for expense numbering series (e.g. 'GASTO'). Either serialCode or serieId is required. |