Draft an invoice
create_invoice_draftCreates a draft invoice for a client (contactId). Nothing is sent. Returns the invoiceId and an openUrl where the user can see the draft.
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": {
"contactId": "<contactId>",
"lines": "<lines>"
},
"name": "create_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Invoice line items. | |
| notes | No | Optional notes on the invoice. | |
| dueDate | No | ISO due date e.g. 2025-07-19. Omit to use business default payment terms. | |
| contactId | Yes | UUID of the client contact (from lookup_contact or create_contact). |