> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/deprecated/llms.txt)
> Source: https://docs.saleor.io/api-reference/deprecated/products/queries/report-product-sales

# reportProductSales Query

DEPRECATED

No longer supported

List of top selling products.

Requires the MANAGE\_PRODUCTS permission.

```graphql
reportProductSales(
  period: ReportingPeriod!
  channel: String!
  before: String
  after: String
  first: Int
  last: Int
): ProductVariantCountableConnection @deprecated
```

Details

```graphql
type ProductVariantCountableConnection {
  pageInfo: PageInfo!
  edges: [ProductVariantCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="period"></a>

#### [`period`](#period) ● [`ReportingPeriod!`](/api-reference/miscellaneous/enums/reporting-period.md)

Span of time.

<a id="channel"></a>

#### [`channel`](#channel) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Slug of a channel for which the data should be returned.

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come before the specified cursor.

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come after the specified cursor.

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="type"></a>

### Type

<a id="productvariantcountableconnection"></a>

#### [`ProductVariantCountableConnection`](/api-reference/products/objects/product-variant-countable-connection.md)
