docs
  1. Resources
  2. Products
  3. List Products

List products

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

products

​

Get products

products Operations

List products

​

Requesting this API endpoint is the main way to retrieve your product data to display in any context. A product is basically any individual item in the shop.

There are basically two ways to use this endpoint:

  • Search for products by specifying search/filter parameters

  • Directly fetch known products by their product IDs


Searching for products

The various filter parameters can be used to restrict the list of products included in the response (see available parameters below).

You can also use the /v1/filters endpoint to determine which filters are available in the current context. This way, you can, for example, enable users to narrow down general product lists to very specific results by incrementally adding more and more filter parameters.

The minProductId, includeSellableForFree, and includeSoldOut parameters can further restrict or expand the search results (see below).

Note: Filters only affect which products are returned. They do not affect any other product data. For example, using ?filters[merchantId] will not change the variants returned in the response.


Fetching products by product ID

To fetch a list of known products, simply specify them by product ID using the ids parameter, for example, /v1/products?ids=1,2,3. This offers a notable performance advantage since it eliminates the need for a search step.

If you specify the ids parameter, all other search/filter parameters will be ignored.


Running a script that iterates over all products

To iterate over all products, you must use ?minProductId={id} in combination with sortDir=asc and sort=id. This is far more performant than using offset or pagination and bypasses the 500000 maximum result limitation.

Implementation note: The script should start with an initial request using ?minProductId=0. For each subsequent request, use the ID of the last product from the previous response + 1 as the new minProductId. The process is complete when a request returns an empty list of products.


Selecting included product data

By default, only basic product data is included in the response. Use the with parameters (see below) to include more product data.

To see all available product data, for example, for debugging, you might use unrestricted with parameters: ?with=attributes,advancedAttributes,categories,images.attributes,priceRange,reductionRange,siblings,variants.attributes,variants.advancedAttributes.

Beware of using these unrestricted with parameters in production applications. It will result in slow performance, as download sizes for full product data lists can be quite big. Including only exactly what is needed will be best for performance when downloading and parsing the result.

A typical request for a product list optimized for maximum performance is, for example, ?with=attributes:key(brand|color),advancedAttributes:key(description),variants.attributes:key(vendorSize),priceRange,reductionRange.


Filtering Out Excluded Products

By default, all products are included in search results. However, you can apply a filter to exclude them using the following query parameter:

?filters:not[isExcludedFromSearch]={attributeId}

Replace {attributeId} with the ID of the value associated to the product's attribute isExcludedFromSearch=true.


Sorting

