### Overview

In order to get information for custom columns of a single product, you can consume the endpoint presented in this article. In order to consume it, 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 receiving custom columns of a product

- Have valid ID of an existing product

### Endpoint

NOTE: Endpoint “GET /api/Products/{productID}/CustomColumns/” is obolete as it does not support special characters in the productID. Use the new endpoint presented in this article.

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

[https://tt.api.sellercloud.com/rest/api/Products/CustomColumns](https://tt.api.sellercloud.com/rest/api/Products//CustomColumns)

For your server endpoint will be:

​https://{your_server_id}.api.sellercloud.com/rest/api/Products/CustomColumns

### Request

- Method Type: **HttpGet**
- Authorization: Use **Bearer Token** \+ token received from token authentication
- Header info: **Content-Type: application/json**
- Parameters: ID of the product

|     |     |     |     |
| --- | --- | --- | --- |
| Parameter | Data Type | Description | Is Required |
| productID | string | ID of existing product | true |

### Response

- If user is authenticated and provides a valid ID of a product, then response will be **Status Code 200 => OK** and product custom columns information in JSON format
- If user is not authenticated, then response will be **Status Code 401 => Not Valid Token**
- On server error => **Status Code 500 => Internal Server Error**

### Response Format

```
{
  "ID": 1,
  "ColumnName": "ProductUserDefinedColumn",
  "DisplayName": "Product Column",
  "DataType": 1,
  "DataLength": 12,
  "IsDropdownColumn": 0,
  "IsDropDownCustomTextAllowed": 0,
  "Value": 2
}
```

**_DataType_** field represents type of the custom column.

```
String = 0,
Integer = 1,
Decimal = 2,
DateTime = 3,
Boolean = 4,
nText = 5,
Hyperlink = 6
```
