docs
  1. Resources
  2. Filters
  3. List Values

List values

{{version}}
OpenAPI 3.1.0

Storefront API Documentation

SCAYLE Storefront API is a REST API used to access your product data in any customer-facing application. Some common scenarios include retrieving campaigns, promotions, categories or configuration. You can also use it to save baskets or wishlists for individual customers and filter and search products.

Core concepts of the Storefront API are: Variant: Any distinct sellable item, for example: a blue colored shirt in size L. Available quantity/stock information is always on variant level. Product: A product is a collection of one or more variants with some shared attributes, for example: A blue colored shirt (product) available in different sizes (variants). A product will be sold out when all its variants are sold out. Sibling: A product closely related to another product, for example, the same shirt by the same brand, but in another color. Category: Each product can be assigned to one or more category nodes in the category tree. Attribute: Attributes are, for example, size, material, color. Attributes can be assigned to product level or variant level. Filter: Any criteria available to filter a list of products, for example: an attribute or a category. Basket: The basket holds variants that a customer intends to buy and has added to his shopping cart. Wishlist: Customers can add variants to a wishlist to remember them or buy them later.

Requests Base URL: https://{{tenant-space}}.storefront.api.scayle.cloud

Authentication

  1. Generate access token in the SCAYLE Panel > Shops > Storefront > API Keys.
  2. Provide the generated access token in the X-Access-Token Header

Note: After the token is generated in the SCAYLE Panel, it can take some time for changes to take effect.

Rate-Limiting Headers

SCAYLE Storefront API enforces a rate-limiting policy to manage the number of requests a client can make within a defined time window. Each response may include the following headers to provide users with their current rate-limit status:

  • X-RateLimit-Limit: Indicates the maximum number of allowed API requests for the current period, specific to the tenant's rate limit.
  • X-RateLimit-Remaining: Shows the remaining number of API requests allowed within the current period, specific to the tenant's rate limit.
  • X-RateLimit-Reset: The date and time when the current rate-limit window will reset.
  • X-RateLimit-Scope: Specifies the scope of the rate limit as it applies to the tenant, e.g., global.

If a tenant exceeds its allowed limit, the response status code will be 429 Too Many Requests.

Server:https://{tenant-space}.storefront.api.scayle.cloud
Client Libraries

filters

​

Get filters

List values

​

Retrieve the filter values and product counts for a specific groupName, for example: /v1/filters/sale/values?filters[category]=20201 will show how many products in the category "20201" are on sale and how many of them are not on sale.

Any valid attribute group can be used. Additionally, these special filters are supported: sale, categoryids, savings, prices, brands, and isnew.

Path Parameters

  • Group Name

Query Parameters

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

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

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

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

  • Filter the products which belong to a specific category.

  • 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 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

  • 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 in SCAYLE panel.

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

  • Retrieve products sellable within a specific timeframe.

    Note: The provided value shall be datetime in the RFC3339 format: "2020-10-13T00:00:00Z"

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

Headers

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

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

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

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

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/filters/{groupName}/values
curl --location 'https://{{tenant-space}}.storefront.api.scayle.cloud/v1/filters/{{groupName}}/values?shopId={{shopId}}'

[
  {
    "name": "S",
    "productCount": 11,
    "id": 15,
    "value": "s"
  },
  {
    "name": "M",
    "productCount": 23,
    "id": 18,
    "value": "m"
  },
  {
    "name": "L",
    "productCount": 8,
    "id": 23,
    "value": "l"
  }
]

Models

​
​
​
​

Last updated: December 02, 2026