# Get Purchase Order Items

**Table of Contents**

### Overview

In order to get information for the purchase order items, you can consume the endpoint presented in this article. In order to do that, you must:

- Be authenticated user

For information on how you can authenticate, see: [Authentication](https://developer.sellercloud.com/dev-article/authentication/)

As soon as you do authentication and receive a valid token, it needs to be passed to the call.

### Endpoint

Example for such endpoint for TT server:

```
https://tt.api.sellercloud.com/rest/api/PurchaseOrders/{id}/Items
```

For your server, the endpoint will be:

```
https://{your_server_id}.api.sellercloud.com/rest/api/PurchaseOrders/{id}/Items
```

### Request

Information about expected request parameters can be found on swagger UI [https://tt/api.sellercloud.com/rest/swagger](https://tt/api.sellercloud.com/rest/swagger).

- **Method Type**: **HttpGet**  
- **Authorization**: Use **Bearer Token** (where ‘Token’ is the token received from the token authentication)  
- **Header info**: **Content-Type: application/json**  
- **Parameters**:

| **Parameters** | **Data Type** | **Description** | **Is Required** |
| --- | --- | --- | --- |
| id | integer | ID of purchase order | Yes |

### Response

- If user is authenticated, then response will be **Status Code 200 => OK** and purchase order items data in JSON format in the response body.
- If user is not authenticated, then response will be **Status Code 401 => Not Valid Token**.
- In case of error, the response will be **Status Code 500 => Internal Server Error**.

### Response Body Format

```json
{
  "PoCaseQtyEnabled": true,
  "Items": [
    {
      "ID": 0,
      "ProductID": "string",
      "ProductName": "string",
      "QtyUnitsOrdered": 0,
      "UnitPrice": 0,
      "QtyCasesOrdered": 0,
      "QtyUnitsPerCase": 0,
      "CasePrice": 0,
      "DiscountType": "FixedAmount",
      "DiscountValue": 0,
      "ExpectedDeliveryDate": "2021-01-06T12:27:59.151Z"
    }
  ]
}
```
