Create Excel invoice
create_invoiceGenerate a formatted .xlsx invoice from issuer, customer, dates, currency, and line items; returns its absolute path and total without overwriting existing files.
Instructions
Save a formatted .xlsx invoice in the configured output directory. Returns its absolute path and total. Existing files are never overwritten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| notes | No | ||
| issuer | Yes | Invoice issuer; registrationNumber is an optional Japanese registration number. | |
| dueDate | Yes | ||
| currency | Yes | ||
| customer | Yes | The customer receiving the invoice. | |
| issueDate | Yes | ||
| invoiceNumber | Yes | ||
| outputFilename | No | Optional .xlsx filename, never a path. Defaults to invoice.xlsx. |