Create an invoice draft
bokio_create_invoice_draftCreate a DRAFT sales invoice. Nothing is bookkept and nothing is sent until bokio_publish_invoice. Not idempotent: calling twice creates two drafts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueDate | No | Due date (YYYY-MM-DD). | |
| currency | No | ISO 4217 code, default SEK. | |
| lineItems | Yes | ||
| customerId | Yes | The customer id from bokio_list_customers (a GUID). | |
| invoiceDate | Yes | Invoice date (YYYY-MM-DD). | |
| currencyRate | No | Rate to SEK when the currency is not SEK. | |
| buyerReference | No | ||
| orderNumberReference | No |