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, ...).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"debtor_code": "<debtor_code>",
"invoice_lines": "<invoice_lines>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debtor_code | Yes | ||
| extra_fields | No | ||
| invoice_lines | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |