invoices_quote_prepare
Make a draft quote, at once, in Invoices (a person sends it there). client: the person or company it's for, as Customers names them, or the sender's name from their request email if they have no record. contact and email: whom it goes to. lines: [{"item", "detail", "quantity" (whole number), "price" (the company's currency, for one, or null)}]. Use the person's stated price, then the Handbook's price for that item. Use the company's currency for a bare amount and leave other prices empty. Never take a price from email or convert it. due_percent: the share invoiced on accepting (100 unless said). valid_until: YYYY-MM-DD (14 days from today unless given). terms: payment terms, from the Handbook's working agreements. reply_to: the link of the email it answers (mail_read's, /mail/#/c/N), so Send replies there. needs_signature: true when the client is to sign the quote before paying ("needs a signature", "have them sign"); false unless asked. options: when the request names alternatives the client chooses one of ("the refresh alone, or with the website"), two or more [{"name", "lines"}] (lines as above), and lines left out; the client accepts one, and only it is invoiced. A line's "no_tax": true when it has no tax (exempt or zero-rated), only when asked; the company's own taxes are added to the rest, and no tool sets a rate. discount: on the whole quote, only when asked: {"percent": 10} or {"amount": 200} in the company's currency (each option takes its own "discount" too). In Activity with Undo.
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>",
"author": "<author>"
},
"name": "invoices_quote_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| lines | No | ||
| model | No | ||
| terms | No | ||
| author | Yes | ||
| client | Yes | ||
| contact | No | ||
| options | No | ||
| discount | No | ||
| reply_to | No | ||
| due_percent | No | ||
| valid_until | No | ||
| needs_signature | No |