---
title: "Retrieve one transaction file"
method: GET
path: "/v1/transactions/{transaction_id}/files/{file_id}"
tags: ["Transaction"]
---

# Retrieve one transaction file

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

Returns a single attached file (with its blob) by attachment id. Responds `404` when the
file does not belong to the transaction's documentation.

## Path parameters

- `transaction_id` string, uuid, required
- `file_id` string, uuid, required

## Headers

- `company-id` string, uuid, required

## Response `200`

The requested file

- TransactionFile — An ActiveStorage attachment stored against a transaction's documentation, serialized together with its blob. Returned by the transaction file endpoints.
  - `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` — File not found

---

[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)
