Base URL
https://{tenant}.logzi.com/api/product_category_cr/
Every request returns a JSON response. On success result.code == 1, on failure result.code == 0. The CRM product category API enables hierarchical management of product categories belonging to the CRM module, with language-specific queries and a path list.
/api/product_category_cr/get
Retrieve a single CRM product category by ID.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int | Category ID | |
language_id | int | Language ID |
Example request
GET /api/product_category_cr/get?id=1&language_id=1
X-API-KEY: {your_api_key}
/api/product_category_cr/get_path_list
Retrieve a list of category hierarchy paths (e.g. in "Main category / Subcategory" format).
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset | |
list_condition | object | Filter conditions object |
Example request
GET /api/product_category_cr/get_path_list?list_offset=0
X-API-KEY: {your_api_key}
/api/product_category_cr/list
Paginated list of CRM product categories.
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
list_offset | int | Pagination offset (default: 0) | |
list_condition | object | Filter conditions object | |
language_id | int | Language ID |
Example request
GET /api/product_category_cr/list?list_offset=0&language_id=1
X-API-KEY: {your_api_key}
/api/product_category_cr/save
Create or update a CRM product category.
POST fields — data object
Provide the category details in the data object (name, parent category ID, sort order).
Example request
POST /api/product_category_cr/save
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
/api/product_category_cr/delete
Delete a CRM product category.
POST fields — data object
Provide the details of the category to delete in the data object.
Example request
POST /api/product_category_cr/delete
X-API-KEY: {your_api_key}
Content-Type: application/json
{ "data": { "id": 1 } }
Create your account now,
pay later!