create_invoice
Creates a draft invoice for a debtor. Accepts line items with product codes or free-form descriptions, and additional invoice fields.
Instructions
Create a draft invoice.
Args: debtor_code: e.g. 'DB10000'. invoice_lines: list of line dicts. Each can have ProductCode, or free-form Description + PriceExcl + Number + TaxCode etc. extra_fields: any other invoice-level fields (Date, Term, Discount, ReferenceNumber, Comment, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debtor_code | Yes | ||
| invoice_lines | Yes | ||
| extra_fields | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |