Create draft Wave invoice
wave_create_invoiceCreate a draft Wave invoice from a customer ID and product line items; it stays unsent and unposted until approved and sent.
Instructions
Create a DRAFT invoice. Nothing is sent and nothing is posted to the books until wave_approve_invoice and wave_send_invoice. Needs a customer id (wave_list_customers) and at least one line item with a product id (wave_list_products). Tax per line: omit sales_tax_ids to use the product's defaults, or pass [] for no tax (zero-rated US/export clients).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Notes shown on the invoice | |
| items | Yes | Line items; at least one | |
| title | No | ||
| footer | No | ||
| currency | No | Invoice currency (default: business currency) | |
| due_date | No | Due date (default: business payment terms) | |
| po_number | No | ||
| customer_id | Yes | Customer ID exactly as returned by Wave (an opaque string) | |
| invoice_date | No | Issue date (default: today) | |
| exchange_rate | No | Rate from the invoice currency to the business currency; set it for foreign-currency invoices | |
| invoice_number | No | Default: Wave assigns the next number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| memo | Yes | ||
| items | Yes | ||
| title | Yes | ||
| total | Yes | ||
| footer | Yes | ||
| status | Yes | ||
| pdf_url | Yes | ||
| currency | Yes | ||
| due_date | Yes | ||
| payments | Yes | ||
| view_url | Yes | ||
| po_number | Yes | ||
| tax_total | Yes | ||
| amount_due | Yes | ||
| amount_paid | Yes | ||
| customer_id | Yes | ||
| modified_at | Yes | ||
| invoice_date | Yes | ||
| customer_name | Yes | ||
| exchange_rate | Yes | ||
| customer_email | Yes | ||
| invoice_number | Yes |