---
title: "PUT /companies/{companySlug}/recurringInvoices/{recurringInvoiceId}/lines"
method: PUT
path: "/companies/{companySlug}/recurringInvoices/{recurringInvoiceId}/lines"
tags: ["recurring invoices"]
---

# PUT /companies/{companySlug}/recurringInvoices/{recurringInvoiceId}/lines

`PUT /companies/{companySlug}/recurringInvoices/{recurringInvoiceId}/lines`

## Request

- Base URL: `https://api.fiken.no/api/v2`
- URL: `https://api.fiken.no/api/v2/companies/{companySlug}/recurringInvoices/{recurringInvoiceId}/lines`
- Auth: OAuth 2
  - Authorization code: `https://fiken.no/oauth/authorize`
  - Token URL: `https://fiken.no/oauth/token`

Replaces all invoice lines for the recurring invoice. This applies to every job in the
collection. Use this to change the amount or lines of a recurring invoice.

## Request body

- UpdateRecurringInvoiceLinesRequest: Replaces all invoice lines for the recurring invoice. Applies to every job in the collection.
  - `lines` InvoiceishDraftLine[], required
    - `invoiceishDraftLineId` integer: Unique draft line ID
    - `lastModifiedDate` string, date: Date that the draft line was last modified in Fiken, format yyyy-mm-dd.
    - `productId` integer: Product to be credited/debited on invoice draft line.
    - `description` string: Description of the invoiced product or service.
    - `unitPrice` integer: Net price per unit in invoice currency (in cents).
    - `vatType` string: Vat Types for SALES: [NONE, HIGH, MEDIUM, RAW_FISH, LOW, EXEMPT_IMPORT_EXPORT, EXEMPT, OUTSIDE, EXEMPT_REVERSE] Vat Types for PURCHASES: [NONE, HIGH, MEDIUM, RAW_FISH, LOW, HIGH_DIRECT, HIGH_BASIS, MEDIUM_DIRECT, MEDIUM_BASIS, NONE_IMPORT_BASIS, HIGH_FOREIGN_SERVICE_DEDUCTIBLE, HIGH_FOREIGN_SERVICE_NONDEDUCTIBLE, LOW_FOREIGN_SERVICE_DEDUCTIBLE, LOW_FOREIGN_SERVICE_NONDEDUCTIBLE, HIGH_PURCHASE_OF_EMISSIONSTRADING_OR_GOLD_DEDUCTIBLE, HIGH_PURCHASE_OF_EMISSIONSTRADING_OR_GOLD_NONDEDUCTIBLE]
    - `quantity` number, required: Number of units to be invoiced.
    - `discount` number: Percentage discount charged on invoice draft line. Should be a value between 0 and 100. Can be decimal values such as 25.5
    - `comment` string: Additional information to be printed on invoice.
    - `incomeAccount` string: Field is similar to vatType, it defaults to the product's income account. Either the line or the product needs to have an income account set.
  - `roundingType` 'none' | 'round_half' | 'round_whole' | 'round_down_half' | 'round_down_whole': Type of øreavrunding (rounding) to apply to the total. 'none' means no rounding (default). 'round_half' rounds to nearest 50 øre, 'round_whole' rounds to nearest whole krone, 'round_down_half' rounds down to nearest 50 øre, 'round_down_whole' rounds down to nearest whole krone. Only applicable for NOK currency. Does not change the company's default rounding setting.

## Response `200`

OK

## Changes

- **2026-09-03** `2473dacdb89c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fiken/apis/fiken-api/changes/companies/:companySlug/recurringInvoices/:recurringInvoiceId/lines/put.md)

---

[API](https://skmtc.dev/fiken/apis/fiken-api.md) - [All operations](https://skmtc.dev/fiken/apis/fiken-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fiken/apis/fiken-api/revisions/29111da67f94?raw)
