Each page type has a set of applicable query parameters, found in the API specification. The query parameters which apply to multiple pages, are detailed and listed in this section.
Base query parameters apply to all pages. Those which are mandatory must be supplied for all requests, while optional ones are likely to be either be supplied in an equivalent manner for all page types or not at all.
The visitor market. Must match the corresponding market identifier in the data feed.
UK
locale
string
The visitor locale. Must match an available locale identifier on the current market in the data feed.
en-GB
touchpoint
string
The visitor's touchpoint. Valid values are DESKTOP and MOBILE.
DESKTOP
customerKey
string
A key that uniquely identifies the current visitor. Using UUIDs as keys are recommended.
0b05119e-eeb8-418a-bbfb-defa0dde417e
sessionKey
string
A unique key, identifying the session. Using UUIDs as keys are recommended.
0b05119e-eeb8-418a-bbfb-defa0dde417e
Correct usage of the customer and session keys are essential for the behavioral data to be analysed correctly. A session starts when a visitor arrives at a site, and is identified through a unique sessionKey. The same sessionKey must be used though out the visit. For more information about customer keys, see Visitor identification.
A custom price identifier. Must match supplied custom price identifiers in the data feed.
EUR
channels
string
Which channels to use. Valid values are ONLINE and STORE. Multiple values are provided with a pipe, |, as a separator. channels will default to ONLINE|STORE if nothing is provided. If STORE is explicitly provided, then stores parameter may not be empty. For more information, see Stores and channels.
ONLINE|STORE
stores
string
The stores to use. Will impact which stock is used and displayed together with the channels parameter. Multiple values are provided with a pipe, |, as a separator. Each store must match a supplied store key in the data feed. For more information, see Stores and channels.
240|100
presentCustom
string
Custom attributes of products that are used for presentation in product and recommendation lists. Multiple values are provided with a pipe, |, as a separator. Each custom attribute must match a supplied attribute in the data feed. For more information, see Custom attributes. Can't be used in combination with templateId.
material|sustainable
templateId
string
Which template to apply on products and variants in listings. Can't be used in combination with presentCustom.
templateName
presentPrices
string
Include multiple price identifiers from the supplied custom price identifiers in the data feed. Multiple values are provided with a pipe, |, as a separator.
memberBasic|memberVIP
notify
boolean
Turns off notifications and behavioral registration for the query.
When supplying a price ID to a request, the selling_price and list_price property of all products will be provided as the price in the data feed for that price ID. Sorting, faceting, and filtering on price will also be based on prices with the specified identifier.
Filtering and ranking products based on both online and store specific stock levels are supported in Elevate. Filtering can be done either by default for all listings, or by adding the onlyInStock facet to the site. This lets the visitor control when to show out of stock products. If out of stock products are displayed, they are by default buried and displayed after products that are in stock. These behaviors can be modified in the Out of stock settings for Pages in the Experience app.
The channels parameter determines what channels should be used when filtering and ranking based on stock levels, as discussed above. The ONLINE channel will use the online stock level while the STORE channel will use store specific stock levels. Channels also affect the inStock properties on products and variants, and the general stockNumber on variants in the result. Which store specific stocks levels that are used is decided by the stores parameter.
The availability array on each product variant in the result is unaffected by the channels parameter, and displays unmodified stock levels from the data feed. For regular listings, the stores parameter is used to decide which stores to display, but for the main productGroup of the product-page response the array will include all stores that are present on the variant. Note that the online stock is always included as the first item, and that a store is only included if present on the variant in the data feed.
The following example has three products, each having one variant, with stock levels online and in two physical stores identified by store keys 240 and 100.
Product
Online stock level
Store stock levels
P1
10
240: 5, 100: 0
P2
10
240: 0, 100: 0
P3
0
100: 1
The effect of some parameter combinations on a landing page displaying all products is shown below.
Channels
Stores
Displayed when filtering
P1 result
P2 result
P3 result
ONLINE
240
P1, P2
inStock: true stockNumber: 10 availability: online: 10, store 240: 5
inStock: true stockNumber: 10 availability: online: 10, store 240: 0
inStock: false stockNumber: 0 availability: online: 10, store 100: 0
inStock: false stockNumber: 0 availability: online: 10, store 100: 0
inStock: true stockNumber: 1 availability: online: 0, store 100: 1
Invalid queries
When the STORE value is present in the channels parameter, the stores parameter is required and must not be empty. Failing to supply the stores parameter in this case will result in HTTP status 400 Bad Request.
Customers and integrators that would like to control what custom attributes of products that are available in product lists and recommendation lists of a page can use the query parameter presentCustom. The attributes returned by the query parameter are valid for all lists on the page.
This parameter is not needed for the main product returned in a Product page query, but the parameter will affect any recommendation lists on a product page if included.
presentCustom can't be used in combination with templateId.
Customers and integrators that would like to control which fields, custom attributes as well as predefined attributes, that should be available on products and variants in listings can define a template. The id of the template should be specified with the parameter templateId. Templates are the suggested way to consistently return the same fields for products and variants.
This parameter will not affect the main product returned in a Product page query, but the parameter will affect any recommendation lists on a product page if included.
templateId can't be used in combination with presentCustom.
The notify parameter should always be enabled in production for visitor facing parts of the e-commerce site. However, if any query is used for other purposes such as internal administrative tools or if a load test is run on the production environment with simulated data, ensure that notify=false is applied. This will prevent tests and internal tools to cause noise in statistics as well as erroneous behavior analysis, i.e. notify=false shall only be used in production when the request is undoubtedly unrelated to an actual visitors activity on the site.
Note that this is not an issue for small scale testing, but rather something to consider when lots of non-visitor generated traffic is expected.
Exception
The notify parameter may be disabled using notify=false when you don't have legal rights to track the activities of a visitor on the site.
Facet selections are used for visitor facing product list filters, so called "facets". As opposed to product filters, facets are to be visualized and applicable and reversible by the visitors. All applicable facets are part of the response for Primary Listings. Each facet has an id, which should be provided along with the selected values as query parameters, when selected by the visitors.
Applicable for Text, Color and Size Facets. All facet ids and value ids are found in the response for each facet. Multiple values are provided with a pipe, |, as a separator. No escaping is needed as pipes that are part of the value id itself will be pre-escaped.
Range facets are provided with min and max as suffix to the facet id with values for the desired range. Both min and max are inclusive and default to 0 and the maximum eligible value respectively.
Checkbox facets are similar to Value facets but consist only of one boolean value, represented by the selected property. By default, the selected property can be either true or false. To actively select or deselect the Checkbox facet, and thus apply or clear the filter, the value true or false must be provided as shown below.
The following example illustrates a category page request with a brand, a season (custom attribute), a price range, and a stock filter, onlyInStock, selected as facets. Other request parameters have been omitted for brevity.
For landing pages and category pages, unique page identifiers must be provided. Page identifiers will be visible and used to distinguish between pages in the Elevate Apps, where merchandisers are provided with control of listings for each individual page. The max length of a page id is 200 characters.
For pages on the site, page paths should be used.
/women/dresses
For external requests, an identifier understood by merchandisers should be used.
mms-campaign-S2020
Configuration precedence of Pages
The page identifier, page id or page reference, is used to identify an existing page configuration. An existing page configuration created via the Admin API or Elevate Application takes precedence over configuration supplied in the POST request body.
The sort parameter determines the applied sort order of the listing. All eligible sort orders are found in the Primary Listing response. Sort orders are sent as a query parameter with the id as the value which is one of the listed Sort types, sort=[id].
The following example illustrates a category page request with the sort order NEWEST_FIRST applied. Other request parameters have been omitted for brevity.
This online publication is intellectual property of Voyado Lund AB. Its contents can be duplicated in part or whole, provided that a copyright label is visibly located on each copy and the copy is used in conjunction with the product described within this document.
All information found in these documents has been compiled with utmost attention to detail. However, this does not guarantee complete accuracy. Neither Voyado Lund AB nor the authors shall be held liable for possible errors or the consequences thereof.
Software and hardware descriptions cited in these documents might be registered trademarks. All trade names are subject to copyright restrictions and may be registered trademarks. Voyado Lund AB essentially adheres to the manufacturer’s spelling. Names of products and trademarks appearing in this document, with or without specific notation, are likewise subject to trademark and trade protection laws and may thus fall under copyright restrictions.