create_client_invoice
Create the exact invoice previously returned by prepare_client_invoice. This is a confirmed write: it revalidates the report snapshot and client identity, creates a private editable Google Doc plus private PDF and DOCX copies, records the issued invoice, and supersedes an older active invoice for the same report. It does not send email or create an Income row. If tax is positive, confirmTax must be true.
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": {
"preparationId": "<preparationId>"
},
"name": "create_client_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmTax | No | True only after the user confirms the displayed tax label and rate. | |
| operationId | No | Optional retry key. Reuse it after an uncertain response. | |
| preparationId | Yes | Short-lived ID returned by prepare_client_invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| pdfUrl | No | ||
| status | No | ||
| docxUrl | No | ||
| dueDate | No | ||
| success | Yes | ||
| currency | No | ||
| invoiceId | No | ||
| issueDate | No | ||
| recovered | No | ||
| clientName | No | ||
| grandTotal | No | ||
| documentUrl | No | ||
| invoiceNumber | No | ||
| advanceApplied | No | ||
| sourceReportId | No | ||
| artifactWarning | No |