CreateReview
Type: schema
Description
Create Product Review model
TypeScript Definition
typescript
CreateReview: {{
order_number: $Write<string>;
rating: number;
review_text: string;
images?: string[];
videos?: string[];
name?: string;
/** Format: email */
email?: string;
tags?: string[];
};
/**
* CreditNote
* @description A rule 53 correction to a Commerce Engine-issued invoice. Issued on approved returns or cancellation of invoiced goods; payment refunds alone do not create credit notes.
*/
}OpenAPI Schema
json
{
"title": "CreateProductReview",
"description": "Create Product Review model",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CreateReview",
"description": "API reference for the CreateReview schema"
},
"required": [
"order_number",
"rating",
"review_text"
],
"properties": {
"order_number": {
"type": "string",
"maxLength": 45,
"minLength": 1,
"pattern": "\\S",
"writeOnly": true
},
"rating": {
"type": "number",
"maximum": 5,
"minimum": 1,
"multipleOf": 0.5
},
"review_text": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"images": {
"type": "array",
"items": {
"type": "string",
"contentMediaType": "application/octet-stream",
"description": "Uploaded files must be nonempty, at most 10 MiB (10485760 bytes), with a jpg, png, jpeg, gif or tiff extension. Extensions are case-insensitive."
},
"maxItems": 4
},
"videos": {
"type": "array",
"items": {
"type": "string",
"contentMediaType": "application/octet-stream",
"description": "Uploaded files must be nonempty, at most 100 MiB (104857600 bytes), with a mp4, mov, webm, html5, mkv, m4v or avi extension. Extensions are case-insensitive."
},
"maxItems": 1
},
"name": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"email": {
"type": "string",
"format": "email"
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
}
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions