Create comment
POST/openapi/2025-06/comments
Allows users to add a comment to a specific product.
Request
- application/json
- Body
- Example
Bodyrequired
comment objectrequired
Comment
Product's ID to which the comment belongs
User name who posted the comment
Rating provided by the user (range: 1 to 5)
Number of likes for the comment
Timestamp when the comment was created. Format: YYYY-MM-DD HH:mm:ss
Content of the comment
Country code where the comment was created from (e.g., CN, US)
URLs of images attached to the comment, separated by semicolons
{
"comment": {
"product_id": "string",
"user_name": "string",
"star": 0,
"like": 0,
"created_at": "string",
"content": "string",
"country": "string",
"images": [
"string"
]
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
error code
error message
data object
comment object
Comment
Comment ID
ID of the store where the comment was created
Name of the user who posted the comment
Email address of the user (if provided)
Rating provided by the user
Number of likes for the comment
Content of the comment
List of image URLs attached to the comment
Status of the comment: 1: published, 0: unpublished
Type of the comment
ID of the product associated with the comment
Timestamp when the comment was created, ISO-8601 format:YYYY-MM-DD HH:mm:ss
Timestamp when the comment was last updated, ISO-8601 format
Country code where the comment was created from
Indicates if the comment is featured (0: No, 1: Yes)
Indicates if the comment is verified (0: No, 1: Yes)
ID of the client who created the comment (if applicable)
Indicates if the comment was posted anonymously (0: No, 1: Yes)
Whether the product is published
{
"code": "string",
"message": "string",
"data": {
"comment": {
"id": 0,
"store_id": 0,
"user_name": "string",
"email": "string",
"star": "string",
"like": 0,
"content": "string",
"images": [
"string"
],
"status": 0,
"type": 0,
"product_id": "string",
"created_at": "string",
"updated_at": "string",
"country": "string",
"is_featured": 0,
"is_verified": 0,
"client_id": "string",
"anonymous": 0,
"product_published": 0
}
}
}