invoices_create_draft
Create a DRAFT invoice. Drafts have no number and can be edited or deleted freely — nothing is committed until invoices_issue is called. Currency and due date default from the customer's billing profile when not given. Totals are computed server-side from the quantities and prices sent; do not attempt to supply totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Line items. Use itemId to pull a saved item's price for this currency, or name + unitPrice for a one-off. | |
| notes | No | Shown on the invoice. | |
| terms | No | Terms and conditions printed on the invoice. | |
| charges | No | Invoice-level charges below the subtotal — shipping, a rush fee, or a negative amount for a deposit already paid. | |
| dueDate | No | YYYY-MM-DD. Defaults to issue date plus the profile terms. | |
| currency | No | ISO 4217. Defaults from the billing profile. | |
| companyId | No | ||
| contactId | No | Who to bill. One of contactId/companyId is required. | |
| issueDate | No | YYYY-MM-DD. Defaults to today. |