## Get Serial Numbers of a Purchase Order

### Overview

The purpose of this endpoint is for getting serial numbers related to a specific purchase order. These are serial numbers that were received during the receiving sessions of the PO.

In order to consume the endpoint 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 on the call for getting serials of a purchase order.

- Have valid ID of an existing purchase order

### Endpoint

Example for such endpoint for TT server is https://tt.api.sellercloud.com/rest/api/PurchaseOrders/Serials?id={id}

For your server endpoint will be:

https://{your_server_id}.api.sellercloud.com/rest/api/PurchaseOrders/Serials?id={id}

The {id} in the endpoint above should be replaced with a valid Purchase Order ID.

### Request

- Method Type: **HttpGet**  
- Authorization: Use **Bearer Token** \+ token received from token authentication  
- Header info: **Content-Type: application/json**  
- Body data:

|     |     |     |     |
| --- | --- | --- | --- |
| **Parameter** | **Data Type** | **Description** | **Is Required** |
| id | integer | ID of existing purchase order. | yes |

### Response

- If an error occurs, then the response will be status code 500 => Internal Server Error  
- If getting purchase order serials is successful, then the response will have the following format:

```json
[
     {
        "ID": 10881,
        "ProductID": "Honey",
        "Price": 1,
        "Serials": [{
            "SerialNumber": "123123"
        }]
    }
]
```

- field ID- Purchase Order Item ID  
- field ProductID- product sku of the Purchase Order Item  
- field Price – price of the Purchase Order Item  
- field Serials- array of objects with all serial numbers for the received units of the Purchase Order Item
