Batch create comment
POST/openapi/2026-07/comments/batch
Allows users to create multiple comments for products in a single request.
Request
- application/json
- Body
- Example
Bodyrequired
- Array [
- ]
comments object[]required
List of comments
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
{
"comments": [
{
"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
- Array [
- ]
error code
error message
data object
Success count
Error count
error_infos object[]
Error information list
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
Whether the product is published
Error message explaining why the comment failed to process
{
"code": "string",
"message": "string",
"data": {
"success_count": 0,
"error_count": 0,
"error_infos": [
{
"product_id": "string",
"user_name": "string",
"star": 0,
"like": 0,
"created_at": "string",
"content": "string",
"country": "string",
"images": [
"string"
],
"product_published": 0,
"error_message": "string"
}
]
}
}