List Categories
GET/api/v2/public/categories
Product categories for the organisation. Use parent_category_code to walk the hierarchy one level at a time. Returns the category_code values the product endpoints expect.
List Categories
curl https://api.colleqtive.net/api/v2/public/categories \
-H "Authorization: $COLLEQTIVE_BEARER_TOKEN"{
"page_size": 0,
"page_start": 0,
"total_count": 0,
"list": [
{
"edit_min_max_percentage": 0,
"is_adjust_min_max": true,
"category_code": "category_code",
"category_name": "category_name",
"child_categories": [
{}
],
"parent_category_code": "parent_category_code",
"parent_category_name": "parent_category_name",
"top_parent_category_code": "top_parent_category_code"
}
],
"list_body": {
"foo": "bar"
},
"list_filters": {
"foo": [
"string"
]
},
"next_page": 0,
"previous_page": 0,
"project_last_modified_date": "project_last_modified_date",
"scroll_id": "scroll_id",
"server_time": "server_time",
"sort_column": "sort_column",
"sort_order": "sort_order",
"task_last_modified_date": "task_last_modified_date"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}Returns Examples
{
"page_size": 0,
"page_start": 0,
"total_count": 0,
"list": [
{
"edit_min_max_percentage": 0,
"is_adjust_min_max": true,
"category_code": "category_code",
"category_name": "category_name",
"child_categories": [
{}
],
"parent_category_code": "parent_category_code",
"parent_category_name": "parent_category_name",
"top_parent_category_code": "top_parent_category_code"
}
],
"list_body": {
"foo": "bar"
},
"list_filters": {
"foo": [
"string"
]
},
"next_page": 0,
"previous_page": 0,
"project_last_modified_date": "project_last_modified_date",
"scroll_id": "scroll_id",
"server_time": "server_time",
"sort_column": "sort_column",
"sort_order": "sort_order",
"task_last_modified_date": "task_last_modified_date"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}