Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsGitHubDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Catalog pages

Describes the Catalog pages API handler in Optimizely Configured Commerce.

HTTP Verb – GET

URL – /api/v1/catalogpages

Description – Return a single catalog page model with product or category information populated

Base – HandlerBase<GetCatalogPageParameter, GetCatalogPageResult>

Handlers –

OrderHandlerDescription
500CreateRootBreadcrumbAdds the "Home" breadcrumb to the BreadCrumbcollection on the result object.
600ProcessRequestPathProcesses the URL request path to add breadcrumbs to the BreadCrumbcollection on the result object. This adds both category and product breadcrumbs. If the URL path contains a category, the Categoryproperty on the result object is populated with the category data. If the URL path ends with a product URL segment, the Productproperty on the result object is populated with the product data.
700PopulateSubCategoriesPopulates the subcategories for the category in the result. If the GetSubCategoriesproperty on the parameter object equals "false" or the URL path did not contain a category, this handler is skipped. The subcategories are stored in the SubCategoriescollection on the result object.
800PopulateCanonicalPathCreates the canonical path for the product or category. If the Productproperty on the result object is not null, the CanonicalPathproperty on the result object will point to the product page. Otherwise, the CanoncialPathproperty will point to the catalog page (associated with the Catalogproperty on the result object).
900PopulateRedirectUrlIf the request path (Pathproperty on the parameter object) does not equal the actual (or canonical) category or product URL, the RedirectUrlproperty on the result object is populated with the actual URL to redirect appropriately. Also, the NeedRedirectproperty on the result object is set to "true".