Create invoice
create_invoiceCreate a project invoice. project_id is required — this tool can never create a platform/subscription billing row (those have no project_id). tax_amount/total_amount are computed server-side from amount + tax_rate (or tax_set's default rate: domestic/eu_b2c=19%, eu_b2b/third_country=0%) — do not pass them yourself. If retainage_percent is given, retainage_amount is likewise computed server-side from total_amount. invoice_number is assigned automatically.
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": {
"project_id": "<project_id>",
"customer_name": "<customer_name>",
"amount": "<amount>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| amount | Yes | Net amount before tax | |
| status | No | ||
| tax_set | No | Default 'domestic'; determines the default tax_rate | |
| agent_id | No | ||
| due_date | No | ||
| tax_rate | No | Optional override of tax_set's default rate | |
| project_id | Yes | ||
| description | No | ||
| daily_log_id | No | ||
| customer_name | Yes | ||
| retainage_percent | No | % of total_amount withheld until final completion (pay-application retainage), default 0 |