---
title: "PUT /companies/{companySlug}/offers/drafts/{draftId}"
method: PUT
path: "/companies/{companySlug}/offers/drafts/{draftId}"
tags: ["offers"]
---

# PUT /companies/{companySlug}/offers/drafts/{draftId}

`PUT /companies/{companySlug}/offers/drafts/{draftId}`

Updates offer draft with provided id.

## Request body

- InvoiceishDraftRequest
  - `type` 'invoice' | 'cash_invoice' | 'offer' | 'order_confirmation' | 'credit_note' | 'repeating_invoice', required — Type of draft.
  - `uuid` string — UUID are represented as 32 hexadecimal (base-16) digits, displayed in 5 groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters.
  - `issueDate` string, date — Issue date of the invoice draft, format yyyy-mm-dd
  - `daysUntilDueDate` integer, required — Days until due date of the invoice draft.
  - `invoiceText` string — Comment/description printed above the invoice lines. If not present, and standard text is registered, standard text is printed.
  - `yourReference` string
  - `ourReference` string
  - `orderReference` string — Reference if sending invoice via EHF.
  - `lines` InvoiceishDraftLine[]
    - `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.
  - `currency` string — ISO 4217 currency code
  - `bankAccountNumber` string
  - `iban` string
  - `bic` string
  - `paymentAccount` string
  - `customerId` integer, required — customerId = contactId where customer = true
  - `contactPersonId` integer — Id of the contact person. Must be associated with the provided customer.
  - `projectId` integer
  - `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.
  - `startDate` string, date — First issue date of the recurring invoice. Required only when type is repeating_invoice.
  - `endDate` string, date — Optional date after which no more invoices are generated. Only applicable when type is repeating_invoice.
  - `frequency` Frequency — How often an invoice is generated, e.g. interval 1 + intervalUnit MONTH means once per month.
    - `interval` integer, required — Number of interval units between each generated invoice. Must be at least 1.
    - `intervalUnit` 'DAY' | 'WEEK' | 'MONTH', required — The unit of time between each generated invoice.

## Response `201`

Created

---

[API](https://skmtc.dev/fiken/apis/fiken-api.md) · [All operations](https://skmtc.dev/fiken/apis/fiken-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fiken/fiken-api/revisions/2473dacdb89c/schema)
