Skip to main content
Version: 202201

Batch Create Comment

POST 

/openapi/2022-01/comments/batch

Allows users to create multiple comments for products in a single request.

Request

Body

    comments object[]
  • Array [
  • product_idstring

    Product's ID

    usernamestringrequired

    User name, for example: Joey

    starint32required

    Start count: 1 ~ 5

    imagestring

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

    likeint32required

    Like count, for example: 100

    created_atstringrequired

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

    contentstringrequired

    Comment content, for example: Cheap but beautiful

    countrystring

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

  • ]

Responses

200

Schema
    success_countinteger
    Default value: 0
    Example: 0
    error_countinteger
    Default value: 0
    Example: 1
    error_info object[]
  • Array [
  • product_idstring
    Example: 33f1b4f6-9474-4e6c-9a3f-676a420ea8bb
    usernamestring
    Example: 123
    starinteger
    Default value: 0
    Example: 1
    imagestring[]
    likeinteger
    Default value: 0
    Example: 1
    created_atstring
    Example: 2
    contentstring
    Example: 123
    countrystring
    Example: 23
    error_messagestring
    Example: 评论时间格式错误;
    product_publishedinteger
    Default value: 0
    Example: 1
  • ]