Fiken: Create invoice draft
fiken_create_invoice_draftFiken: Save an invoice draft for a customer. Nothing is booked and nothing is sent. Saves a draft like Lagre utkast in Fiken and returns its draft_id. The draft shows under Utkast at the top of Salg → Faktura-/salgsoversikt, where you can open and change it. Nothing is booked, no invoice number is used and the customer hears nothing, so create_invoice_draft runs without asking first. Pass the draft_id to create_invoice to issue it. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | 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. A line without a product needs an income account. | |
| currency | No | ISO 4217 code. Default: NOK. | |
| issue_date | No | Invoice date. Default: today. | |
| customer_id | Yes | Contact ID from list_contacts or create_contact. | |
| invoice_text | No | Comment printed above the invoice lines. | |
| days_until_due | Yes | Days from the invoice date to the due date. | |
| your_reference | No | Your reference, printed on the invoice. |