# List Line Items by Order

<mark style="color:purple;">`GET`</mark> `/lineitems/:orderId`

Use this method to get all the line items of an order.

#### **Path Parameters**

| Name    | Type   | Description     |
| ------- | ------ | --------------- |
| orderId | Number | ID of the order |

**Headers**

| Name          | Value           |
| ------------- | --------------- |
| Authorization | `Basic <token>` |

#### **Response**

{% tabs %}
{% tab title="200 : OK Line Items details" %}

```json
[
  {
    "id": number,
    "name": string,
    "is_archived": boolean,
    "account": {
      "id": number,
      "name": string
    },
    "order": {
      "id": number,
      "name": string
    },
    "status": string, //Options ('needs_creative', 'ready', 'delivering', 'paused', 'completed')
    "mediatype": string, //Options ('banner', 'video', 'native', 'audio')
    "delivery": {
      "start_date": string,
      "end_date": string,
      "rate": number,
      "cur": string, //Options('EUR', 'USD')
      "quantity": number,
      "rate_type": string,
      "ratio": number
    },
    "targetings": [
      {
      'targeting_type': { //Options ('Browser', 'Connection', 'Country', 'Device', 'OS', 'Page', 'Site', 'SupplierSegment', 'TagId')
          "type": string, //Options ('Included', 'Excluded')
          "filters": string[]
        }
      }
    ],
    "comment": string,
  }
]
```

{% endtab %}

{% tab title="401 : Unauthorized" %}

```json
Unauthorized
```

{% endtab %}
{% endtabs %}
