Đối tượng
Đối tượng ProductCategory
A product category of a marketplace or a shop. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.
| Trường | Loại | Theo view | Mô tả |
|---|---|---|---|
id | string | compact | Category ID; give it to the endpoints that list a category. |
name | string | compact | Tên danh mục. |
name_en | string | null | compact | Tên tiếng Anh, nếu có. |
parent_id | string | null | compact | Danh mục cha; null ở cấp cao nhất. |
level | integer | null | compact | Độ sâu trong cây, 1 cho cấp cao nhất. |
has_children | boolean | null | compact | Có danh mục con hay không. |
products | integer | null | compact | Số sản phẩm trong đó, nếu shop có đếm. |
ext | object | full | Dữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full |