> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AnalyticsReportDefinition

> What a report shows and how: its columns with their calculations, its filters, sorting and row limit.

**columns** *required*

The report's columns, in display order.

**fields**

**calculation** `String`

How the column is calculated, such as `count of distinct returns`. Null for a column read as stored.

**caveat** `String`

Anything that changes how the column should be read.

**decimalPlaces** `Int`

How many decimal places the merchant shows. Null for the default.

**description** `String`

What the column means.

**filters** *required*

Filters that apply to this column only.

**fields**

**description** `String`

What the filter keeps or drops.

**label** `String!` *required*

The filter's name.

**key** `String!` *required*

The column's stable key.

**kind** *required*

What the column holds.

**label** `String!` *required*

The column's header.

**filters** *required*

Filters on every row of the report, including its date range.

**fields**

**description** `String`

What the filter keeps or drops.

**label** `String!` *required*

The filter's name.

**rowDescription** `String`

What one row represents, such as `One row per return`.

**rowLimit** `Int`

The most rows the report returns. Null for no limit.

**sorts** *required*

How rows are ordered, first key first.

**fields**

**columnKey** `String!` *required*

The key of the sorted column.

**columnLabel** `String!` *required*

The header of the sorted column.

**direction** *required*

The sort direction.

**summary** `String`

A short explanation of the report, written when it was made.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.