Skip to content

Categories

View as Markdown

A Category classifies your products in a hierarchy. Each category has a translatable name, an optional parent, and its direct childrens - so categories form a tree (Apparel → Shoes → Running shoes). Products are assigned to categories through the category’s products list.

Categories also carry attributes - the properties that products in that category can describe themselves with (a material, a season, a heel height). Attributes come in two kinds, each documented separately:

A category’s attributes field is the read-only union of both, also exposed on its own as Attributes.

PropertyTypeRequiredDescription
idstring-The resource's unique identifier (UUID).
statusstring-The status of the category.
namestring | null-This property supports translations.

The name of the category.
parentstring | null-The parent Category to which this category belongs, if any. Serialized as IRI string by default; pass ?expand=parent to embed the direct parent (one level only).
productsstring[]-List of products associated with the category.
childrensstring[]-A list of direct child Category, each one representing a category under this one. Serialized as IRI strings by default; pass ?expand=children to embed direct children (one level only).
attributesstring[]-List of attributes associated with the category.
createdAtstring-Creation date of the resource (ISO 8601 format).
updatedAtstring-Last modification date of the resource (ISO 8601 format).
  • Build the tree. Create top-level categories, then create child categories with a parent pointing at them.
  • Classify products. Add products to a category’s products list.
  • Describe with attributes. Attach attribute strings or attribute lists to a category, then set their values on the category’s products.

All requests require an OAuth 2.0 bearer token and the organization scope header:

Authorization: Bearer <token>
X-Flowkiwi-Organization-Id: <organization-id>

For the translatable name, set the active locale (and optionally a fallback):

X-Flowkiwi-Locale: fr-FR
X-Flowkiwi-Locale-Fallback: en-US

PATCH uses JSON Merge Patch with Content-Type: application/merge-patch+json.