PXM Hierarchies/
PXM Hierarchies API/
PXM Hierarchies API Overview

PXM Hierarchies API Overview

The Hierarchy Object

NameTypeDescription
typestringAlways: hierarchy
idstringThe generated unique identifier for the hierarchy.
attributes.namestringThe name of the hierarchy, such as Major Appliances.
attributes.descriptionstringA description of the hierarchy.
attributes.slugstringA unique slug for the hierarchy.
attributes.localesobjectThe product details localized in the supported languages. For example, product names or descriptions.

The Node Object

NameTypeDescription
typestringAlways: node
idstringThe generated unique identifier for the node.
attributes.namestringThe name of the node, such as Ranges or Refrigerators. Names must be unique among sibling nodes in the hierarchy. Otherwise, a name can be non-unique within the hierarchy and across multiple hierarchies.
attributes.descriptionstringA description of the node.
attributes.slugstringA slug for the node. Slugs must be unique among sibling nodes in the hierarchy. Otherwise, a slug can be non-unique within the hierarchy and across multiple hierarchies.
attributes.curated_productsstringThe curated products for a node. See Curating Products in a Node.
attributes.localesobjectThe product details localized in the supported languages. For example, product names or descriptions.
metaobjectThe sort_order for each node. See Sorting Node Order.

The locales Object

PXM supports localization of products and hierarchies. If your store supports multiple languages, you can localize hierarchy names and descriptions. You can have as many locales as you want.

NameTypeDescription
namestringA localized name for the product.
descriptionstringA localized description for the product.

The meta Object

NameTypeDescription
created_atstringThe date and time a hierarchy is created.
ownerstringThe hierarchy owner, either organization or store. See Organizations.
sort_orderintegerThe sort order value. The node with the highest value of sort_order is displayed first. For example, a node with a sort_order value of 3 appears before a node with a sort_order value of 2. See Sort Order.
updated_atintegerThe date and time a hierarchy is updated.

Was this helpful?

Previous
Overview

Learn

Docs