---
title: "Get attachments"
method: GET
path: "/consumers/{consumer_id}/accounting/attachments"
tags: ["Accounting", "Attachments"]
---

# Get attachments

`GET /consumers/{consumer_id}/accounting/attachments`

Returns the file content of all attachments linked to an accounting entry (invoice or journal entry). Use this endpoint when an invoice or journal entry has attachments_info.status set to 'yes_to_request'. Pass type=invoice and document_id={invoice_id} for invoices, or type=entry and document_id={entry_id} for journal entries. Each returned item contains a base64-encoded string of the file content (id and base64_string fields).

## Path parameters

- `consumer_id` string, uuid, required

## Query parameters

- `page` integer
- `size` integer
- `folder_id` string, nullable
- `type` 'invoice' | 'entry', required
- `document_id` string, required

## Response `200`

Successful Response

- ChiftPageAttachmentItemOut
  - `items` AttachmentItemOut[], required
    - `id` string, required — The ID of the attachment in the accounting system.
    - `base64_string` string, required — The file content encoded as a base64 string. Decode this to reconstruct the original file (PDF, image, etc.).
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

[API](https://skmtc.net/chift/apis/chift-api.md) · [All operations](https://skmtc.net/chift/apis/chift-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chift/chift-api/versions/b5f1214a482a/schema)
