Delete an expense
expenses_deleteDelete one expense of a company. Deleted, it is written with no record, the expense being gone; one whose answer never came is written where the expense reads gone and not_written where it is still there. A Xero organisation is refused before Xero is asked: Xero records spending as a bill, made with bills_create, or a spend money entry, made with bank_transactions_code. A QuickBooks company is refused before Intuit is asked: QuickBooks records spending as an expense from a bank or card account, made with bank_transactions_code, or a bill, made with bills_create. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each write is sent to the company's program once - to FreeAgent. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in Zoho Books' names on a FreeAgent company, or in FreeAgent's on a Zoho Books organisation, is not_written with reason refused, nothing sent. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why.
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": {
"company": "<company>",
"expense": "<expense>"
},
"name": "expenses_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | The id companies_list gives the company. | |
| expense | Yes | The expense's id, as expenses_list answers it. |