Log Expense
log_expenseRecords one cost the signed-in person paid on a job, such as parking, materials or a client lunch, against a project they work on (by projectId, or by its code or name, e.g. "RISE"), in the workspace currency, exactly as the project Expenses tab records it: the accounting books' closed months and a likely duplicate are refused with the reason. The receipt file is added later on the project's Expenses tab. Handles "log $42 parking on RISE, billable". The result carries the call that undoes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax | No | Tax paid on top of the amount, if any. | |
| date | No | The day of the cost, YYYY-MM-DD. Defaults to today in the person's time zone; never in the future. | |
| amount | Yes | The amount before tax, in the workspace currency, like 42.5. | |
| userId | No | Not needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose expenses these are. | |
| vendor | Yes | Who was paid, e.g. "City Parking". | |
| project | No | The project as the person said it: its code (e.g. "RISE") or its name, matched exactly on code first. When several projects match, nothing is recorded and the candidates come back. | |
| billable | No | Whether the client pays for it (default false). | |
| category | No | The kind of cost. Defaults to other. | |
| projectId | No | The project the cost is on, by id. Give projectId or project. | |
| description | No | What it was for. A billable cost shows this on the client's invoice. | |
| reimbursable | No | Whether the person paid it themselves and is owed it back (default false). | |
| allowDuplicate | No | Record it even though a matching expense exists: a second, separate charge. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | The call that reverses this one, with its arguments. | |
| expense | No | ||
| receipt | No |