freeagent_create_expense
Create a new FreeAgent expense with owner, category, date, gross value, optional project and currency, and attach a receipt in the same request.
Instructions
Create a new expense in FreeAgent
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": {
"user": "<user>",
"category": "<category>",
"dated_on": "<dated_on>",
"gross_value": "<gross_value>"
},
"name": "freeagent_create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | User URL for the expense owner | |
| project | No | Project URL to associate with | |
| category | Yes | Category URL for the expense | |
| currency | No | Currency code (e.g. GBP, USD) | |
| dated_on | Yes | Date of the expense (YYYY-MM-DD) | |
| description | No | Description of the expense | |
| gross_value | Yes | Gross value as a decimal string | |
| rebill_type | No | Rebill type for the expense | |
| sales_tax_rate | No | Sales tax rate as a decimal string | |
| attachment_path | No | Path to a local receipt or invoice file to attach (PDF, PNG, JPEG or GIF, max 5MB). Sent in the same request, so the record is never created without its receipt. | |
| receipt_reference | No | Receipt reference for the expense |