Description
Create one or multiple product reviews.
Permission bit: "product_reviews.create"
Topic: Product Reviews
Arguments
data: [ProductReviewCreate!]!
Main argument for mutations.
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
Unique customer identifier. See also: Unique Identifiers
Example: "cu_EQzGqWoY"
Valid when: customer_id matches regexp pattern: ^cu_
Whether flagging actions are ignored
Example: false
A unique product identifier
Example: "pd_EQzGqWoY"
Valid when: product_id is not empty
Valid when: product_id matches regexp pattern: ^pd_
recommended: StorefrontCustomerVote
Whether customer voted or not and how
scores: [ProductReviewScoreCreate!]
status: ApprovalStatus
Publishing approval status
survey_answers: [ProductReviewSurveyAnswerCreate!]
Text of the review
Example: "Great product!"
Valid when: text is not empty
Valid when: text's length doesn't exceed 100000 characters
Title of the review
Example: "Amazing!"
Valid when: title is not empty
Valid when: title's length doesn't exceed 250 characters
Result
Preview (typescript)
Loading module