Category
Category information and navigation
Returns category information along with subcategory hierarchy for navigation.
Response Behavior:
1. Landing Page Mode (shallow categories) When the category depth is at or below the configured maximum (Source: Dynamic/Real-time Configuration):
Returns category information with subcategories
Includes up to 2 levels of nested subcategories
Suitable for category landing pages
2. Listing Mode (deep categories) When the category depth exceeds the maximum:
Returns product listing (faceted search results)
Includes category metadata alongside product results
Uses category-specific sort options when configured
Subcategory Structure:
First level: Direct children of the requested category
Second level: Children of direct children
Each subcategory includes navigation URLs
Unique identifier of the category to retrieve.
150Category detail retrieved successfully
Category detail response with subcategory navigation.
Category identifier
150Display name of the category.
May be translated based on active language settings.
Running ShoesUUID of the associated menu item for navigation.
Null if the category has no menu configuration.
a1b2c3d4-e5f6-7890-abcd-ef1234567890Canonical URL for this category.
Use this for SEO-friendly category links.
/categories/running-shoes/Universally unique identifier for the category.
550e8400-e29b-41d4-a716-446655440000Hierarchical depth level of the category.
Root categories have depth 1, their children have depth 2, etc.
3Materialized path representing the category's position in the hierarchy.
Used internally for efficient hierarchical queries.
0001000200030004ID of the default sort option for product listings in this category.
When set, product listings automatically use this sort order.
5Category not found.
Occurs when:
- No category exists with the specified ID
- Category depth is 1 or less (root categories are not accessible)
GET /category/{category_id}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 150,
"name": "Running Shoes",
"menuitemmodel": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"absolute_url": "/categories/running-shoes/",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"depth": 3,
"path": "0001000200030004",
"sort_option": 5,
"sub_categories": [
{
"pk": 150,
"name": "Running Shoes",
"menuitemmodel": null,
"absolute_url": "/categories/running-shoes/",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"depth": 3,
"path": "text",
"children": [
{
"pk": 150,
"name": "Running Shoes",
"menuitemmodel": null,
"absolute_url": "/categories/running-shoes/",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"depth": 3,
"path": "text"
}
]
}
]
}Returns all category nodes associated with a specific product.
Response Order: Categories are returned ordered by their path, ensuring hierarchical consistency for breadcrumb display.
Unique identifier of the product.
12345Product categories retrieved successfully
Basic category node information.
Category identifier
150Display name of the category
Running ShoesUUID of associated menu item
Canonical URL for this category
/categories/running-shoes/Hierarchical depth level
3Materialized path
GET /products/{product_id}/category_nodes/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
Product categories retrieved successfully
[
{
"pk": 150,
"name": "Running Shoes",
"menuitemmodel": null,
"absolute_url": "/categories/running-shoes/",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"depth": 3,
"path": "text"
}
]Last updated
Was this helpful?

