create_invoice
Create a new invoice for a customer. Optionally include line items inline. Returns the new invoiceId.
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": {
"accountId": "<accountId>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-form notes shown on the invoice | |
| dueDate | No | Due date (ISO 8601 date) | |
| currency | No | ISO currency code (defaults to company default) | |
| accountId | Yes | Customer accountId (CRM account) | |
| lineItems | No | Line items to bill — totals are computed server-side |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Tool result payload — shape varies per tool, see the tool description | |
| summary | Yes | One-line human-readable summary of the action | |
| renderType | Yes | UI rendering hint for the result |