Batch Create Comment

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

🔒

Requires write_comments access scope.

The Batch Create Comment API enables creating multiple comments for products in a single request.

This API is especially useful for:

  1. Importing multiple product comments at once
  2. Migrating comment data from other systems
  3. Bulk uploading customer feedback

Request Parameters

Public Request Parameters

📘

Body Parameters

ParameterTypeRequiredDescriptionExample
commentsarray of commentYesArray of comment objects to create-
comments[].product_idstringYesProduct's ID to which the comment belongs"prod_12345"
comments[].user_namestringYesUser name who posted the comment"JohnDoe"
comments[].starint32YesRating provided by the user (range: 1 to 5)4
comments[].likeint32YesNumber of likes for the comment0
comments[].created_atstringYesTimestamp when comment was created (YYYY-MM-DD HH:mm:ss)"2025-06-01 14:30:00"
comments[].contentstringYesContent of the comment"Great product quality!"
comments[].countrystringNoCountry code where comment was created from"US"
comments[].imagesarray of stringsNoURLs of images attached to the comment["https://example. com/image1.jpg"]

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the response
messagestring"Batch comment creation completed"Summary message of the operation
data.success_countinteger5Number of comments successfully created
data.error_countinteger2Number of comments that failed to create
data.error_infosarray of objects-Details of failed comment creations
data.error_infos[]. product_idstring"prod_12345"Product ID of the failed comment
data.error_infos[]. usernamestring"JohnDoe"Username of the failed comment
data.error_infos[]. starinteger4Star rating of the failed comment
data.error_infos[]. likeinteger0Like count of the failed comment
data.error_infos[]. created_atstring"2025-06-01 14:30:00"Timestamp of the failed comment
data.error_infos[]. contentstring"Great product quality!"Content of the failed comment
data.error_infos[]. countrystring"US"Country code of the failed comment
data.error_infos[]. imagesarray of strings["https://example.com /image1.jpg"]Images of the failed comment
data.error_infos[]. product_publishedinteger1Whether product was published (0/1)
data.error_infos[]. error_messagestring"Invalid product ID"Reason why comment creation failed

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!