---
title: "List transaction files"
method: GET
path: "/v1/transactions/{transaction_id}/files"
tags: ["Transaction"]
---

# List transaction files

`GET /v1/transactions/{transaction_id}/files`

Lists the files attached to a transaction's documentation. The transaction is resolved from
its accounting-ledger id, and both the concrete and STI base documentation records are
searched so legacy attachments remain retrievable. Returns an empty array when no
documentation exists.

## Path parameters

- `transaction_id` string, uuid, required

## Headers

- `company-id` string, uuid, required

## Response `200`

Attached files with their blobs

- TransactionFile[]
  - `id` string, uuid, required — The attachment id (used as `file_id` in the file endpoints).
  - `name` string — The attachment name (association name, always `files`).
  - `record_type` string — The record type the attachment belongs to.
  - `record_id` string, uuid — The id of the documentation record the attachment belongs to.
  - `blob_id` string, uuid — The id of the underlying blob.
  - `created_at` string, date-time
  - `blob` object — The underlying ActiveStorage blob metadata.
    - `id` string, uuid
    - `key` string — Storage key of the blob.
    - `filename` string
    - `content_type` string
    - `metadata` object
    - `byte_size` integer
    - `checksum` string
    - `created_at` string, date-time
    - `service_name` string

## Other responses

- `401` — Unauthorized
- `404` — Transaction not found (ledger tx could not be resolved)

---

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