younifyd
Menu

List filters

List filters

GET/v1/filters

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the List filters action (under filters).
  3. Fill in the fields below, then reference the result from later steps as {{listFilters.response.data}}.

Request

Query parameters

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

filters[category]array<integer>

Filter the products which belong to a specific category.

Default []

filters[ean]array<string>

Retrieve a list of products matching the specified `ean` value, e.g., `filters[ean]=121213213`.

Default []

filters[term]string

Term-based search that returns products where the provided search term matches the name or attribute value within the products. E.g., `filters[term]=blue shirts` __Note__: The attributes used for searching are [configured](/en/user-guide/shops/storefront/search#searchable-attributes) in the Panel. Unless the shop uses the default search fields, at least one searchable attribute must be configured — otherwise a request using this parameter results in a validation error. The API will split the searched term into multiple words. Then it will try to match each of these words against products' name and searchable attributes. The better the searched term matches against a product, the higher the product is returned. But it only requires a single word to match for a product to be returned. A detailed explanation of the functionality can be found in [SCAYLE Panel developer guide](/en/developer-guide/products/search#text-search)

Default null

disableFuzzinessboolean

It disables the typo tolerance value configured for this request. When the parameter is not provided, the typo tolerance is automatically applied according to the [typo tolerance configuration](/en/onboarding-guide/onboarding-frontend/search-in-panel#typo-tolerance) in SCAYLE panel.

Default false

filters[isNew]boolean

You can include only results for products with the specified `is_new` state. * The `filters[isNew]=true` parameter only retrieves products which are considered new. * The `filters[isNew]=false` parameter only retrieves products which are not considered new. __When is a product considered as `new`?__: Products are considered "new" when they were inserted into the shop within a period of 28 days. This value can be adjusted accordingly for each shop.

Default null

filters[maxPrice]integer

Only include results with a price less than or equal to `maxPrice`. __Note__: The value is passed in a currency's fractional monetary unit (for example, 990 cents for 9,90 EUR).

Default null

filters[minPrice]integer

Only include results with a price greater than or equal to `minPrice`. __Note__: The value is passed in a currency's fractional monetary unit (for example, 990 cents for 9,90 EUR).

Default null

filters[sale]boolean

Only include results based on a products' `sale` state. Products are considered as `sale` when: * Any of its variants is on sale. * There is an active campaign and the `campaignKey={campaignKey}` is given.

Default null

filtersobject

Only include results with the specified attribute ID for the attribute parameter `attributeKey`, e.g., `filters[brand]=882`. * Any attribute available on the products via `with=attributes` might be used as a filter.

Default {}

filters:notobject

Exclude results with the specified attribute value for the attribute parameter `attributeKey`, e.g., `filters:not[brand]=882&filters:not[color]=549`. * Any attribute available on the products via `with=attributes` might be used as a filter exclusion. * You can provide multiple not filters (e.g., retrieve all products that are not red and not from brand Nike) in the query and multiple values for a single attribute, e.g., `filters:not[color]=545,345`

Default {}

orFiltersOperatorarray<string>

By default, if multiple filters are given, each filter is working as `AND` filter. This parameter accepts comma separated attribute group names and enables `OR` logic for these fields. * Can be used together with attribute filters * Example: `?filters[attributeGroup1]=123&filters[attributeGroup2]=456,789&filters[attributeGroup3]=9&orFiltersOperator=attributeGroup2,attributeGroup3` is equivalent to `attributeGroup1 AND (attributeGroup2 OR attributeGroup3)`

Default []

filters[masterKey]array<string>

Only include results that are matching given `masterKeys` (also known as `styleKeys`). The `masterKey` define the `siblings` relation between products. Multiple masterKeys can be given with a comma as a separator.

Default []

filters[sellableAt]string

Retrieve products sellable within a specific timeframe. __Note__: The provided value shall be datetime in the RFC3339 format: "2020-10-13T00:00:00Z"

Default null

filters[referenceKey]string

Only include results with the specified product's `referenceKey`. Multiple referenceKeys can be given with a comma as a separator.

Default null

filters[variants.referenceKey]array<string>

Only retrieve products with the specified variant's `referenceKey`. Multiple referenceKeys can be given with a comma as a separator.

filters[merchantId]integer

Only include results with merchantId equal to the given `merchantId`. Example: `filters[merchantId]=130`.

Default null

filters[hasCampaignReduction]boolean

Only include products that have a campaign reduction for the given `campaignKey`. This filter can only be used together with an active campaign key and will return products that have a campaign reduction in the campaign.

Default null

campaignKeystring

Adjust prices based on the specified `campaignKey`. If provided campaign doesn't exist, the default price is returned. Please note, that campaign prices are stored in advance and available earlier than the campaign starts.

Default null

includeSoldOutboolean

Defaults to `false`. By default only active products (or products flagged as `visible_without_stock`) are returned. When set to `true`, all products are returned regardless of their stock state, including sold out ones. This parameter has no effect when products are fetched by `ids` or `referenceKey`.

Default false

witharray<string>

The `with` parameter can also include related resources of a filter in the response. * By calling `with=values`, the parameter will include the available filter values and product counts for each filter.

Default []

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

Default null

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

Response

Returns 200 with a array<object>. Read it in later steps with {{listFilters.response.data.<field>}}.

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.

Was this page helpful?