---
title: "GET /companies/{companySlug}/transactions/{transactionId}"
method: GET
path: "/companies/{companySlug}/transactions/{transactionId}"
tags: ["transactions"]
---

# GET /companies/{companySlug}/transactions/{transactionId}

`GET /companies/{companySlug}/transactions/{transactionId}`

## Request

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

Returns given transaction with associated id. Transaction id is returned in GET calls for
sales, purchases, and journal entries.

## Response `200`

OK

- Transaction: Transaction result upon creation of a General Journal Entry
  - `transactionId` integer
  - `createdDate` string, date: Date that product was created in Fiken, format yyyy-mm-dd
  - `lastModifiedDate` string, date: Date that product was last modified in Fiken, format yyyy-mm-dd.
  - `description` string
  - `type` string: Type of the transaction. Same values as `transactionType` on journalEntry.
  - `entries` JournalEntry[]
    - `journalEntryId` integer
    - `createdDate` string, date: Date that journal entry was created in Fiken, format yyyy-mm-dd
    - `lastModifiedDate` string, date: Date that journal entry was last modified in Fiken, format yyyy-mm-dd.
    - `transactionId` integer
    - `offsetTransactionId` integer: If a journal entry has been cancelled this provides the id of the balancing transaction
    - `transactionType` string: Type of the transaction this journal entry belongs to. The type is a property of the transaction, so all journal entries in the same transaction have the same type. Same value as `type` on transaction. Possible values: Salg, Kjøp, Fri, Åpningsbalanse, Annullering, Import, Kreditert salg, Kreditert kjøp, Bankomkostning, Inngående balanse, Mva-oppgjør, Årsavslutning (system), Bankrenter, Intern overføring, Personlig innskudd/uttak, Innskudd av kontanter (mynter og sedler), Uttak av kontanter (mynter og sedler), Forskuddsskatt, Kontantutlegg, Lønn, Betaling av forskuddstrekk, Betaling av arbeidsgiveravgift, Forever Bonus, Årsavslutning (egne), PayPal PoS, Endring av eiendel, Betaling av finansskatt, Diverse (fra mal), Gjeld, Betaling av utleggstrekk for dekning av skatt, Kjørebok, Skatteoppgjør, Tolldeklarasjon, Verdipapir, Betalingsoppgjør, Avstemming, Varetelling.
    - `journalEntryNumber` integer
    - `description` string, required: We add the flag 'Fri postering registrert via API: '. This must be taken into account in the max length of the description
    - `date` string, date, required
    - `lines` JournalEntryLine[], required
      - `amount` integer, required: This will be the net amount (excluding VAT) for debitAccount lines and gross amount (including VAT) for creditAccount lines. The reason for this difference is due to the way Fiken calculates VAT based on the debitVatCode and creditVatCode.
      - `account` string
      - `vatCode` string
      - `debitAccount` string
      - `debitVatCode` integer
      - `creditAccount` string
      - `creditVatCode` integer
      - `projectId` integer[]
      - `lastModifiedDate` string, date: Date that journal entry line was last modified in Fiken, format yyyy-mm-dd.
    - `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'
  - `deleted` boolean: If the transaction has been deleted, this field will be true. A deletion creates a reverse transaction to null out the original.

## Changes

- **2026-10-07** `91d77352f816`: 1 info
  - added the optional property `entries/items/transactionType` to the response with the `200` status
- **2026-09-03** `2473dacdb89c`: 2 info
  - added the optional property `entries/items/attachments/items/filename` to the response with the `200` status
  - added the optional property `entries/items/attachments/items/uuid` to the response with the `200` status
- **2026-03-28** `dff97b55851e`: 3 info
  - added the optional property `deleted` to the response with the `200` status
  - the response optional property `entries/items/transactionId` became read-only for the status `200`
  - the response optional property `transactionId` became read-only for the status `200`
- **2023-05-26** `e093a0c9db87`: 4 info
  - added the optional property `entries/items/createdDate` to the response with the `200` status
  - added the optional property `entries/items/lastModifiedDate` to the response with the `200` status
  - added the optional property `entries/items/lines/items/lastModifiedDate` to the response with the `200` status
  - added the optional property `entries/items/lines/items/projectId` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/fiken/apis/fiken-api/changes/companies/:companySlug/transactions/:transactionId/get.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)
