Skip to main content
Version: 202506

Batch create comment

POST 

/openapi/2025-06/comments/batch

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

Request

Bodyrequired

    comments object[]required

    List of comments

  • Array [
  • product_idstringrequired

    Product's ID to which the comment belongs

    user_namestringrequired

    User name who posted the comment

    starint32required

    Rating provided by the user (range: 1 to 5)

    likeint32required

    Number of likes for the comment

    created_atstringrequired

    Timestamp when the comment was created. Format: YYYY-MM-DD HH:mm:ss

    contentstringrequired

    Content of the comment

    countrystring

    Country code where the comment was created from (e.g., CN, US)

    imagesstring[]

    URLs of images attached to the comment, separated by semicolons

  • ]

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    success_countint32

    Success count

    error_countint32

    Error count

    error_infos object[]

    Error information list

  • Array [
  • product_idstring

    Product's ID to which the comment belongs

    user_namestring

    User name who posted the comment

    starint32

    Rating provided by the user (range: 1 to 5)

    likeint32

    Number of likes for the comment

    created_atstring

    Timestamp when the comment was created. Format: YYYY-MM-DD HH:mm:ss

    contentstring

    Content of the comment

    countrystring

    Country code where the comment was created from (e.g CN, US)

    imagesstring[]

    URLs of images attached to the comment, separated by semicolons

    product_publishedint32

    Whether the product is published

    error_messagestring

    Error message explaining why the comment failed to process

  • ]