# Download a file of one of your own API orders

[All field references](/en/developers/field-reference) · [Orders](/en/developers/fields-group-orders)

`GET /v1/orders/{id}/files/{fileId}`

Returns a short-lived download URL for exactly the file_id read in the order. Orders of others, storage paths and upload URLs are not accepted.

Required scopes: `"orders:read"`.

[How to read these tables](/en/developers/field-reference#reading-the-field-tables)

## Parameters

### path: id

Required. Meykt ID of an order of this API channel and this environment.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | string | Whole value | Not allowed | format: `"uuid"`. |

### path: fileId

Required. file_id from files of the order or of an item.

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | string | Whole value | Not allowed | format: `"uuid"`. |

## Request body

No request body is defined for this operation.

## Response 200

200: Success

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | — |
| data | object | Optional | Not allowed | Authorized response payload or documented event data. |
| data.file | object | Optional | Not allowed | File identity and temporary authorized download information. |
| data.file.id | string | Optional | Not allowed | Stable entry identifier. format: `"uuid"`. |
| data.file.name | string | Optional | Not allowed | Display name. |
| data.file.download_url | string | Optional | Not allowed | Temporary authorized download URL; use before it expires and do not store it as the permanent file reference. format: `"uri"`. |
| data.file.expires_in | integer | Optional | Not allowed | Lifetime of the temporary download URL in seconds. |

## Response 401, 403, 404, 429, 500, 503

401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: `"uri"`. |
