Skip to main content

DiscountSearchInput

Search criteria for filtering discount records with comprehensive filtering options.

Supports filtering by pricesheet associations, category assignments, percentage ranges, effective dates, product assignments, and more. All fields are optional and can be combined for precise discount discovery.

input DiscountSearchInput {
page: Int
offset: Int
createdAt: DateSearchInput
lastModifiedAt: DateSearchInput
ids: [String!]
pricesheetIds: [String!]
productIds: [Int!]
categoryIds: [Int!]
priceGroups: [String!]
value: DecimalSearchInput
discountTypes: [PriceDiscountType!]
quantityFrom: NumberSearchInput
sortInputs: [DiscountSortInput!]
validFrom: DateSearchInput
validTo: DateSearchInput
}

Fields

DiscountSearchInput.page ● Int scalar

Page number for pagination results.

Minimum value is 1. Used with offset to control result pagination for large discount datasets.

DiscountSearchInput.offset ● Int scalar

Number of discount records to return per page.

Minimum value is 1. Controls the size of each page in paginated results for efficient data loading.

DiscountSearchInput.createdAt ● DateSearchInput input

Search by date created

DiscountSearchInput.lastModifiedAt ● DateSearchInput input

Search by date changed

DiscountSearchInput.ids ● [String!] list scalar

Filter by specific discount record identifiers.

Array of unique UUID values representing discount records. Each ID must be a valid UUID format. Use this to retrieve specific discount records by their primary keys.

DiscountSearchInput.pricesheetIds ● [String!] list scalar

Filter by pricesheet associations.

Array of unique UUID values representing pricesheet records. Returns discounts that belong to any of the specified pricesheets. Use this to find all discounts within specific pricing contexts.

DiscountSearchInput.productIds ● [Int!] list scalar

Filter by product-specific discount assignments.

Array of unique product identifiers. Returns discounts that apply to any of the specified products. Use this to find product-specific promotional pricing and targeted discounts.

DiscountSearchInput.categoryIds ● [Int!] list scalar

Filter by category-wide discount assignments.

Array of unique category identifiers. Returns discounts that apply to any of the specified categories. Use this to find category-level promotional pricing and bulk discount strategies.

DiscountSearchInput.priceGroups ● [String!] list scalar

Search by price groups

DiscountSearchInput.value ● DecimalSearchInput input

Search by values

DiscountSearchInput.discountTypes ● [PriceDiscountType!] list enum

Discount type. One of: [costpriceplus, listpricemin, netprice]

DiscountSearchInput.quantityFrom ● NumberSearchInput input

Search by quantity from

DiscountSearchInput.sortInputs ● [DiscountSortInput!] list input

Inputs to sort by

DiscountSearchInput.validFrom ● DateSearchInput input

Search by valid from

DiscountSearchInput.validTo ● DateSearchInput input

Search by valid to

Member Of

discounts query