---
title: "GET /companies/{companySlug}/purchases/{purchaseId}/attachments"
method: GET
path: "/companies/{companySlug}/purchases/{purchaseId}/attachments"
tags: ["purchases"]
---

# GET /companies/{companySlug}/purchases/{purchaseId}/attachments

`GET /companies/{companySlug}/purchases/{purchaseId}/attachments`

## Request

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

Returns all attachments for specified purchase.

## Response `200`

OK

- 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'

## Changes

- **2026-09-03** `2473dacdb89c`: 2 info
  - added the optional property `items/filename` to the response with the `200` status
  - added the optional property `items/uuid` to the response with the `200` status
- **2021-12-08** `4813e5666340`: 3 warning, 1 info
  - added the new `bank_statement` enum value to the `items/type` response property for the response status `200`
  - added the new `ocr` enum value to the `items/type` response property for the response status `200`
  - added the new `unspecified` enum value to the `items/type` response property for the response status `200`
  - the endpoint scheme security `fiken_api_oauth` was removed from the API

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