Reference

willo_invoices_write

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

  • Act
  • May need approval
  • Secret scan
Generated from Willo's codeOpen in ClaudeOpen in ChatGPT
On this page

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

ParameterTypeRequiredDescription
invoice_idstringnoThe draft to change.
job_idstringnoTo make one: the job it is for.
amountnumber ≥ 0noThe total, like 4200.
linesobject[]noThe items, instead of an amount.
due_onstringnoWhen it is due, YYYY-MM-DD.
notestringnoA line above the invoice.
kindstring (full or deposit)noTo make one: deposit asks for part of the job up front (default full).
deposit_percentinteger 1–99noA deposit's share of the job's value, like 30.