Create Sale Invoice
create_sale_invoiceCreate a sales invoice with itemized products, payment terms, and accounting accounts. Supports credit invoices and auto-assigned invoice numbers.
Instructions
Create a sales invoice
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Invoice items [{products_id, custom_title, amount, unit_net_price, sale_accounts_id?, sale_accounts_dimensions_id?, vat_accounts_id?, cl_sale_articles_id?, discount_percent?, projects_project_id?, projects_location_id?, projects_person_id?}]. sale_accounts_dimensions_id is REQUIRED when the revenue account has dimensions. Note: SaleInvoicesItems schema has no vat_accounts_dimensions_id field — only the purchase side does. | |
| notes | No | Internal notes | |
| term_days | Yes | Payment term in days | |
| clients_id | Yes | Buyer client ID | |
| create_date | Yes | Invoice date (YYYY-MM-DD) | |
| journal_date | Yes | Turnover date (YYYY-MM-DD) | |
| number_suffix | No | Invoice number suffix (omit or empty string for auto-assign from invoice series) | |
| cl_countries_id | No | Country (default EST) | |
| cl_templates_id | Yes | Invoice template ID | |
| cl_currencies_id | No | Currency (default EUR) | |
| sale_invoice_type | No | Type: INVOICE or CREDIT_INVOICE | |
| show_client_balance | No | Show client balance on invoice |