xero_add_line_item_to_bill
Add an expense line item to a draft bill in Xero accounting software by specifying description, amount, and account code.
Instructions
Add a line item (expense) to an existing DRAFT bill
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": {
"invoiceId": "<invoiceId>",
"description": "<description>",
"amount": "<amount>",
"accountCode": "<accountCode>"
},
"name": "xero_add_line_item_to_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The Xero invoice/bill ID | |
| description | Yes | Description of the expense | |
| amount | Yes | Amount of the expense | |
| accountCode | Yes | Xero account code (e.g., '678' for software) | |
| reference | No | Reference to append (e.g., invoice number) |