---
title: "Get file download link by ID."
method: GET
path: "/{file_id}"
tags: ["Files API"]
---

# Get file download link by ID.

`GET /{file_id}`

Get a link to download a file by ID.

## Path parameters

- `file_id` string, required

## Query parameters

- `merchant_id` string

## Response `2XX`

Success

- FileDownloadResponse
  - `file_id` string, required — A unique identifier for file object.
  - `download_url` string, required — A url used by client to download file.
  - `download_url_expires_at` string, required — A time at which the file download link expires and is no longer available.

## Other responses

- `401` — Unauthorized
- `403` — Not Authorized (Forbidden)
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/affirm/apis/merchant-transaction-api.md) · [All operations](https://skmtc.dev/affirm/apis/merchant-transaction-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/affirm/merchant-transaction-api/revisions/f2f4252c946f/schema)
