Comment Properties

The Comment object represents user-generated reviews or feedback associated with products in the system. Comments include essential details such as ratings, content, images, and metadata to enhance customer engagement and provide insights for product improvement.

🔒

Requires comments access scope.

Comment properties

FieldTypeDesc
idstring
store_idstringStore ID
product_idstringID of the reviewed product
user_namestringUsername
emailstringEmail
countrystringCountry
starintegerRating stars
imagestringLinks to review images, separated by ';', maximum of five images supported.
likeintegerNumber of likes
is_featuredstringWhether it's featured ("0" or "1")
is_verifiedstringWhether it's verified ("0" or "1")
client_idstringClient ID
anonymousintegerWhether it's anonymous (0 for real name, 1 for anonymous)
created_atstring (ISO-8601)Review creation time
updated_atstring (ISO-8601)Last modification time

Example

{
    "id": 23532434,
    "store_id": 633130,
    "username": "Joey",
    "email": "",
    "star": "5.0",
    "like": 10,
    "content": "Cheap but beautiful",
    "img": "[\"https:\\/\\/photokit.com\\/features\\/images\\/image-text-after.webp\"]",
    "status": 1,
    "type": 1,
    "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
    "created_at": "2024-04-24 14:02:39",
    "updated_at": "2024-04-25 08:22:58",
    "country": "CN",
    "is_featured": 0,
    "is_verified": 0,
    "client_id": null,
    "anonymous": 0
}

Key Use Cases for the Comment Object:

  1. Create Comment API
    Allows users to submit individual product reviews, including a star rating, images, and textual feedback, directly linked to a product.

  2. Batch Comment API
    Enables bulk submission of multiple comments at once, optimizing workflows for importing or updating reviews during system migrations or data imports.

  3. Get Comment List API
    Retrieves a list of comments for a specific product or multiple products, filtered and sorted by parameters such as creation date, star rating, and status.