Create a draft invoice (preview, then confirm)
accounting_create_invoice_draftCreate a DRAFT customer invoice (never sent, not in the ledger until the business sends it from GetAccountED). VAT at 15% if the business is a VAT vendor. TWO STEPS: first call returns the totals + confirm_token; second call with confirm_token saves the draft. Changes the user's real books — only after they have seen the preview and agreed. Needs the user's GetAccountED sign-in (they are asked to sign in the first time).
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": {
"lines": "<lines>"
},
"name": "accounting_create_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | Invoice lines | |
| notes | No | Note printed on the invoice (optional) | |
| due_date | No | YYYY-MM-DD (default: the business's payment terms) | |
| business_id | No | Accounting practices only: which client's books (an id from accounting_list_my_businesses). Leave out to use the books chosen at sign-in. | |
| customer_id | No | Existing customer id | |
| confirm_token | No | Second step only: the token from the preview | |
| customer_name | No | Or the customer's name (must match one customer) | |
| create_customer | No | Create the customer by customer_name if none matches | |
| prices_include_vat | No | true = unit prices already include VAT; false = VAT added on top. Default: the business's invoice setting. |