Create Fortnox Invoice
fortnox_create_invoiceCreate a new invoice in Fortnox from a customer number and line items. Add optional details such as dates, references, currency, fees, and send type to get an invoice with a document number.
Instructions
Create a new invoice in Fortnox.
Args:
customer_number (string): Customer number (required)
rows (array): Invoice line items (at least one required)
Each row: { description, quantity?, price?, article_number?, unit?, discount?, vat?, account_number? }
invoice_date (string): Invoice date YYYY-MM-DD (defaults to today)
due_date (string): Due date YYYY-MM-DD
our_reference (string): Our reference person
your_reference (string): Customer's reference
invoice_type ('INVOICE' | 'CASH' | 'CARD' | 'UNDEFINED'): Invoice type
currency (string): 3-letter currency code
terms_of_payment (string): Payment terms code
comments (string): Internal comments
remarks (string): Remarks printed on invoice
freight (number): Shipping cost
administration_fee (number): Admin fee
send_type ('EMAIL' | 'PRINT' | 'EINVOICE'): How to send
Returns: The created invoice with assigned document number.
Example rows: [{ "description": "Consulting services", "quantity": 10, "price": 1000 }]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Invoice rows/lines (at least one required) | |
| freight | No | Freight/shipping cost | |
| remarks | No | Remarks printed on the invoice | |
| comments | No | Comments on the invoice | |
| currency | No | Currency code (e.g., 'SEK') | |
| due_date | No | Due date (YYYY-MM-DD) | |
| send_type | No | How to send the invoice | |
| invoice_date | No | Invoice date (YYYY-MM-DD, defaults to today) | |
| invoice_type | No | Type of invoice | |
| our_reference | No | Our reference person | |
| your_reference | No | Customer's reference person | |
| customer_number | Yes | Customer number (required) | |
| response_format | No | Output format: 'markdown' or 'json' | markdown |
| terms_of_payment | No | Payment terms code | |
| administration_fee | No | Administration fee |