Create invoice
create_invoiceCreate a QuickBooks invoice for an existing customer with line items. Provide the customer ID and at least one item amount to post a receivable.
Instructions
Create an invoice for an existing customer with one or more line items. Use it after resolving the customer Id with search_customers or create_customer. Write operation with real accounting effect: it posts a receivable against the company file. Not idempotent, so calling it twice bills the customer twice. Every line needs an amount, and a line without an item_id falls back to the default sales item. QuickBooks assigns the DocNumber, totals, and (unless due_date is given) the due date from the customer's payment terms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Invoice to create: the customer Id plus at least one line item. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| invoice | No |