You can order the results using different sorting strategies, based on the provided sort, sortingKey, and sortDir parameters.

  • Category sorting: If you filter by a single category and specify no sort, sortingKey or filters[term], the products are sorted by the category's default sorting keys (productSorting in the Categories API). If the customer identified by X-Customer-Token belongs to a customer segment with its own sorting for the category, that sorting is used instead. To specify the order, use the sortDir parameter (default desc).

  • Default sorting: If no other sorting applies, the products will be sorted by product ID. To specify the order, use the sortDir parameter (default desc, highest product ID first).

  • Price sorting: sort=price will sort the results by price. To specify the order, use the sortDir parameter (default desc, highest price first).

  • Reduction sorting: sort=reduction will sort the results by price reduction. This sorting is based on the available appliedReductions for each product's variants. When a campaignKey is also provided, the sorting will also consider the campaign reduction. To specify the order, use the sortDir parameter (default desc, highest reduction first).

  • Date sorting: sort=new will order the products by firstLiveAt field. If firstLiveAt is not set the products will be ordered by creation date. To specify the order, use the sortDir parameter (default desc, most recent date first).

  • Key sorting: sortingKey will order the results based on your custom sorting keys, for example, sortingKey=wcc-default. Multiple sorting keys are also allowed for example, sortingKey=wcc-default,wcc-custom, which allow to segment the products into bigger chunks and then sort these chunks using the subsequent sorting keys. If the sortingKey parameter has been provided, the sort parameter will be ignored. To specify the order, use the sortDir parameter (default desc, highest value first).

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.

  • Retrieve results with productId matching specified ids, for example, ids=1,2,3.

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

  • Defaults to false. When set to true, the response also includes variants with price=0.

    A price=0 variant only exists if the product is configured as sellable for free, which requires both the isSellableForFree attribute on the product and the corresponding setting in the Panel.

    This parameter has no effect when products are fetched by ids or referenceKey.

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

  • Allow fetching products using its reference key, e.g., ?referenceKey=014901100002-Blue.

  • Adjust variant price based on the specified pricePromotionKey. If the variant does not have a matching price promotion, the default price is returned.

  • Sort results by specified sort type. When no sort is specified, results are sorted as described under Sorting in the endpoint description.

    sort sortDir=asc sortDir=desc
    price results with lowest price first results with highest price first (default)
    reduction results with lowest reduction first results with highest reduction first (default)
    new results with oldest firstLiveAt date first results with newest firstLiveAt date first (default)
    (none) results with lowest productId first results with highest productId first (default)
    values
    idnewpricereduction
  • Sort results in the specified direction (asc for ascending or desc for descending).

  • Ignore sort parameter and sort results by the specified sortingKey instead. Accepts a comma-separated list of values. Can include both predefined Smart Sorting Keys and custom sorting values.

  • 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
  • Exclude results with the specified id values, e.g., filters:not[id]=100,101.

  • 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)
  • Filter the products which belong to a specific category.

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

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

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

  • Only include results with a reduction of less than or equal to maxReduction percent. E.g., filters[maxReduction]=30, for example, will include all products which have 30% or less reduction on the price.

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

  • Only include results with a reduction greater than or equal to minReduction percent. filters[minReduction]=10, for example, will include all products which have at least 10% reduction on the price.

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

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

  • Only retrieve products that have a variant which matches the provided attribute parameters.

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

  • 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

  • Retrieve products which first appeared live after the provided value.

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

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

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

  • Retrieve products sellable within a specific timeframe.

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

  • Include related product resources, for example, the attributes of a product can be included using with=attributes or with=attributes:key(plusSize). Specific keys can be excluded instead of selected, e.g., with=attributes:exclude(plusSize). Nested includes can be included with with=variants.attributes. Multiple includes are separated by commas with=siblings,variants.

    Include Description
    categories Include categories related to the product.
    categories:hidden(true) Also include hidden categories.
    categories.shopLevelCustomData Include shop-level custom data of categories.
    categories.shopLevelCustomData:key() Include shop-level custom data of categories with empty object.
    categories.shopLevelCustomData:key(keyA|...) Include shop-level custom data of categories with only specified keys.
    categories.countryLevelCustomData Include country-level custom data of categories.
    categories.countryLevelCustomData:key() Include country-level custom data of categories with empty object.
    categories.countryLevelCustomData:key(keyA|...) Include country-level custom data of categories with only specified keys.
    categories.categoryProperties:name(keyA|...) Include only specified category properties.
    masterCategories Include master categories of the product.
    baseCategories Include base categories of the product. (deprecated)
    searchCategoryIds Include the list of IDs of all categories associated with the product, both hidden and visible.
    attributes Include all product attributes.
    attributes:key(keyA|...) Include only attributes with specified keys.
    attributes:exclude(keyA|...) Include all attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    attributes:type(typeA|...) Include only attributes with specified types.
    advancedAttributes Include all product advanced attributes.
    advancedAttributes:key(keyA|...) Include only advanced attributes with specified keys.
    advancedAttributes:exclude(keyA|...) Include all advanced attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    advancedAttributes:type(typeA|...) Include only advanced attributes with specified types.
    definingAttributes Include defining attributes of the product.
    customData:key() Include custom data of the product with empty object.
    customData:key(keyA|...) Include custom data of the product with only specified keys.
    priceRange Include information about the price range of the product.
    priceRange.customData Include custom data of the product price range (min/max prices).
    priceRange.customData:key() Include custom data of the product price range with empty object.
    priceRange.customData:key(keyA|...) Include custom data of the product price range with only specified keys.
    lowestPriorPrice Include the lowest prior price of the product.
    reductionRange Include information about the reduction range of the price.
    reductionRange.customData Include custom data of the product reduction range (min/max prices).
    reductionRange.customData:key() Include custom data of the product reduction range with empty object.
    reductionRange.customData:key(keyA|...) Include custom data of the product reduction range with only specified keys.
    sellableTimeframe Include the sellable timeframe of the product.
    images.attributes Include attributes of product images.
    images.attributes:key(keyA|...) Include only image attributes with specified keys.
    images.attributes:exclude(keyA|...) Include all image attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    images.attributes:type(typeA|...) Include only image attributes with specified types.
    images.customData:key() Include custom data of product images with empty object.
    images.customData:key(keyA|...) Include custom data of product images with only specified keys.
    videos Include videos of the product.
    videos.attributes Include attributes of product videos.
    videos.attributes:key(keyA|...) Include only video attributes with specified keys.
    videos.attributes:exclude(keyA|...) Include all video attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    videos.attributes:type(typeA|...) Include only video attributes with specified types.
    videos.customData:key() Include custom data of product videos with empty object.
    videos.customData:key(keyA|...) Include custom data of product videos with only specified keys.
    variants Include product variants.
    variants.attributes Include attributes of product variants.
    variants.attributes:key(keyA|...) Include only variant attributes with specified keys.
    variants.attributes:exclude(keyA|...) Include all variant attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    variants.attributes:type(typeA|...) Include only variant attributes with specified types.
    variants.advancedAttributes Include advanced attributes of product variants.
    variants.advancedAttributes:key(keyA|...) Include only variant advanced attributes with specified keys.
    variants.advancedAttributes:exclude(keyA|...) Include all variant advanced attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    variants.advancedAttributes:type(typeA|...) Include only variant advanced attributes with specified types.
    variants.lowestPriorPrice Include the lowest prior price of product variants.
    variants.price.customData Include custom data of product variant prices.
    variants.price.customData:key() Include custom data of product variant prices with empty object.
    variants.price.customData:key(keyA|...) Include custom data of product variant prices with only specified keys.
    variants.customData:key() Include custom data of product variants with empty object.
    variants.customData:key(keyA|...) Include custom data of product variants with only specified keys.
    variants.merchant Include merchant information for product variants.
    variants.merchant.customData:key() Include custom data of product variant merchants with empty object.
    variants.merchant.customData:key(keyA|...) Include custom data of product variant merchants with only specified keys.
    variants.relatedVariants Include the resolved components of a composite product variant. Always an array once requested, even if the variant isn't composite. Not supported on sibling variants.
    variants.relatedVariants.attributes Include attributes of related-variant components.
    variants.relatedVariants.attributes:key(keyA|...) Include only related-variant component attributes with specified keys.
    variants.relatedVariants.attributes:exclude(keyA|...) Include all related-variant component attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    variants.relatedVariants.attributes:type(typeA|...) Include only related-variant component attributes with specified types.
    variants.relatedVariants.advancedAttributes Include advanced attributes of related-variant components.
    variants.relatedVariants.advancedAttributes:key(keyA|...) Include only related-variant component advanced attributes with specified keys.
    variants.relatedVariants.advancedAttributes:exclude(keyA|...) Include all related-variant component advanced attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    variants.relatedVariants.advancedAttributes:type(typeA|...) Include only related-variant component advanced attributes with specified types.
    variants.relatedVariants.lowestPriorPrice Include the lowest prior price of related-variant components.
    variants.relatedVariants.customData:key() Include custom data of related-variant components with empty object.
    variants.relatedVariants.customData:key(keyA|...) Include custom data of related-variant components with only specified keys.
    variants.relatedVariants.price.customData Include custom data of related-variant component prices.
    variants.relatedVariants.price.customData:key() Include custom data of related-variant component prices with empty object.
    variants.relatedVariants.price.customData:key(keyA|...) Include custom data of related-variant component prices with only specified keys.
    siblings Include sibling products.
    siblings.categories Include categories of sibling products.
    siblings.categories:hidden(true) Also include hidden categories of sibling products.
    siblings.categories.shopLevelCustomData Include shop-level custom data of sibling product categories.
    siblings.categories.shopLevelCustomData:key() Include shop-level custom data of sibling product categories with empty object.
    siblings.categories.shopLevelCustomData:key(keyA|...) Include shop-level custom data of sibling product categories with only specified keys.
    siblings.categories.countryLevelCustomData Include country-level custom data of sibling product categories.
    siblings.categories.countryLevelCustomData:key() Include country-level custom data of sibling product categories with empty object.
    siblings.categories.countryLevelCustomData:key(keyA|...) Include country-level custom data of sibling product categories with only specified keys.
    siblings.categories.categoryProperties Include all category properties of sibling products.
    siblings.categories.categoryProperties:name(keyA|...) Include only specified category properties of sibling products.
    siblings.masterCategories Include master categories of sibling products.
    siblings.baseCategories Include base categories of sibling products. (deprecated)
    siblings.attributes Include all attributes of sibling products.
    siblings.attributes:key(keyA|...) Include only sibling product attributes with specified keys.
    siblings.attributes:exclude(keyA|...) Include all sibling product attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.attributes:type(typeA|...) Include only sibling product attributes with specified types.
    siblings.advancedAttributes Include all advanced attributes of sibling products.
    siblings.advancedAttributes:key(keyA|...) Include only sibling product advanced attributes with specified keys.
    siblings.advancedAttributes:exclude(keyA|...) Include all sibling product advanced attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.advancedAttributes:type(typeA|...) Include only sibling product advanced attributes with specified types.
    siblings.definingAttributes Include defining attributes of sibling products.
    siblings.customData:key() Include custom data of sibling products with empty object.
    siblings.customData:key(keyA|...) Include custom data of sibling products with only specified keys.
    siblings.priceRange Include information about the price range of sibling products.
    siblings.priceRange.customData Include custom data of the sibling product price range (min/max prices).
    siblings.priceRange.customData:key() Include custom data of the sibling product price range with empty object.
    siblings.priceRange.customData:key(keyA|...) Include custom data of the sibling product price range with only specified keys.
    siblings.lowestPriorPrice Include the lowest prior price of sibling products.
    siblings.reductionRange Include information about the reduction range of sibling product prices.
    siblings.reductionRange.customData Include custom data of the sibling product reduction range (min/max prices).
    siblings.reductionRange.customData:key() Include custom data of the sibling product reduction range with empty object.
    siblings.reductionRange.customData:key(keyA|...) Include custom data of the sibling product reduction range with only specified keys.
    siblings.sellableTimeframe Include the sellable timeframe of sibling products.
    siblings.images.attributes Include attributes of sibling product images.
    siblings.images.attributes:key(keyA|...) Include only sibling product image attributes with specified keys.
    siblings.images.attributes:exclude(keyA|...) Include all sibling product image attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.images.attributes:type(typeA|...) Include only sibling product image attributes with specified types.
    siblings.images.customData:key() Include custom data of sibling product images with empty object.
    siblings.images.customData:key(keyA|...) Include custom data of sibling product images with only specified keys.
    siblings.videos Include videos of sibling products.
    siblings.videos.attributes Include attributes of sibling product videos.
    siblings.videos.attributes:key(keyA|...) Include only sibling product video attributes with specified keys.
    siblings.videos.attributes:exclude(keyA|...) Include all sibling product video attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.videos.attributes:type(typeA|...) Include only sibling product video attributes with specified types.
    siblings.videos.customData:key() Include custom data of sibling product videos with empty object.
    siblings.videos.customData:key(keyA|...) Include custom data of sibling product videos with only specified keys.
    siblings.variants Include variants of sibling products.
    siblings.variants.attributes Include attributes of sibling product variants.
    siblings.variants.attributes:key(keyA|...) Include only sibling product variant attributes with specified keys.
    siblings.variants.attributes:exclude(keyA|...) Include all sibling product variant attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.variants.attributes:type(typeA|...) Include only sibling product variant attributes with specified types.
    siblings.variants.advancedAttributes Include advanced attributes of sibling product variants.
    siblings.variants.advancedAttributes:key(keyA|...) Include only sibling product variant advanced attributes with specified keys.
    siblings.variants.advancedAttributes:exclude(keyA|...) Include all sibling product variant advanced attributes except specified keys. Combined with key(...)/type(...) the excluded keys are subtracted from the selection.
    siblings.variants.advancedAttributes:type(typeA|...) Include only sibling product variant advanced attributes with specified types.
    siblings.variants.lowestPriorPrice Include the lowest prior price of sibling product variants.
    siblings.variants.price.customData Include custom data of sibling product variant prices.
    siblings.variants.price.customData:key() Include custom data of sibling product variant prices with empty object.
    siblings.variants.price.customData:key(keyA|...) Include custom data of sibling product variant prices with only specified keys.
    siblings.variants.customData:key() Include custom data of sibling product variants with empty object.
    siblings.variants.customData:key(keyA|...) Include custom data of sibling product variants with only specified keys.
    siblings.variants.merchant Include merchant information for sibling product variants.
    siblings.variants.merchant.customData:key() Include merchant custom data of sibling product variants with empty object.
    siblings.variants.merchant.customData:key(keyA|...) Include merchant custom data of sibling product variants with only specified keys.
  • Only include results with a productId greater than or equal to minProductId.

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

  • Track a Search Analytics event.

  • Specify the page number to retrieve. Defaults to 1 if not provided. Valid values range from 1 to 500000.

    Note: that the combined value of page * perPage must not exceed 500000, the maximum number of results.

  • Specify the number of results to return per page. Defaults to 100 if not provided. Valid values range from 1 to 1000.

    Note: that the combined value of page * perPage must not exceed 500000, the maximum number of results.

  • Return limit results per page (for example, limit=25). Using this parameter is exclusive with both page and perPage and is meant to be used with offset parameter. It will transform the pagination response.

    Note: that the combined value of offset + limit must not exceed 500000, the maximum number of results.

  • Skip first offset results. Using this parameter is exclusive with both page and perPage and is meant to be used with limit parameter. It will transform the pagination response.

    Note: that the combined value of offset + limit must not exceed 500000, the maximum number of results.

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.

  • A JWT identifying the customer, used for segment-specific Category sorting (see Sorting in the endpoint description). Without it, or with an invalid or expired token, no segment-specific sorting applies and the request does not fail.

