---
title: "POST /companies/{companySlug}/creditNotes/partial"
method: POST
path: "/companies/{companySlug}/creditNotes/partial"
tags: ["credit notes"]
---

# POST /companies/{companySlug}/creditNotes/partial

`POST /companies/{companySlug}/creditNotes/partial`

Creates a new credit note that doesn't fully cover the total amount of the associated invoice.

## Request body

- PartialCreditNoteRequest
  - `ourReference` string — Optional
  - `yourReference` string — Optional - Your reference for invoice, free string format.
  - `orderReference` string — Reference if sending via EHF.
  - `project` integer — Optional - Project associated with the credit note.
  - `currency` string — ISO 4217 currency code
  - `issueDate` string, date, required — Date that the credit note is issued, format yyyy-mm-dd
  - `invoiceId` integer — Optional - Id of invoice that the credit note is associated with.
  - `contactId` integer — Id of contact that the credit note is associated with.
  - `contactPersonId` integer — Id of contact person that the credit note is associated with (Credit person must belong to the provided contact).
  - `creditNoteText` string
  - `lines` CreditNoteLineResult[], required
    - `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.
    - `vatType` string — One of: {"HIGH", "MEDIUM", "LOW", "EXEMPT", "EXEMPT_IMPORT_EXPORT", "EXEMPT_REVERSE", "OUTSIDE", "NONE"}. "HIGH" is the most common.
    - `unitPrice` integer, required — Net price per unit in invoice currency (in cents).
    - `quantity` number, required — Number of units to be invoiced.
    - `discount` number — If field is set, all amounts must be given before the discount is applied. The API will calculate the new totals. Discount value should be a percent with a value between 0 and 100. Decimal values such as 25.5 are also allowed.
    - `productId` integer — Product Id of product associated with invoice line.
    - `description` string — Description of the invoiced product or service.
    - `comment` string — Additional information to be printed on invoice.
  - `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 `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)
