Calculate invoice
calculate_invoiceCompute invoice totals from line items in JPY, USD, or EUR, applying floored tax per rate and returning JSON without creating files.
Instructions
Calculate an invoice using integer minor units. Tax is floored once per rate. Returns JSON; creates no files.
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. |