# Update Orders Status Code

## Overview

Endpoint is used for updating orders status codes in bulk. In order to utilize this endpoint you must be an authenticated user. For information on how you can authenticate, see: [Authentication](https://developer.sellercloud.com/dev-article/authentication/)

## Endpoint

Example for such endpoint for TT server is [https://tt.api.sellercloud.com/api/Orders/StatusCode](https://tt.api.sellercloud.com/api/Orders/StatusCode)

For your server endpoint will be:

[https://{your_server_id}.api.sellercloud.com/api/Orders/StatusCode](https://{your_server_id}.api.sellercloud.com/api/Orders/StatusCode)

## Request

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

|     |     |     |     |
| --- | --- | --- | --- |
| **Parameter** | **Data Type** | **Description** | **Is Required** |
| Orders | integer | ID of existing order | Yes |
| Status | OrderStatusCode | Enumeration. Indicated status code of the order.<br>Possible status codes can be found [here](https://developer.sellercloud.com/dev-article/order-status/).<br>**Note**: Updating an order status to the “Cancelled” status will mark the order as Cancelled internally, in Sellercloud. It will not send a cancellation request to the channel of the order. | Yes |

## Example Request

```
{
   "Orders":
   [
        1001,
        1002,
        1003
   ],
    "Status": 3
}
```

## Response

- If server error appears, then response will be with status code 500 => Internal Server Error
- If updating order status codes is successful, status code will be OK 200 with info about updated orders.

## Example Response

### Response Body

```
[
   1001
]
```

### Response Code

```
200
```
