---
title: "Get report file"
method: GET
path: "/reports/{id}/files/{fileId}"
tags: ["Reports"]
---

# Get report file

`GET /reports/{id}/files/{fileId}`

## Request

- Base URL: `https://{prefix}.api.sandbox.checkout.com`
- URL: `https://{prefix}.api.sandbox.checkout.com/reports/{id}/files/{fileId}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `string` scopes: `reports`, `reports:view`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/checkout/apis/checkout-com-api-reference/docs/reports/:id/files/:fileId/get.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to retrieve a specific file from a given report using their respective IDs.

## Path parameters

- `id` string, required
- `fileId` string, required

## Other responses

- `302`: Redirect to the report file download location.
- `401`: Unauthorized. Likely causes include an invalid or unspecified access token.
- `404`: No report with the specified ID was found.

---

[API](https://skmtc.dev/checkout/apis/checkout-com-api-reference.md) - [All operations](https://skmtc.dev/checkout/apis/checkout-com-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/checkout/apis/checkout-com-api-reference/revisions/0f1abdb1c3e9?raw)
