Skip to main content
POST
Create product review

Authorizations

Authorization
string
header
required

Access token

Path Parameters

product_id
string
required

id of a particular product

Body

Review authorship always uses the current session user. A supplied user_id is ignored.

order_number
string
required
write-only
Required string length: 1 - 64
Pattern: \S
rating
number
required
Required range: 1 <= x <= 5Must be a multiple of 0.5
review_text
string
default:""
images
string[]
Maximum array length: 4

Existing file ID. Use multipart/form-data to upload a file.

Required string length: 1 - 128
Pattern: \S
videos
string[]
Maximum array length: 1

Existing file ID. Use multipart/form-data to upload a file.

Required string length: 1 - 128
Pattern: \S
name
string
Maximum string length: 128
email

Optional reviewer email. An empty string is also accepted.

tags
string[]
Minimum string length: 1
Pattern: \S
review_date
string<date-time>

Defaults to the submission time.

user_id
any

Ignored when supplied. The current session user is always the author.

Response

Success response

message
string
required
Example:

"Review submitted successfully."

success
boolean
required
content
object
required