---
title: "Query Sales Order Files"
method: GET
path: "/v2/salesOrders/{salesOrderId}/files"
tags: ["salesorder"]
---

# Query Sales Order Files

`GET /v2/salesOrders/{salesOrderId}/files`

Query all files for a specific sales order

## Path parameters

- `salesOrderId` string, uuid, required

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Response `200`

The requested files.

- JTLWawiRestContractsModelsV1SalesOrderSalesOrderFile[]
  - `id` string, uuid
  - `salesOrderId` string, uuid
  - `fileId` string, uuid
  - `fileDataType` string — Type of file.
  - `size` number — Image size.
  - `createdAt` string, date-time — Date when the file was created in the system.
  - `fileName` string — name of the file.

## Other responses

- `401`
- `402` — No licence available or the app has not been authorised by JTL.
- `404` — No fields could be found.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
