Create invoice
fastbill_create_invoiceWRITE: create an invoice for a customer from line items. FastBill stores it as a draft; it gets its number and becomes final only with fastbill_complete_invoice, and it is never sent by this tool. Check the result with fastbill_get_invoice. invoice.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Line items (1-100). | |
| is_gross | No | True when unit_price values are gross. | |
| vat_case | No | VAT case (default standard). | |
| introtext | No | Introduction text above the items. | |
| customer_id | Yes | FastBill customer id (see fastbill_list_customers). | |
| template_id | No | Template id from fastbill_list_templates. | |
| invoice_date | No | A date, yyyy-mm-dd. | |
| currency_code | No | ||
| delivery_date | No | A date, yyyy-mm-dd. | |
| invoice_title | No | ||
| discount_percent | No | Document discount in percent. | |
| cash_discount_days | No | ||
| contract_reference | No | ||
| service_period_end | No | A date, yyyy-mm-dd. | |
| service_period_start | No | A date, yyyy-mm-dd. | |
| cash_discount_percent | No | ||
| customer_order_reference | No |