CreateMarketplaceReview
Type: schema
Description
Review authorship always uses the current session user. A supplied user_id is ignored.
TypeScript Definition
typescript
CreateMarketplaceReview: {{
order_number: $Write<string>;
rating: number;
/** @default */
review_text: string;
images?: string[];
videos?: string[];
name?: string;
/** @description Optional reviewer email. An empty string is also accepted. */
email?: string | "";
tags?: string[];
/**
* Format: date-time
* @description Defaults to the submission time.
*/
review_date?: string;
/** @description Ignored when supplied. The current session user is always the author. */
user_id?: unknown;
};
/** CreateOrderReturn */
}OpenAPI Schema
json
{
"title": "CreateMarketplaceReview",
"description": "Review authorship always uses the current session user. A supplied user_id is ignored.",
"type": "object",
"externalDocs": {
"url": "https://llm-docs.commercengine.io/storefront/schemas/CreateMarketplaceReview",
"description": "API reference for the CreateMarketplaceReview schema"
},
"required": [
"order_number",
"rating"
],
"properties": {
"order_number": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"pattern": "\\S",
"writeOnly": true
},
"rating": {
"type": "number",
"maximum": 5,
"minimum": 1,
"multipleOf": 0.5
},
"review_text": {
"type": "string",
"default": ""
},
"images": {
"type": "array",
"items": {
"type": "string",
"contentMediaType": "application/octet-stream",
"description": "An uploaded file or an existing nonblank file ID of at most 128 characters. Uploaded files must be 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": "An uploaded file or an existing nonblank file ID of at most 128 characters. Uploaded files must be 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",
"maxLength": 128
},
"email": {
"description": "Optional reviewer email. An empty string is also accepted.",
"anyOf": [
{
"type": "string",
"format": "email"
},
{
"type": "string",
"const": ""
}
]
},
"tags": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
}
},
"review_date": {
"description": "Defaults to the submission time.",
"type": "string",
"format": "date-time"
},
"user_id": {
"description": "Ignored when supplied. The current session user is always the author."
}
}
}Auto-generated from OpenAPI spec and TypeScript definitions