Quản lý sản phẩm (PIM)Danh mục sản phẩm
Product Category Object
Cấu trúc đối tượng danh mục sản phẩm
Schema
{
"company_id": 1,
"creator_id": 1,
"id": 10,
"uuid": "uuid-string",
"name": "Điện thoại",
"name_short": "Điện thoại",
"description": "Mô tả danh mục...",
"display_order": 1,
"parent_id": 0,
"external_id": "EXT123",
"prepayment_percentage": 0,
"tax_ratio": 10,
"attribute_category_id": 0,
"avatar_file_id_list": [101, 102],
"avatar_file_list": [
{
"id": 101,
"url": "https://example.com/image.jpg"
//... File Object
}
],
"keyword_important_score": 0,
"status": 1,
"seo_url": "dien-thoai",
"seo_title": "Điện thoại chính hãng",
"seo_meta_description": "Mua điện thoại giá rẻ...",
"seo_meta_keyword": "dien thoai, smartphone",
"seo_graph_file_id": 0,
"seo_graph_file": null,
"seo_canonical": "",
"seo_options": [],
"date_created": 1600000000,
"date_modified": 1600000000,
"date_lastsynced": 0
}Field Descriptions
| Tên trường | Kiểu dữ liệu | Mô tả |
|---|---|---|
id | integer | ID danh mục |
name | string | Tên danh mục |
name_short | string | Tên viết tắt |
description | string | Mô tả chi tiết |
parent_id | integer | ID danh mục cha (0 nếu là danh mục gốc) |
display_order | float | Thứ tự hiển thị |
status | integer | Trạng thái (1: Enable, 3: Disable, 5: Deleted) |
seo_url | string | Đường dẫn SEO (Slug) |
avatar_file_list | array | Danh sách hình ảnh đại diện |
date_created | integer | Thời gian tạo (Unix timestamp) |
date_modified | integer | Thời gian cập nhật (Unix timestamp) |