Create Comment

Allows users to add a comment to a specific product.

🔒

Requires write_comments access scope.

The Create Comment API enables adding a comment to a specific product.

This API is especially useful for:

  1. Enabling customer feedback on products.
  2. Collecting product ratings and reviews.
  3. Building social proof through user-generated content.
  4. Gathering customer insights through comments.

Request Parameters

Public Request Parameters

📘

Body Parameters

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

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response
data.comment.idinteger12345Unique identifier for the comment
data.comment.store_idinteger67890ID of the store where comment was posted
data.comment.user_namestring"JohnDoe"User name who posted the comment
data.comment.emailstring"[email protected]"Email of the commenter
data.comment.starstring"4"Rating provided by the user
data.comment.likeinteger0Number of likes for the comment
data.comment.contentstring"Great product quality!"Content of the comment
data.comment.imagesarray of strings["https://example. com/image1.jpg"]URLs of images attached to the comment
data.comment.statusinteger1Status of the comment (0/1)
data.comment.typeinteger0Type of comment
data.comment.product_idstring"prod_12345"Product ID the comment belongs to
data.comment.created_atstring"2025-06-01 14:30:00"Timestamp when comment was created
data.comment.updated_atstring"2025-06-01 14:30:00"Timestamp when comment was last updated
data.comment.countrystring"US"Country code of comment origin
data.comment.is_featuredinteger0Whether comment is featured (0/1)
data.comment.is_verifiedinteger0Whether comment is verified (0/1)
data.comment.client_idstring"client_123"Client identifier
data.comment.anonymousinteger0Whether comment is anonymous (0/1)
data.comment.product_publishedinteger1Whether product is published (0/1)

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!