# Get delivered digital content

The codes, links and files delivered in a paid order.

```http
GET https://larm.sa/stores/{storeId}/v1/orders/{id}/digital-items
```

Scope: `orders.digital:read`

File links are signed for the order; send them to the customer, never publish them, and read them again instead of storing them. See [Digital products and delivery](/guides/digital-delivery).

## Path parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes |  |


## Response

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | object | yes |  |
| `data.order_id` | string | yes |  |
| `data.items` | array<object> | yes |  |
| `data.items[].product_id` | string | yes |  |
| `data.items[].name` | string | no |  |
| `data.items[].type` | string | yes | One of: `code`, `link`, `file`, `text`. |
| `data.items[].value` | string | yes | The code, link or text. File links are signed and tied to the order: send them to the customer, never publish them, and read them again when needed instead of storing them. |
| `data.items[].expires_at` | string \| null (date-time) | no | null today for every type. If links gain an expiry, its time will appear here. |
| `meta` | object | yes |  |
| `meta.request_id` | string (uuid) | no | The request ID; include it in any support request. |


## Example request

```bash
curl -X GET "https://larm.sa/stores/$STORE_ID/v1/orders/ord_8Kd2/digital-items" \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```


## Example response (200)

```json
{
  "data": {
    "order_id": "ord_8Kd2",
    "items": [
      {
        "product_id": "311",
        "name": "Top-up card 100 SAR",
        "type": "code",
        "value": "X7Q2-9KLM-4PZT",
        "expires_at": null
      }
    ]
  },
  "execution": {
    "appId": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
    "versionId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
    "installationId": "c7e4a1f2-6b3d-4e8a-9c05-1d2f3a4b5c6d",
    "storeId": "5b1d7a62-0c4e-4f38-9a51-2e7b3c9d8f10",
    "requestId": "3f0c2b8e-7a51-4c1e-9d0a-5b6f1e2d4c3a",
    "generation": 1,
    "routeEpoch": 4,
    "appAuthEpoch": 1,
    "grantRevision": 2
  },
  "meta": {
    "request_id": "3f0c2b8e-7a51-4c1e-9d0a-5b6f1e2d4c3a"
  }
}
```


## Errors

| HTTP | Code | Meaning |
|---|---|---|
| 409 | `ORDER_NOT_PAID` | The order is not paid. |
| 404 | `RESOURCE_NOT_FOUND` | The ID does not exist in this store. |
| 403 | `SCOPE_REQUIRED` | The token does not carry the required scope. |
| 503 | `APPS_SCOPE_RUNTIME_NOT_READY` | The resource is not enabled on this merchant's store yet. |
