版本:202506
批量创建评论
POST/openapi/2025-06/comments/batch
批量为商品创建评论。
请求
- application/json
- 请求体
- 示例
请求体必填
- Array [
- ]
comments object[]必填
评论列表
product_idstring必填
评论所属商品的 ID
user_namestring必填
发布评论的用户名
starint32必填
用户提供的评分(范围:1 到 5)
likeint32必填
评论的点赞数
created_atstring必填
评论创建时间,格式:YYYY-MM-DD HH:mm:ss
contentstring必填
评论内容
countrystring
评论所属国家代码(如 CN、US)
imagesstring[]
评论图片, URL以分号分隔
{
"comments": [
{
"product_id": "string",
"user_name": "string",
"star": 0,
"like": 0,
"created_at": "string",
"content": "string",
"country": "string",
"images": [
"string"
]
}
]
}
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
- Array [
- ]
codestring
错误码
messagestring
错误信息
data object
success_countint32
成功数量
error_countint32
错误数量
error_infos object[]
错误信息列表
product_idstring
评论所属商品的 ID
user_namestring
发布评论的用户名
starint32
用户提供的评分(范围:1 到 5)
likeint32
评论的点赞数
created_atstring
评论创建时间,格式:YYYY-MM-DD HH:mm:ss
contentstring
评论内容
countrystring
评论所属国家代码(如 CN、US)
imagesstring[]
评论图片,URL以分号分隔
product_publishedint32
商品是否已发布
error_messagestring
说明评论处理失败原因的错误信息
{
"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"
}
]
}
}