Create a document
create_documentA new draft under a client: the type, a title, the priced lines, the Markdown body (the scope, the clauses; you write it, in the person's words), optional tax lines, currency, dates and labels. Starts from the settings' currency, tax lines and footer; a quote gets a valid-until date and an invoice a due date from the settings' days. Counts toward the free documents.
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": {
"client": "<client>",
"type": "<type>",
"title": "<title>"
},
"name": "create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Markdown. | |
| type | Yes | quote, contract or invoice. | |
| lines | No | The priced lines. The server computes the amounts, the subtotal, the tax and the total. | |
| title | Yes | ||
| client | Yes | The client's id, or its exact name. | |
| footer | No | Printed under the lines: terms, how to pay. Default: the settings' footer. | |
| labels | No | Label names (or ids) that already exist in the account. Unknown names are refused; see list_labels. | |
| dueDate | No | Due (invoice) or valid until (quote). | |
| currency | No | ||
| taxLines | No | Tax lines on the subtotal. Omit to use the settings' default; [] for none. | |
| issueDate | No |