Skip to main content
Version: 3.x

sales

DEPRECATED

This field will be removed in Saleor 4.0. Use the promotions query instead.

List of the shop's sales.

Requires MANAGE_DISCOUNTSpermission.
sales(
filter: SaleFilterInput
sortBy: SaleSortingInput
query: String
channel: String
before: String
after: String
first: Int
last: Int
): SaleCountableConnection @deprecated

Arguments

sales.filter ● SaleFilterInput input

Filtering options for sales.

sales.sortBy ● SaleSortingInput input

Sort sales.

sales.query ● String scalar

Search sales by name, value or type.

DEPRECATED: this field will be removed in Saleor 4.0. Use filter.search input instead.

sales.channel ● String scalar

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

sales.before ● String scalar

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

sales.after ● String scalar

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

sales.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.

sales.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

SaleCountableConnection object


Was this page helpful?