跳到主要内容
版本:202201

批量创建评论

POST 

/openapi/2022-01/comments/batch

批量为商品创建评论。

请求

请求体

    comments object[]
  • Array [
  • product_idstring

    Product's ID

    usernamestring必填

    User name, for example: Joey

    starint32必填

    Start count: 1 ~ 5

    imagestring

    Images in comment, separate by semicolon, for example: http://abc.com/img.jpg; http://def.com/img.jpg

    likeint32必填

    Like count, for example: 100

    created_atstring必填

    Comment created time, for example: 2019-07-10 15:00:00

    contentstring必填

    Comment content, for example: Cheap but beautiful

    countrystring

    Country code where this comment is created from, for example: CN

  • ]

响应

200

数据结构
    success_countinteger
    默认值: 0
    示例: 0
    error_countinteger
    默认值: 0
    示例: 1
    error_info object[]
  • Array [
  • product_idstring
    示例: 33f1b4f6-9474-4e6c-9a3f-676a420ea8bb
    usernamestring
    示例: 123
    starinteger
    默认值: 0
    示例: 1
    imagestring[]
    likeinteger
    默认值: 0
    示例: 1
    created_atstring
    示例: 2
    contentstring
    示例: 123
    countrystring
    示例: 23
    error_messagestring
    示例: 评论时间格式错误;
    product_publishedinteger
    默认值: 0
    示例: 1
  • ]