create_invoice
Create a new invoice for a client with one or more line items.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series | No | Invoice series name (uses account default if omitted; if creation fails because the default series belongs to another year, call list_series and pass a name matching the document year) | |
| currency | Yes | Currency code, e.g. "RON", "EUR", "USD" | |
| due_days | No | Days until payment is due | |
| client_id | No | Client ID (from search_clients) | |
| client_city | No | Client city (if client_id not provided) | |
| client_name | No | Client name (if client_id not known) | |
| document_date | No | Invoice date in YYYY-MM-DD format (defaults to today) | |
| exchange_rate | No | Exchange rate to domestic currency (required when currency is not RON) | |
| client_address | No | Client address (if client_id not provided) | |
| client_country | No | Client country code (if client_id not provided) | |
| lower_annotation | No | Text below line items | |
| upper_annotation | No | Text above line items | |
| document_positions | Yes | Line items on the invoice | |
| document_series_counter | No | Invoice number within the series (auto-incremented if omitted) |