# Mark Orders as Exported or Not Exported

**Table of Contents**

### Overview

Endpoint is used for marking orders as exported or not exported in bulk. 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/)

### Endpoint

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

For your server endpoint will be:

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

### 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 |
| Exported | boolean | Indicated if orders to be marked as exported or not. | Yes |

### Example Request

```json
{
   "Orders":
   [
        1001,
        1002,
        1003
   ],
    "Exported": 1
}
```

### Response

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

### Example Response

#### Response Body

```json
[
   1001
]
```

#### Response Code

```
200
```
