log_invoice_expense
Mutation/readOnly:false, script-tier/no-model-token action. Log a reimbursable expense (parts, fuel, haul-out, subcontractor bill, etc.) onto a client's open draft invoice — or automatically start a new draft invoice if the client has no open draft yet. Uses the client's defaultMarkupBps unless markupBps is specified (pass 0 for no markup). Call list_invoice_clients first for the clientId. Nothing is emailed to the client. Requires the Owner or Admin role. Storefront Pro.
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": {
"clientId": "<clientId>",
"description": "<description>",
"amountCents": "<amountCents>",
"proAccessToken": "<proAccessToken>"
},
"name": "log_invoice_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxable | No | Whether percentage adjustments (e.g. sales tax) apply to this expense line. | |
| clientId | Yes | The client id from list_invoice_clients. | |
| quantity | No | Quantity (default 1, supports decimals, max 1,000). | |
| markupBps | No | Override markup in basis points (1500 = 15%, 0 = no markup). Omit or pass null to use the client's defaultMarkupBps. | |
| vendorRef | No | Optional vendor name or receipt/invoice reference, up to 80 characters. | |
| amountCents | Yes | Unit expense cost in whole cents (e.g. 18550 = $185.50; max $100,000.00). | |
| attachments | No | Optional receipt attachments, up to 10. | |
| description | Yes | Expense description shown on the invoice, 1 to 160 characters (e.g. "Impeller kit & zinc anodes"). | |
| expenseDate | No | Optional date of the expense in YYYY-MM-DD format. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |