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

# GET /companies/{companySlug}/creditNotes/drafts

`GET /companies/{companySlug}/creditNotes/drafts`

Returns all credit note drafts for given company.

## Query parameters

- `page` integer
- `pageSize` integer

## Response `200`

OK

- InvoiceishDraftResult[]
  - `draftId` integer — Invoice draft ID
  - `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.
  - `type` 'invoice' | 'cash_invoice' | 'offer' | 'order_confirmation' | 'credit_note' | 'repeating_invoice' — Type of invoice draft.
  - `lastModifiedDate` string, date — Date that the draft was last modified in Fiken, format yyyy-mm-dd.
  - `issueDate` string, date — Issue date of the invoice draft, format yyyy-mm-dd
  - `daysUntilDueDate` integer — Days until due date of the invoice draft.
  - `invoiceText` string — Comment/description printed above the invoice lines
  - `currency` string — ISO 4217 currency code
  - `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.
  - `net` integer — The net amount to be invoiced in the specified currency.
  - `gross` integer — The gross amount to be invoiced in the specified currency.
  - `bankAccountNumber` string
  - `iban` string
  - `bic` string
  - `paymentAccount` string
  - `customers` Contact[] — Customer(s) to be invoiced.
    - `contactId` integer
    - `createdDate` string, date — Date that contact was created in Fiken, format yyyy-mm-dd.
    - `lastModifiedDate` string, date — Date that contact was last modified in Fiken, format yyyy-mm-dd.
    - `name` string, required
    - `email` string
    - `organizationNumber` string — Brreg organization number.
    - `customerNumber` integer
    - `customerAccountCode` string — Format 1500:XXXXX
    - `phoneNumber` string
    - `memberNumber` number — A number that can be used to connect a contact to your own data. This field is no longer used and instead memberNumberString should be used.
    - `memberNumberString` string — A number/id that can be used to connect a contact to your own data.
    - `supplierNumber` integer
    - `supplierAccountCode` string — Format 2400:XXXXX
    - `customer` boolean — True if the contact is a customer. It is possible for a contact to be both customer and supplier.
    - `supplier` boolean — True if the contact is a supplier. It is possible for a contact to be both supplier and customer.
    - `bankAccountNumber` string
    - `contactPerson` ContactPerson[]
      - `contactPersonId` integer
      - `name` string, required
      - `email` string, required
      - `phoneNumber` string
      - `address` Address
        - `streetAddress` string
        - `streetAddressLine2` string
        - `city` string
        - `postCode` string
        - `country` string, required
    - `notes` ContactNote[]
      - `author` string
      - `note` string
    - `currency` string — ISO 4217 currency code. Default foreign currency to use when creating invoice to this contact (USD, EUR, SEK etc)
    - `language` string, nullable — The language to use when sending documents to this contact. NORWEGIAN or ENGLISH. Defaults to NORWEGIAN.
    - `inactive` boolean — Whether the contact has been deactivated (true) or is active (false)
    - `daysUntilInvoicingDueDate` integer — Default number of days until due date for invoices.
    - `discount` number — Discount value should be a percent with a value between 0 and 100. Decimal values such as 25.5 are also allowed.
    - `address` Address
      - `streetAddress` string
      - `streetAddressLine2` string
      - `city` string
      - `postCode` string
      - `country` string, required
    - `groups` string[]
    - `documents` Attachment[]
      - `uuid` string, uuid — Unique id of the attachment (the underlying file's UUID). Use this value as the attachmentUuid path parameter when deleting the attachment.
      - `filename` string — The name of the underlying file.
      - `identifier` string — User-defined identifier for attachment. Could be the Invoice Id or receipt number for example.
      - `downloadUrl` string — For use with API credentials (bearer token or oauth 2)
      - `downloadUrlWithFikenNormalUserCredentials` string — Requires the user to login with username and password in Fiken.
      - `comment` string — Field for additional information for this attachment.
      - `type` 'invoice' | 'reminder' | 'unspecified' | 'ocr' | 'bank_statement'
  - `attachments` Attachment[]
    - `uuid` string, uuid — Unique id of the attachment (the underlying file's UUID). Use this value as the attachmentUuid path parameter when deleting the attachment.
    - `filename` string — The name of the underlying file.
    - `identifier` string — User-defined identifier for attachment. Could be the Invoice Id or receipt number for example.
    - `downloadUrl` string — For use with API credentials (bearer token or oauth 2)
    - `downloadUrlWithFikenNormalUserCredentials` string — Requires the user to login with username and password in Fiken.
    - `comment` string — Field for additional information for this attachment.
    - `type` 'invoice' | 'reminder' | 'unspecified' | 'ocr' | 'bank_statement'
  - `createdFromInvoiceId` integer
  - `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. Only present when type is repeating_invoice.
  - `endDate` string, date — Date after which no more invoices are generated. Only present 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.

---

[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)
