docs
  1. Resources
  2. Search
  3. Resolve V2

Resolve v2

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

search-v2

​

Search for Categories, Attributes & more

search-v2 Operations

Resolve v2

​

The primary use case is to redirect the user to the best matching result based on their complete query.

The endpoint searches and returns:

  • categories by their name with filters to be applied if identified
    • inactive categories and categories without active products will not be returned
    • a hidden category is returned only when it is configured to be included in search while hidden, which is off by default
  • navigation items by their name
  • products by their unique ids (reference keys, EANs or internal ids)

The response of the endpoint can be tuned using the following settings in the SCAYLE panel.

Word synonyms enable configuration of mapping a word or a phrase into a different word or phrase. For example, "babyleggings" can be set as a synonym for "baby leggings". This will ensure that a search with keyword "babyleggings" finds items that have "baby leggings" in the name.

Navigation synonyms allow mapping of certain words to navigation items. Example the word "opening" can be mapped to a navigation item "Office hours". Setting this configuration will ensure that search with the keyword "opening" returns the navigation item "Office hours".

Excluded products or categories are products or categories marked as "ExcludedFromSearch" - these will not be included in the search results by default. For a category this setting applies while the category is visible; while it is hidden, the "included in search when invisible" setting applies instead.

Include in search is a setting specific to navigation items. Navigation items are by default not found through search, unless explicitly marked as "include in search".

A detailed explanation of the functionality can be found in SCAYLE Panel developer guide

Query Parameters

  • The term parameter specifies the search term.

  • The with parameter can be applied to include related resources, for example, the attributes of a product can be attached using with=product.attributes. It is also possible to filter product attributes by key with=product.attributes:key(plusSize), by type with=product.attributes:type(material_care) or exclude specific keys with=product.attributes:exclude(plusSize). Nested includes can also be attached when available with=product.variants.attributes and multiple combinations are likewise accepted with=product.siblings,product.variants,category.children. When using with=category.children, you can provide categoryDepth parameter to increase child depth. In the following table, there is more information about possible includes.

    Include includes Available Filters
    category.parents
    category.children
    category.properties name
    category.productSorting Includes the product sorting configuration of the category, which defines how products are ordered within the category. Reflects the customer segment of the shopper identified by X-Customer-Token.
    category.seo Includes the SEO metadata for the category (meta title, meta description, SEO headline, SEO description, canonical URL, and search engine indexing flag).
    category.countryLevelCustomData key
    category.shopLevelCustomData key
    navigationItem.customData key
    navigationItem.category
    navigationItem.category.properties name
    navigationItem.category.productSorting Includes the product sorting configuration of the category, which defines how products are ordered within the category. Reflects the customer segment of the shopper identified by X-Customer-Token.
    navigationItem.category.seo Includes the SEO metadata for the category (meta title, meta description, SEO headline, SEO description, canonical URL, and search engine indexing flag).
    navigationItem.category.countryLevelCustomData key
    navigationItem.category.shopLevelCustomData key
    product.attributes key, type, exclude
    product.advancedAttributes key, type, exclude
    product.images (default) images.attributes
    product.videos Include videos of the product.
    product.videos.attributes key, type, exclude
    product.videos.customData key
    product.categories hidden(true)
    product.categories.categoryProperties name
    product.categories.countryLevelCustomData key
    product.categories.shopLevelCustomData key
    product.customData key
    product.definingAttributes
    product.siblings Include available siblings products and apply the same filters, and other properties such as product.siblings.variants, ..., product.siblings.categories.shopLevelCustomData.
    product.siblings.attributes key, type, exclude
    product.siblings.advancedAttributes key, type, exclude
    product.siblings.variants.attributes key, type, exclude
    product.siblings.variants.advancedAttributes key, type, exclude
    product.siblings.customData key
    product.siblings.categories.countryLevelCustomData key
    product.siblings.categories.shopLevelCustomData key
    product.siblings.variants.customData key
    product.siblings.variants.price.customData Include custom data of sibling product variant prices. key
    product.siblings.priceRange.customData Include custom data of the sibling product price range. key
    product.siblings.reductionRange.customData Include custom data of the sibling product reduction range. key
    product.variants See available includes for variants at variants endpoint
    product.variants.customData key
    product.variants.price.customData Include custom data of product variant prices. key
    product.variants.merchant Include merchant data
    product.variants.merchant.customData Include custom data of the variant merchant key
    product.variants.merchant.customData:key() Include the merchant custom data as an empty object
    product.variants.merchant.customData:key(keyA|...) Include the merchant custom data, filtered by the provided key(s)
    product.variants.relatedVariants Include the resolved components of a composite product variant. Always an array once requested, even if the variant isn't composite.
    product.variants.relatedVariants.attributes Include attributes of related-variant components key, type, exclude
    product.variants.relatedVariants.advancedAttributes Include advanced attributes of related-variant components key, type, exclude
    product.variants.relatedVariants.lowestPriorPrice Include the lowest prior price of related-variant components
    product.variants.relatedVariants.customData Include custom data of related-variant components key
    product.variants.relatedVariants.price.customData Include custom data of related-variant component prices key
    product.priceRange
    product.priceRange.customData Include custom data of the product price range. key
    product.reductionRange
    product.reductionRange.customData Include custom data of the product reduction range. key
    product.lowestPriorPrice
    product.searchCategoryIds
    product.baseCategories (deprecated)
    product.masterCategories
  • Defines the number of nested child categories to include in the response.

  • Include hidden categories in the children of returned categories.

  • The categoryId parameter is used to filter the results and limit the returned data to items that belong to the specified category or its child categories.

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

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. When category.productSorting or navigationItem.category.productSorting is included and the customer belongs to a customer segment with its own sorting for a category, productSorting returns that segment's keys, the same keys GET /v1/products applies. Without it, or with an invalid or expired token, the default keys are returned and the request does not fail.

Responses

  • application/json
  • Unable to match an entity

  • application/json
  • application/json
  • application/json
Request Example for get/v2/search/resolve
curl --location 'https://{{tenant-space}}.storefront.api.scayle.cloud/v2/search/resolve?term={{term}}&shopId={{shopId}}'

{
  "type": "product",
  "productSuggestion": {
    "product": {
      "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",
      "customData": {},
      "images": [
        {
          "hash": "images/3e81768c43aab1d12b3c53956a64ff2d.jpg"
        }
      ]
    }
  }
}

Models

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

Last updated: December 02, 2026