# willo_invoices_write

> Make a draft invoice on one of the business's jobs, or change a draft.

Generated from Willo's code at each release.

Source: https://www.willo.ai/docs/reference/mcp-tools/willo-invoices-write

**Make or change a draft invoice.** To make one: `job_id` (from willo_jobs), then `lines` (each with `description`, `price` in the currency's main unit like 120, and `quantity`, default 1) or `amount` (like 4200); with neither, it is for what is left of the job's value. Optional `due_on` (YYYY-MM-DD, default 14 days out) and `note` (shown above the invoice in the email). To ask for a deposit: `kind` `deposit` with `deposit_percent` (of the job's value) or `amount`; one per job, less than the job's value. Paying it wins the job and drafts the balance. To change a draft: `invoice_id` (from willo_invoices) plus any of those. The currency is the job's. This sends nothing and makes no payment link: the owner sends it from the job on the Contacts page, which emails it with a Stripe payment link. Sent invoices are changed, voided or marked paid there. Needs owner or admin rank on the business. No card. Free.

## Access

- **Token**: read + act, and editor access or higher on the business.
- **Approval**: Only when Willo's chat would stop for the same action. The description says when; otherwise the call runs at once.
- **Secret scan**: refused if the new content holds a value shaped like an API key or token.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `invoice_id` | string | no | The draft to change. |
| `job_id` | string | no | To make one: the job it is for. |
| `amount` | number ≥ 0 | no | The total, like 4200. |
| `lines` | object[] | no | The items, instead of an amount. |
| `due_on` | string | no | When it is due, YYYY-MM-DD. |
| `note` | string | no | A line above the invoice. |
| `kind` | string (full or deposit) | no | To make one: `deposit` asks for part of the job up front (default `full`). |
| `deposit_percent` | integer 1–99 | no | A deposit's share of the job's value, like 30. |

## Related

- [All MCP tools](https://www.willo.ai/docs/reference/mcp-tools)
- [Error codes](https://www.willo.ai/docs/reference/errors)
- [Draft and live](https://www.willo.ai/docs/ai-agents/draft-and-live)
