---
title: "Download an attachment from an invoice"
method: GET
path: "/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}/download"
tags: ["invoices"]
---

# Download an attachment from an invoice

`GET /companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}/download`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/invoices/{invoiceId}/attachments/{attachmentId}/download`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `/authorize`
    - Client credentials
    - Token URL: `/token` scopes: `invoices:write`

Download the attachment with the matching attachmentId.

**Scope:** `invoices:read`

## Response `200`

Attachment found and downloaded successfully.

## Other responses

- `404`: Attachment not found

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
