# Update existing order items

## Overview

The endpoint presented in this article is used for updating existing order items of an existing order.

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 when updating items.

## Endpoint

Example for such endpoint for TT server is  
`https://tt.api.sellercloud.com/rest/api/Orders/{orderID}/items`

For your server endpoint will be:  
`https://{your_server_id}.api.sellercloud.com/rest/api/Orders/{orderID}/items`

## Request

- **Method Type:** HttpPut  
- **Authorization:** Use **Bearer Token** + token received from token authentication  
- **Header info:** **Content-Type: application/json**  
- **Parameters:** orderID of the order

|     |     |
| --- | --- |
| **Data Type** | **Description** |
| \[<br>{<br>“OrderItemID”: 0,<br>“ProductID”: “string”,<br>“ProductName”: “string”,<br>“SitePrice”: 0,<br>“DiscountValue”: 0,<br>“DiscountType”: “FixedAmount”,<br>“Qty”: 0<br>}<br>\] | Information about the Product.<br>OrderItemID is the only mandatory field.<br>Only include the fields that you would like to update. Fields excluded from the request will not be changed on the item in Sellercloud. |

## Response

- If a server error occurs, then the response will have status code 400 => Bad Request
- If the request is successful, response will have status code http 200 OK, with :

```
    "Items updated successfully"
    ```
