Skip to main content
Version: 3.x

sales

List of the shop's sales.

Requires one of the following permissions: MANAGE_DISCOUNTS.

sales(
filter: SaleFilterInput
sortBy: SaleSortingInput
query: String
channel: String
before: String
after: String
first: Int
last: Int
): SaleCountableConnection

Arguments

filter (SaleFilterInput)

Filtering options for sales.

sortBy (SaleSortingInput)

Sort sales.

query (String)

Search sales by name, value or type.

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

channel (String)

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

before (String)

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

after (String)

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

first (Int)

Return the first n elements from the list.

last (Int)

Return the last n elements from the list.

Type

SaleCountableConnection