Responses

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

List products
{
  "pagination": {
    "current": 10,
    "total": 95,
    "perPage": 10,
    "page": 1,
    "first": 1,
    "prev": 1,
    "next": 2,
    "last": 10
  },
  "entities": [
    {
      "id": 7,
      "isActive": true,
      "isSoldOut": false,
      "isNew": false,
      "createdAt": "2023-09-22T14:34:44+00:00",
      "updatedAt": "2024-04-10T10:30:08+00:00",
      "indexedAt": "2024-04-23T17:22:14+00:00",
      "firstLiveAt": "2023-09-22T14:35:29+00:00",
      "masterKey": "master-key",
      "referenceKey": "external-reference",
      "images": [
        {
          "hash": "images/52d08cac15a71b5c02428c7989f634b9",
          "attributes": {
            "imageFocus": {
              "id": 1253,
              "key": "imageFocus",
              "label": "Image Focus",
              "type": "",
              "multiSelect": false,
              "values": {
                "id": 66484,
                "label": "Product",
                "value": "product"
              }
            }
          }
        },
        {
          "hash": "images/3e81768c43aab1d12b3c53956a64ff2d.jpg",
          "attributes": {
            "imageFocus": {
              "id": 1253,
              "key": "imageFocus",
              "label": "Image Focus",
              "type": "",
              "multiSelect": false,
              "values": {
                "id": 66483,
                "label": "Detail",
                "value": "detail"
              }
            }
          }
        }
      ],
      "customData": {}
    }
  ]
}

Models

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​

Last updated: December 02, 2026