Quản lý sản phẩm (PIM)Danh mục thuộc tính

Attribute Category Object

Cấu trúc đối tượng danh mục thuộc tính

Schema

{
  "company_id": 1,
  "creator_id": 1,
  "id": 1,
  "name": "Thông số kỹ thuật",
  "display_name": "Thông số kỹ thuật",
  "code": "SPECS",
  "external_id": "EXT123",
  "description": "Danh mục thuộc tính kỹ thuật",
  "count_attributegroup": 3,
  "count_attribute": 15,
  "status": 1,
  "date_created": 1600000000,
  "date_modified": 1600000000,
  "attribute_group": [
    {
      "company_id": 1,
      "creator_id": 1,
      "attribute_category": 1,
      "id": 10,
      "name": "Màn hình",
      "description": "Thông số màn hình",
      "status": 1,
      "display_order": 1,
      "date_created": 1600000000,
      "date_modified": 1600000000,
      "attributes": [
        {
          "company_id": 1,
          "creator_id": 1,
          "attribute_group_id": 10,
          "id": 101,
          "name": "Kích thước màn hình",
          "type": 3,
          "file_id": 0,
          "file": null,
          "description": "Độ lớn màn hình tính bằng inch",
          "options": [],
          "status": 1,
          "allow_web_filter": 0,
          "default_show": 1,
          "display_order": 1,
          "date_created": 1600000000,
          "date_modified": 1600000000
        }
      ]
    }
  ]
}

Field Descriptions

AttributeCategory Fields

Tên trườngKiểu dữ liệuMô tả
idintegerID danh mục thuộc tính
namestringTên danh mục thuộc tính
display_namestringTên hiển thị (nếu trống sẽ dùng name)
codestringMã danh mục thuộc tính
external_idstringID từ hệ thống bên ngoài
descriptionstringMô tả chi tiết
count_attributegroupintegerSố lượng nhóm thuộc tính
count_attributeintegerSố lượng thuộc tính
statusintegerTrạng thái (1: Enable, 3: Disable)
attribute_grouparrayDanh sách nhóm thuộc tính (chỉ có khi gọi API get-detail)
date_createdintegerThời gian tạo (Unix timestamp)
date_modifiedintegerThời gian cập nhật (Unix timestamp)

AttributeGroup Fields (trong attribute_group)

Tên trườngKiểu dữ liệuMô tả
idintegerID nhóm thuộc tính
namestringTên nhóm thuộc tính
descriptionstringMô tả nhóm thuộc tính
attribute_categoryintegerID danh mục thuộc tính cha
statusintegerTrạng thái (1: Enable, 3: Disable)
display_orderfloatThứ tự hiển thị
attributesarrayDanh sách thuộc tính trong nhóm
date_createdintegerThời gian tạo (Unix timestamp)
date_modifiedintegerThời gian cập nhật (Unix timestamp)

Attribute Fields (trong attributes)

Tên trườngKiểu dữ liệuMô tả
idintegerID thuộc tính
namestringTên thuộc tính
typeintegerLoại thuộc tính (1: Text, 3: Number, 5: Boolean, 7: Date, 9: Single Select, 11: Multi Select)
file_idintegerID file đính kèm
fileobject|nullĐối tượng file (File Object)
descriptionstringMô tả thuộc tính
optionsarrayDanh sách tùy chọn (cho loại Single/Multi Select)
statusintegerTrạng thái (1: Enable, 3: Disable)
allow_web_filterintegerCho phép lọc trên web (0: No, 1: Yes)
default_showintegerHiển thị mặc định (0: No, 1: Yes)
display_orderfloatThứ tự hiển thị
attribute_group_idintegerID nhóm thuộc tính cha
date_createdintegerThời gian tạo (Unix timestamp)
date_modifiedintegerThời gian cập nhật (Unix timestamp)

On this page