ReviewBình luận sản phẩm

Product Comment Object

Cấu trúc đối tượng bình luận sản phẩm

Schema

{
  "company_id": 1,
  "product_id": 10,
  "product_variant_id": 5,
  "id": 1,
  "fullname": "Nguyễn Văn A",
  "customer_id": 50,
  "content": "Sản phẩm này có chất lượng tốt không?",
  "count_reply": 2,
  "employee_reply_status": 1,
  "status": 3,
  "file_id_list": [101, 102],
  "files": [
    {
      "id": 101,
      "url": "https://example.com/file.jpg"
      // ... File Object
    }
  ],
  "date_created": 1600000000,
  "date_modified": 1600000000,
  "date_verified": 1600000100,
  "date_first_replied": 1600000200,
  "date_last_replied": 1600000300,
  "reply_list": [
    {
      // ... Product Comment Reply Object
    }
  ]
}

Field Descriptions

Tên trườngKiểu dữ liệuMô tả
company_idintegerID công ty (shop)
idintegerID bình luận
product_idintegerID sản phẩm
product_variant_idintegerID biến thể sản phẩm (nếu có)
fullnamestringHọ tên người bình luận
phonestringSố điện thoại người bình luận. Chỉ có trong phản hồi khi tạo bình luận, không trả ở API danh sách
emailstringEmail người bình luận. Chỉ có trong phản hồi khi tạo bình luận, không trả ở API danh sách
customer_idintegerID khách hàng (nếu đăng nhập)
contentstringNội dung bình luận
count_replyintegerSố lượng phản hồi
employee_reply_statusintegerTrạng thái phản hồi từ nhân viên (1: Đang chờ, 3: Đã phản hồi)
statusintegerTrạng thái (1: Chờ duyệt, 3: Đã duyệt, 5: Đã xóa)
file_id_listarrayDanh sách ID file đính kèm
filesarrayDanh sách file đính kèm (File Object)
reply_listarrayDanh sách phản hồi đã duyệt (chỉ có khi gọi get-list, tối đa 500 phản hồi, Product Comment Reply Object)
date_createdintegerThời gian tạo (Unix timestamp)
date_modifiedintegerThời gian cập nhật (Unix timestamp)
date_verifiedintegerThời gian được duyệt (Unix timestamp)
date_first_repliedintegerThời gian phản hồi đầu tiên (Unix timestamp)
date_last_repliedintegerThời gian phản hồi cuối cùng (Unix timestamp)

Status Constants

Comment Status

ValueConstantMô tả
1STATUS_WAIT_FOR_MODERATEChờ duyệt
3STATUS_VERIFIEDĐã duyệt
5STATUS_REMOVEDĐã xóa

Employee Reply Status

ValueConstantMô tả
1EMPLOYEE_REPLY_STATUS_WAITINGĐang chờ phản hồi từ nhân viên
3EMPLOYEE_REPLY_STATUS_DONEĐã có phản hồi từ nhân viên

On this page