# Get eBay Site Codes

**Table of Contents**

### Overview

In order to get the list of the eBay site codes for a company, you can consume the endpoint presented in this article. In order to consume it, you must:

- Be an authenticated user

For information on how you can authenticate, see: Authentication

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

### Endpoint

Example for such endpoint for **TT** server is:

```plaintext
https://tt.api.sellercloud.com/rest/api/Companies/{id}/Settings/ebay/SiteCodes
```

For your server endpoint will be:

```plaintext
https://{your_server_id}.api.sellercloud.com/rest/api/Companies/{id}/Settings/ebay/SiteCodes
```

### Request

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

### Response

- If user is authenticated, then response will be **Status Code 200 => OK** and list of the company eBay site codes 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, response will be **Status Code 500 => Internal Server Error**

### Response Body Format

```json
[
  {
    "Key": 0,
    "Value": "string"
  }
]
```
