Taxonomy Category
A product category within Shopify's standardized product taxonomy. Provides hierarchical organization through parent-child relationships, with each category tracking its ancestors, children, and level in the taxonomy tree.
Categories include attributes specific to their product type and navigation properties like whether they're root, leaf, or archived categories. The taxonomy enables consistent product classification across Shopify and integrated marketplaces.
Anchor to FieldsFields
- Anchor to ancestorIdsancestor•[ID!]!
Ids non-null The IDs of the category's ancestor categories.
- Anchor to attributesattributes•Taxonomy
Category Attribute Connection! non-null The attributes of the taxonomy category.
- Anchor to childrenIdschildren•[ID!]!
Ids non-null The IDs of the category's child categories.
- Anchor to fullNamefull•String!
Name non-null The full name of the taxonomy category. For example, Animals & Pet Supplies > Pet Supplies > Dog Supplies > Dog Beds.
- •ID!non-null
The globally-unique ID of the TaxonomyCategory.
- Anchor to isArchivedis•Boolean!
Archived non-null Whether the category is archived. The default value is
false.- Anchor to isLeafis•Boolean!
Leaf non-null Whether the category is a leaf category. A leaf category doesn't have any subcategories beneath it. For example, in Animals & Pet Supplies > Pet Supplies > Dog Supplies > Dog Treadmills, Dog Treadmills is a leaf category. The value is
truewhen there are nospecified.- Anchor to isRootis•Boolean!
Root non-null Whether the category is a root category. A root category is at the top level of the category hierarchy and doesn't have a parent category. For example, Animals & Pet Supplies. The value is
truewhen there's nospecified.- Anchor to levellevel•Int!non-null
The level of the category in the taxonomy tree. Levels indicate the depth of the category from the root. For example, in Animals & Pet Supplies > Pet Supplies > Dog Supplies, Animals & Pet Supplies is at level 1, Animals & Pet Supplies > Pet Supplies is at level 2, and Animals & Pet Supplies > Pet Supplies > Dog Supplies is at level 3.
- Anchor to namename•String!non-null
The name of the taxonomy category. For example, Dog Beds.
- Anchor to parentIdparent•ID
Id The ID of the category's parent category.