Skip to main content
Version: Canary 🚧

reportProductSales

List of top selling products.

Requires MANAGE_PRODUCTSpermission.
reportProductSales(
period: ReportingPeriod!
channel: String!
before: String
after: String
first: Int
last: Int
): ProductVariantCountableConnection

Arguments

reportProductSales.period ● ReportingPeriod! non-null enum

Span of time.

reportProductSales.channel ● String! non-null scalar

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

reportProductSales.before ● String scalar

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

reportProductSales.after ● String scalar

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

reportProductSales.first ● Int scalar

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

reportProductSales.last ● Int scalar

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

Type

ProductVariantCountableConnection object


Was this page helpful?