Skip to content

CustomerReview ​

Type: schema

Description ​

List of reviews posted by the user.

TypeScript Definition ​

typescript
CustomerReview: {{
            /** @description Whether the review is featured. */
            is_featured?: boolean;
            product_id: string;
            product_name?: $Read<string | null>;
            product_image_url?: $Read<string | null>;
            /** @enum {string} */
            status?: "pending" | "approved" | "rejected" | "archived";
            rating: number;
            review_text: string;
            /** Format: date-time */
            review_date?: string | null;
            tags?: string[];
            images?: $Read<components["schemas"]["ReviewImage"][]>;
            videos?: $Read<components["schemas"]["ReviewVideo"][]>;
            /** Format: double */
            listing_price?: $Read<number | null>;
            /** Format: double */
            selling_price?: $Read<number | null>;
            order_number: $Read<string | null>;
            /** Format: date-time */
            created_at?: $Read<string>;
            /** Format: date-time */
            modified_at?: $Read<string>;
        };
        /** CustomSlabsBasedOnAmount */
}

Component References ​

ReferenceResolves To
components["schemas"]["ReviewImage"]ReviewImage
components["schemas"]["ReviewVideo"]ReviewVideo

OpenAPI Schema ​

json
{
  "title": "CustomerReview",
  "description": "List of reviews posted by the user.",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/CustomerReview",
    "description": "API reference for the CustomerReview schema"
  },
  "required": [
    "product_id",
    "rating",
    "review_text",
    "order_number"
  ],
  "properties": {
    "is_featured": {
      "description": "Whether the review is featured.",
      "type": "boolean"
    },
    "product_id": {
      "type": "string"
    },
    "product_name": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "product_image_url": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "approved",
        "rejected",
        "archived"
      ]
    },
    "rating": {
      "type": "number"
    },
    "review_text": {
      "type": "string"
    },
    "review_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "images": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReviewImage"
      },
      "readOnly": true
    },
    "videos": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ReviewVideo"
      },
      "readOnly": true
    },
    "listing_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "readOnly": true
    },
    "selling_price": {
      "type": [
        "number",
        "null"
      ],
      "format": "double",
      "readOnly": true
    },
    "order_number": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "modified_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: