Get a Page Designer page for a specific page ID. The results apply the visibility rules for the page's components, such as personalization or scheduled visibility.
Important*:
If you would like to get a raw Response object use the other getPage function.
An object containing the options for this method.
A promise of type Page.
Get a Page Designer page for a specific page ID. The results apply the visibility rules for the page's components, such as personalization or scheduled visibility.
Important*:
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type Page otherwise.
Get Page Designer pages. The results apply the visibility rules for each page's components, such as personalization or scheduled visibility.
You must provide the aspectTypeId
along with either a categoryId
or a productId
. Since you can only create one page-to-product or page-to-category assignment per aspect type, the result contains at most one element.
Important*:
If you would like to get a raw Response object use the other getPages function.
An object containing the options for this method.
A promise of type PageResult.
Get Page Designer pages. The results apply the visibility rules for each page's components, such as personalization or scheduled visibility.
You must provide the aspectTypeId
along with either a categoryId
or a productId
. Since you can only create one page-to-product or page-to-category assignment per aspect type, the result contains at most one element.
Important*:
An object containing the options for this method.
Set to true to return entire Response object instead of DTO.
A promise of type Response if rawResponse is true, a promise of type PageResult otherwise.
Generated using TypeDoc
Shopper Experience
*Use the Shopper Experience API to look up page information for pages that are created in Page Designer.
Responses include the following:
Both the page and components contain the values of all native and custom attributes that have been populated during page authoring.
Only visible pages are returned. Because the visibility of components is driven by rules (scheduling or customer groups, for example), these rules are subject to evaluation when assembling the component hierarchy in the response. Only components that are visible for the current customer context appear in the response. The same rules apply to the page itself, which is only be processed and returned if it is visible.
Important*: Currently, the Shopper Experience API can’t be used when the storefront password protection feature is enabled.
Authentication & Authorization
The Shopper Experience API requires a shopper access token from the Shopper Login and API Access Service (SLAS).
For details on how to request a shopper access token from SLAS, see the guest user flows for public clients and private clients in the SLAS guides.
You must include the relevant scope(s) in the client ID used to generate the SLAS token. For details, see the Authorization Scopes Catalog..*
Simple example:
API Version: 0.0.33import { ShopperExperience } from "commerce-sdk-isomorphic"; const clientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; const shopperExperienceClient = new ShopperExperience(clientConfig);
Last Updated: