Fiken: Create invoice
fiken_create_invoiceFiken: Issue an invoice and book the income. It is created, not sent. Creates the invoice, like Opprett faktura in Fiken, from lines or from a draft_id, and registers the income in the accounts. It returns the invoice number and totals; the customer gets nothing until send_invoice runs. Fiken has no delete for invoices: a wrong invoice is corrected with a credit note in Fiken. Pass draft_id to issue a draft, or customer_id, days_until_due and lines to create one directly. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Required without draft_id. Objects with description, quantity, unit_price (net per unit, excluding VAT), vat_type (for example HIGH, MEDIUM, LOW or NONE), optional discount_percent and income_account. | |
| currency | No | ISO 4217 code. Default: NOK. | |
| draft_id | No | Draft ID from create_invoice_draft. Use this or the fields below. | |
| issue_date | No | Invoice date. Default: today. | |
| customer_id | No | Contact ID. Required without draft_id. | |
| invoice_text | No | Comment printed above the invoice lines. | |
| days_until_due | No | Days from the invoice date to the due date. Required without draft_id. | |
| your_reference | No | Your reference, printed on the invoice. |