# Get RMA Custom Columns

## Overview

In order to get information on custom columns for a RMA, 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 to the service call.

- Have a valid RMA ID

## Endpoint

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

​ [https://tt.api.sellercloud.com/](https://{your_server_id}.api.sellercloud.com/rest/api/orders/id=%7Border_id%7D) [rest/api/Rma/{ID}/CustomColumns](https://tt.api.sellercloud.com/rest/api/orders/customcolumns?id={order_id})

For your server endpoint will be:

​ [https://{your_server_id}.api.sellercloud.com/](http://https//%7Byour_server_id%7D.api.sellercloud.com/rest/api/Rma/%7BID%7D/CustomColumns) [rest/api/Rma/{ID}/CustomColumns](https://tt.api.sellercloud.com/rest/api/orders/customcolumns?id={order_id})

## Request

- Method Type: **HttpPost**
- Authorization: Use **Bearer Token** \+ token received from token authentication
- Header info: **Content-Type: application/json**
- Parameters: RMA ID

|     |     |     |     |
| --- | --- | --- | --- |
| Parameter | Data Type | Description | Is Required |
| RMA ID | integer | Valid RMA ID | true |

## Response

- If user is authenticated and provides a valid RMA ID, then response will be **Status Code 200 => OK** and an object which will contain all of the custom columns in JSON format
- If user is not authenticated, then response will be **Status Code 401 => Not Valid Token**
- On server response => **Status Code 500 => Internal Server Error**

## Response Format

```json
{
    "ID": 0,
    "ColumnName": "string",
    "DisplayName": "string",
    "DataType": 0,
    "DataLength": 0,
    "IsDropDownColumn": true,
    "IsDropDownCustomTextAllowed": true,
    "Value": {}
}
```

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

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