Skip to main content
POST
Create comment

Request

Headers

Body parameters

Successful response

Error response

Authorizations

Authorization
string
header
required

JWT issued by the Salesive Store API for authenticated shoppers.

x-shop-id
string
header
required

Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.

Headers

x-shop-id
string

Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.

Body

application/json
productId
string
required

Product identifier

content
string
required

Comment text

parentId
string

Parent comment ID for replies

image
string<uri>

Optional image URL

Response

201 - application/json

Comment created successfully

status
integer
Example:

201

success
boolean
Example:

true

message
string
Example:

"Comment created"

data
object