create-invoice-draft
Create an empty draft invoice for a company and return it with its id. The draft has no customer or line items yet and starts with the company's auto-included payment methods; nothing is sent. Next set the customer, line items, dates and currency with update-invoice-draft, then finalize it with submit-invoice. To copy an existing invoice into a new draft, use duplicate-invoice instead.
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": {
"companyId": "<companyId>"
},
"name": "create-invoice-draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | Company ID |