update_expens
Update an existing expense in Bexio by its ID. Modify payment date, currency, amount, or attachments to keep records accurate.
Instructions
Update Expense
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": {
"id": "<id>",
"paid_on": "<paid_on>",
"currency_code": "<currency_code>",
"amount": "<amount>",
"attachment_ids": "<attachment_ids>"
},
"name": "update_expens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | id of Expense to update | |
| title | No | ||
| amount | Yes | Maximum of 17 digits and maximum of 2 decimal digits. | |
| tax_id | No | ||
| address | No | Address | |
| paid_on | Yes | ||
| document_no | No | ||
| supplier_id | No | ||
| currency_code | Yes | ||
| exchange_rate | No | Required when 'currency_code' is different from 'base_currency_code' (taken from settings). Maximum of 5 digits and maximum of 10 decimal digits. | |
| attachment_ids | Yes | List of file ids that should be attached to this Expense. Cannot have duplicates. | |
| bank_account_id | No | ||
| booking_account_id | No | ||
| base_currency_amount | No | Maximum of 17 digits and maximum of 2 decimal digits. |