Get a Page Designer page based on a single page ID. The results will apply the visibility rules for the page's components, such as personalization or scheduled visibility.
Important*: Currently, the Shopper Experience API can’t be used when the storefront password protection feature is enabled.
Important*: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
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 based on a single page ID. The results will apply the visibility rules for the page's components, such as personalization or scheduled visibility.
Important*: Currently, the Shopper Experience API can’t be used when the storefront password protection feature is enabled.
Important*: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
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 will apply the visibility rules for each page's components, such as personalization or scheduled visibility.
Either categoryId
or productId
must be given in addition to aspectTypeId
. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned result contains one element at most.
Important*: Currently, the Shopper Experience API can’t be used when the storefront password protection feature is enabled.
Important*: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
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 will apply the visibility rules for each page's components, such as personalization or scheduled visibility.
Either categoryId
or productId
must be given in addition to aspectTypeId
. Because only a single page-to-product and page-to-category assignment per aspect type can be authored today, the returned result contains one element at most.
Important*: Currently, the Shopper Experience API can’t be used when the storefront password protection feature is enabled.
Important*: Because this resource uses the GET method, you must not pass sensitive data (payment card information, for example) and must not perform any transactional processes within the server-side scripts that are run for the page and components.
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
**
Simple example:
API Version: 1.0.5import { ShopperExperience } from "commerce-sdk-isomorphic"; const clientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; const shopperExperienceClient = new ShopperExperience(clientConfig);
Last Updated: