Create Customer Invoice
create_customer_invoice[write] Prepare an invoice for a customer (customer_id or customer_uuid) as a DRAFT. items = [{description, quantity, unit_price, tax_rate}], tax_rate is the taxation
percentage of the line (the customer's / template's default when left out). The template (template_id / template_uuid, else the default) and the customer's billing details
are copied onto the invoice. issue_date / due_date = YYYY-MM-DD (today / payment terms when left out); currency defaults to the customer's billing currency.
The totals are computed here. Nothing is sent: use send_customer_invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| items | Yes | ||
| currency | No | ||
| due_date | No | ||
| issue_date | No | ||
| customer_id | No | ||
| template_id | No | ||
| customer_uuid | No | ||
| template_uuid | No |