> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cocartapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a Single Product

> Gets a single product by ID or SKU.




## OpenAPI

````yaml api-reference/v2/openapi-v2-stable.yaml get /products/{id}
openapi: 3.0.3
info:
  title: CoCart - Cart API v2
  version: 4.6.0
  description: >
    CoCart REST API v2 for managing shopping carts, products, and store
    functionality.

    Compared to API v1, this version provides enhanced endpoints for cart
    operations, product management,

    and administrative functions with improved response structures and better
    error handling.
  termsOfService: http://cocartapi.com/terms-of-conditions-polar/
  contact:
    email: support@cocartapi.com
  license:
    name: GNU General Public License v3.0
    url: http://www.gnu.org/licenses/gpl-3.0.html
servers:
  - url: '{protocol}://{host}/wp-json/cocart/v2'
    description: API v2
    variables:
      protocol:
        enum:
          - http
          - https
        default: https
      host:
        default: example-store.com
        description: Your store domain
security: []
tags:
  - name: cart
    description: Operations for managing the shopping cart
  - name: cart-items
    description: Operations for managing cart items
  - name: cart-calculate
    description: Operations for calculating cart totals
  - name: products
    description: Operations for browsing and retrieving product information
  - name: product-attributes
    description: Operations for retrieving product attributes and attribute terms
  - name: product-categories
    description: Operations for browsing and filtering product categories
  - name: product-tags
    description: Operations for browsing and filtering product tags
  - name: product-reviews
    description: Operations for retrieving product reviews and ratings
  - name: product-variations
    description: Operations for retrieving variable product variations
  - name: admin-sessions
    description: Administrative operations for managing cart sessions
  - name: authentication
    description: Operations for user authentication
  - name: store
    description: Operations for retrieving store information and configuration
externalDocs:
  description: Find out more about CoCart API
  url: https://docs.cocartapi.com
paths:
  /products/{id}:
    get:
      tags:
        - products
      summary: Get single product
      description: |
        Gets a single product by ID or SKU.
      parameters:
        - name: id
          in: path
          description: Unique identifier for the product (ID or SKU).
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Product retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Product'
              example:
                id: 278
                parent_id: 0
                name: Premium Cotton T-Shirt
                type: variable
                slug: premium-cotton-t-shirt
                permalink: https://example-store.com/product/premium-cotton-t-shirt/
                sku: PCT-2024
                description: >-
                  <p>Soft, breathable premium cotton t-shirt perfect for
                  everyday wear.</p>
                short_description: >-
                  <p>Comfortable premium cotton t-shirt in various sizes and
                  colors.</p>
                dates:
                  created: '2024-02-10T09:15:00'
                  created_gmt: '2024-02-10T13:15:00'
                  modified: '2024-09-18T11:45:00'
                  modified_gmt: '2024-09-18T15:45:00'
                featured: false
                prices:
                  price: '25.00'
                  regular_price: '25.00'
                  sale_price: ''
                  price_range:
                    min: '25.00'
                    max: '35.00'
                  on_sale: false
                  date_on_sale:
                    from: null
                    from_gmt: null
                    to: null
                    to_gmt: null
                  currency:
                    currency_code: USD
                    currency_symbol: $
                    currency_minor_unit: 2
                    currency_decimal_separator: .
                    currency_thousand_separator: ','
                    currency_prefix: $
                    currency_suffix: ''
                hidden_conditions:
                  virtual: false
                  downloadable: false
                  manage_stock: false
                  sold_individually: false
                  reviews_allowed: true
                  shipping_required: true
                average_rating: '4.8'
                review_count: 234
                rating_count: 234
                rated_out_of: '5'
                images:
                  - id: 723
                    src:
                      thumbnail: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-150x150.jpg
                      medium: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-300x300.jpg
                      large: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-1024x1024.jpg
                      full: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white.jpg
                    name: tshirt-white
                    alt: Premium Cotton T-Shirt in White
                    position: 0
                    featured: true
                  - id: 724
                    src:
                      thumbnail: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-150x150.jpg
                      medium: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-300x300.jpg
                      large: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-1024x1024.jpg
                      full: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black.jpg
                    name: tshirt-black
                    alt: Premium Cotton T-Shirt in Black
                    position: 1
                    featured: false
                categories:
                  - id: 23
                    name: Clothing
                    slug: clothing
                    rest_url: >-
                      https://example-store.com/wp-json/cocart/v2/products/categories/23
                  - id: 28
                    name: T-Shirts
                    slug: t-shirts
                    rest_url: >-
                      https://example-store.com/wp-json/cocart/v2/products/categories/28
                tags:
                  - id: 51
                    name: Cotton
                    slug: cotton
                    rest_url: >-
                      https://example-store.com/wp-json/cocart/v2/products/tags/51
                  - id: 89
                    name: Casual
                    slug: casual
                    rest_url: >-
                      https://example-store.com/wp-json/cocart/v2/products/tags/89
                attributes:
                  attribute_size:
                    id: 1
                    name: Size
                    position: 0
                    is_attribute_visible: true
                    used_for_variation: true
                    options:
                      small: Small
                      medium: Medium
                      large: Large
                      x-large: X-Large
                  attribute_color:
                    id: 2
                    name: Color
                    position: 1
                    is_attribute_visible: true
                    used_for_variation: true
                    options:
                      white: White
                      black: Black
                      navy-blue: Navy Blue
                      gray: Gray
                default_attributes:
                  attribute_size:
                    id: 1
                    name: Size
                    option:
                      medium: Medium
                  attribute_color:
                    id: 2
                    name: Color
                    option:
                      white: White
                variations:
                  - id: 289
                    sku: PCT-2024-SM-WHT
                    description: Small White T-Shirt
                    attributes:
                      attribute_size: small
                      attribute_color: white
                    featured_image:
                      thumbnail: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-150x150.jpg
                      medium: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-300x300.jpg
                      large: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white-1024x1024.jpg
                      full: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-white.jpg
                    prices:
                      price: '25.00'
                      regular_price: '25.00'
                      sale_price: ''
                      on_sale: false
                      date_on_sale:
                        from: null
                        from_gmt: null
                        to: null
                        to_gmt: null
                      currency:
                        currency_code: USD
                        currency_symbol: $
                        currency_minor_unit: 2
                        currency_decimal_separator: .
                        currency_thousand_separator: ','
                        currency_prefix: $
                        currency_suffix: ''
                    stock:
                      is_in_stock: true
                      stock_quantity: 50
                      stock_status: instock
                      backorders: 'no'
                      backorders_allowed: false
                      backordered: false
                      low_stock_amount: null
                    add_to_cart:
                      is_purchasable: true
                      purchase_quantity:
                        min_purchase: 1
                        max_purchase: 50
                      rest_url: >-
                        https://example-store.com/wp-json/cocart/v2/cart/add-item?id=289&quantity=1&variation[attribute_size]=small&variation[attribute_color]=white
                  - id: 290
                    sku: PCT-2024-LG-BLK
                    description: Large Black T-Shirt
                    attributes:
                      attribute_size: large
                      attribute_color: black
                    featured_image:
                      thumbnail: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-150x150.jpg
                      medium: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-300x300.jpg
                      large: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black-1024x1024.jpg
                      full: >-
                        https://example-store.com/wp-content/uploads/2024/02/tshirt-black.jpg
                    prices:
                      price: '28.00'
                      regular_price: '28.00'
                      sale_price: ''
                      on_sale: false
                      date_on_sale:
                        from: null
                        from_gmt: null
                        to: null
                        to_gmt: null
                      currency:
                        currency_code: USD
                        currency_symbol: $
                        currency_minor_unit: 2
                        currency_decimal_separator: .
                        currency_thousand_separator: ','
                        currency_prefix: $
                        currency_suffix: ''
                    stock:
                      is_in_stock: true
                      stock_quantity: 35
                      stock_status: instock
                      backorders: 'no'
                      backorders_allowed: false
                      backordered: false
                      low_stock_amount: null
                    add_to_cart:
                      is_purchasable: true
                      purchase_quantity:
                        min_purchase: 1
                        max_purchase: 35
                      rest_url: >-
                        https://example-store.com/wp-json/cocart/v2/cart/add-item?id=290&quantity=1&variation[attribute_size]=large&variation[attribute_color]=black
                grouped_products: []
                stock:
                  is_in_stock: true
                  stock_quantity: null
                  stock_status: instock
                  backorders: 'no'
                  backorders_allowed: false
                  backordered: false
                  low_stock_amount: null
                weight:
                  value: '0.2'
                  unit: kg
                dimensions:
                  length: '12'
                  width: '10'
                  height: '1'
                  unit: cm
                reviews: []
                related:
                  - id: 301
                    name: Classic Polo Shirt
                    permalink: https://example-store.com/product/classic-polo-shirt/
                    price: '32.00'
                    add_to_cart:
                      text: Select options
                      description: Variable product
                      rest_url: >-
                        https://example-store.com/wp-json/cocart/v2/cart/add-item?id=301&quantity=1
                    rest_url: https://example-store.com/wp-json/cocart/v2/products/301
                upsells: []
                cross_sells: []
                total_sales: 567
                external_url: ''
                button_text: ''
                add_to_cart:
                  text: Select options
                  description: Variable product
                  has_options: true
                  is_purchasable: true
                  purchase_quantity: {}
                  rest_url: >-
                    https://example-store.com/wp-json/cocart/v2/cart/add-item?id=278&quantity=1
                meta_data: []
        '400':
          description: Bad request - invalid product ID or SKU.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: cocart_invalid_product_id
                message: Invalid product ID or SKU provided.
                data:
                  status: 400
        '404':
          description: Product not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: cocart_product_not_found
                message: Product not found.
                data:
                  status: 404
components:
  schemas:
    Product:
      type: object
      description: CoCart v2 Product object with custom structure
      properties:
        id:
          type: integer
          description: Unique identifier for the product
        parent_id:
          type: integer
          description: Product parent ID
        name:
          type: string
          description: Product name
        type:
          type: string
          description: Product type
          enum:
            - simple
            - grouped
            - external
            - variable
        slug:
          type: string
          description: Product slug
        permalink:
          type: string
          description: Product URL
        sku:
          type: string
          description: Unique identifier (SKU)
        description:
          type: string
          description: Product description
        short_description:
          type: string
          description: Product short description
        dates:
          type: object
          description: Product dates
          properties:
            created:
              type: string
              format: date-time
              description: Date created in local time
            created_gmt:
              type: string
              format: date-time
              description: Date created in GMT
            modified:
              type: string
              format: date-time
              description: Date modified in local time
            modified_gmt:
              type: string
              format: date-time
              description: Date modified in GMT
        featured:
          type: boolean
          description: Whether the product is featured
        prices:
          type: object
          description: Product pricing information
          properties:
            price:
              type: string
              description: Current product price
            regular_price:
              type: string
              description: Product regular price
            sale_price:
              type: string
              description: Product sale price (empty string if not on sale)
            price_range:
              type: object
              description: >-
                Price range for variable products (null for non-variable
                products)
              nullable: true
            on_sale:
              type: boolean
              description: Whether the product is on sale
            date_on_sale:
              type: object
              description: Sale date information
              properties:
                from:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale start date in local time
                from_gmt:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale start date in GMT
                to:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale end date in local time
                to_gmt:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale end date in GMT
            currency:
              $ref: '#/components/schemas/Currency'
        hidden_conditions:
          type: object
          description: Product conditional flags
          properties:
            virtual:
              type: boolean
              description: Whether the product is virtual
            downloadable:
              type: boolean
              description: Whether the product is downloadable
            manage_stock:
              type: boolean
              description: Whether stock is managed at product level
            sold_individually:
              type: boolean
              description: Whether only one item can be bought in a single order
            reviews_allowed:
              type: boolean
              description: Whether reviews are allowed
            shipping_required:
              type: boolean
              description: Whether the product needs to be shipped
        average_rating:
          type: string
          description: Average rating
        review_count:
          type: integer
          description: Number of reviews
        rating_count:
          type: integer
          description: Number of ratings
        rated_out_of:
          type: string
          description: Maximum rating value (formatted)
        images:
          type: array
          description: Product images
          items:
            $ref: '#/components/schemas/ProductImage'
        categories:
          type: array
          description: Product categories
          items:
            $ref: '#/components/schemas/ProductCategory'
        tags:
          type: array
          description: Product tags
          items:
            $ref: '#/components/schemas/ProductTag'
        attributes:
          type: array
          description: Product attributes
          items:
            $ref: '#/components/schemas/ProductAttribute'
        default_attributes:
          type: array
          description: Default variation attributes
          items:
            $ref: '#/components/schemas/ProductDefaultAttribute'
        variations:
          type: array
          description: Full variation objects (not just IDs)
          items:
            $ref: '#/components/schemas/ProductVariation'
        grouped_products:
          type: array
          description: Grouped product IDs
          items:
            type: integer
        stock:
          type: object
          description: Stock information
          properties:
            is_in_stock:
              type: boolean
              description: Whether the product is in stock
            stock_quantity:
              type: integer
              nullable: true
              description: Stock quantity (null if not managing stock)
            stock_status:
              type: string
              description: Stock status
              enum:
                - instock
                - outofstock
                - onbackorder
            backorders:
              type: string
              description: If managing stock, this controls if backorders are allowed
              enum:
                - 'no'
                - notify
                - 'yes'
            backorders_allowed:
              type: boolean
              description: Whether backorders are allowed
            backordered:
              type: boolean
              description: Whether the product is on backorder
            low_stock_amount:
              type: integer
              nullable: true
              description: Low stock threshold amount
        weight:
          type: object
          description: Product weight
          properties:
            value:
              type: string
              nullable: true
              description: Weight value
            unit:
              type: string
              description: Weight unit (kg, g, lbs, oz, etc.)
        dimensions:
          type: object
          description: Product dimensions
          properties:
            length:
              type: string
              nullable: true
              description: Length value
            width:
              type: string
              nullable: true
              description: Width value
            height:
              type: string
              nullable: true
              description: Height value
            unit:
              type: string
              description: Dimension unit (cm, m, in, etc.)
        reviews:
          type: array
          description: Product reviews (populated when show_reviews parameter is true)
          items:
            $ref: '#/components/schemas/ProductReview'
        related:
          type: array
          description: Related products with basic information
          items:
            $ref: '#/components/schemas/ConnectedProduct'
        upsells:
          type: array
          description: Upsell products with basic information
          items:
            $ref: '#/components/schemas/ConnectedProduct'
        cross_sells:
          type: array
          description: Cross-sell products with basic information
          items:
            $ref: '#/components/schemas/ConnectedProduct'
        total_sales:
          type: integer
          description: Total number of sales
        external_url:
          type: string
          description: External product URL (for external product type)
        button_text:
          type: string
          description: External product button text (for external product type)
        add_to_cart:
          type: object
          description: Add to cart information (CoCart-specific)
          properties:
            text:
              type: string
              description: Add to cart button text
            description:
              type: string
              description: Add to cart description
            has_options:
              type: boolean
              description: Whether the product has options
            is_purchasable:
              type: boolean
              description: Whether the product is purchasable
            purchase_quantity:
              type: object
              description: Purchase quantity limits
              properties:
                min_purchase:
                  type: integer
                  description: Minimum purchase quantity
                max_purchase:
                  type: integer
                  description: Maximum purchase quantity allowed
            rest_url:
              type: string
              description: REST URL for adding this product to cart
        meta_data:
          type: array
          description: Meta data
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
    ErrorResponse:
      type: object
      description: Standard error response structure.
      properties:
        code:
          type: string
          description: Machine-readable error code.
          example: cocart_invalid_parameter
        message:
          type: string
          description: Human-readable error message.
          example: Invalid parameter provided.
        data:
          type: object
          description: Additional error data.
          properties:
            status:
              type: integer
              description: HTTP status code.
              example: 400
            params:
              type: object
              description: Parameter-specific error details.
              additionalProperties: true
          additionalProperties: true
    Currency:
      type: object
      properties:
        currency_code:
          type: string
          description: Currency code.
        currency_symbol:
          type: string
          description: Currency symbol.
        currency_symbol_pos:
          type: string
          description: Currency symbol position.
        currency_minor_unit:
          type: integer
          description: Currency minor unit.
        currency_decimal_separator:
          type: string
          description: Currency decimal separator.
        currency_thousand_separator:
          type: string
          description: Currency thousand separator.
        currency_prefix:
          type: string
          description: Currency prefix.
        currency_suffix:
          type: string
          description: Currency suffix.
    ProductImage:
      type: object
      description: CoCart v2 Product Image with multiple size URLs
      properties:
        id:
          type: integer
          description: Image ID
        src:
          type: object
          description: Image URLs in different sizes
          additionalProperties:
            type: string
            description: URL for specific image size (thumbnail, medium, large, full, etc.)
        name:
          type: string
          description: Image name
        alt:
          type: string
          description: Image alternative text
        position:
          type: integer
          description: Image position in gallery
        featured:
          type: boolean
          description: Whether this is the featured image
    ProductCategory:
      type: object
      description: CoCart v2 Product Category
      properties:
        id:
          type: integer
          description: Category ID
        name:
          type: string
          description: Category name
        slug:
          type: string
          description: Category slug
        rest_url:
          type: string
          description: REST URL for this category
    ProductTag:
      type: object
      description: CoCart v2 Product Tag
      properties:
        id:
          type: integer
          description: Tag ID
        name:
          type: string
          description: Tag name
        slug:
          type: string
          description: Tag slug
        rest_url:
          type: string
          description: REST URL for this tag
    ProductAttribute:
      type: object
      properties:
        id:
          type: integer
          description: Attribute ID.
        name:
          type: string
          description: Attribute name.
        position:
          type: integer
          description: Attribute position.
        visible:
          type: boolean
          description: >-
            Define if the attribute is visible on the "Additional information"
            tab in the product's page.
        variation:
          type: boolean
          description: Define if the attribute can be used as variation.
        options:
          type: array
          description: List of available term names of the attribute.
          items:
            type: string
    ProductDefaultAttribute:
      type: object
      properties:
        id:
          type: integer
          description: Attribute ID.
        name:
          type: string
          description: Attribute name.
        option:
          type: string
          description: Selected attribute term name.
    ProductVariation:
      type: object
      description: >
        CoCart v2 Product Variation object. Variations use the same structure as
        Product objects,

        but with the following fields removed: type, short_description,
        hidden_conditions.reviews_allowed,

        average_rating, review_count, rating_count, rated_out_of, reviews,
        default_attributes,

        variations, grouped_products, related, upsells, cross_sells,
        external_url, button_text,

        and add_to_cart.has_options.
      properties:
        id:
          type: integer
          description: Unique identifier for the variation
        parent_id:
          type: integer
          description: Product parent ID (the variable product this variation belongs to)
        name:
          type: string
          description: Variation name
        slug:
          type: string
          description: Variation slug
        permalink:
          type: string
          description: Variation URL
        sku:
          type: string
          description: Unique identifier (SKU)
        description:
          type: string
          description: Variation description
        dates:
          type: object
          description: Variation dates
          properties:
            created:
              type: string
              format: date-time
              description: Date created in local time
            created_gmt:
              type: string
              format: date-time
              description: Date created in GMT
            modified:
              type: string
              format: date-time
              description: Date modified in local time
            modified_gmt:
              type: string
              format: date-time
              description: Date modified in GMT
        featured:
          type: boolean
          description: Whether the variation is featured
        prices:
          type: object
          description: Variation pricing information
          properties:
            price:
              type: string
              description: Current variation price
            regular_price:
              type: string
              description: Variation regular price
            sale_price:
              type: string
              description: Variation sale price (empty string if not on sale)
            price_range:
              type: object
              description: Price range (null for variations)
              nullable: true
            on_sale:
              type: boolean
              description: Whether the variation is on sale
            date_on_sale:
              type: object
              description: Sale date information
              properties:
                from:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale start date in local time
                from_gmt:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale start date in GMT
                to:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale end date in local time
                to_gmt:
                  type: string
                  format: date-time
                  nullable: true
                  description: Sale end date in GMT
            currency:
              $ref: '#/components/schemas/Currency'
        hidden_conditions:
          type: object
          description: Variation conditional flags (note reviews_allowed is not present)
          properties:
            virtual:
              type: boolean
              description: Whether the variation is virtual
            downloadable:
              type: boolean
              description: Whether the variation is downloadable
            manage_stock:
              type: boolean
              description: Whether stock is managed at variation level
            sold_individually:
              type: boolean
              description: Whether only one item can be bought in a single order
            shipping_required:
              type: boolean
              description: Whether the variation needs to be shipped
        images:
          type: array
          description: Variation images
          items:
            $ref: '#/components/schemas/ProductImage'
        categories:
          type: array
          description: Product categories (inherited from parent)
          items:
            $ref: '#/components/schemas/ProductCategory'
        tags:
          type: array
          description: Product tags (inherited from parent)
          items:
            $ref: '#/components/schemas/ProductTag'
        attributes:
          type: array
          description: Variation attributes
          items:
            $ref: '#/components/schemas/ProductAttribute'
        stock:
          type: object
          description: Stock information
          properties:
            is_in_stock:
              type: boolean
              description: Whether the variation is in stock
            stock_quantity:
              type: integer
              nullable: true
              description: Stock quantity (null if not managing stock)
            stock_status:
              type: string
              description: Stock status
              enum:
                - instock
                - outofstock
                - onbackorder
            backorders:
              type: string
              description: If managing stock, this controls if backorders are allowed
              enum:
                - 'no'
                - notify
                - 'yes'
            backorders_allowed:
              type: boolean
              description: Whether backorders are allowed
            backordered:
              type: boolean
              description: Whether the variation is on backorder
            low_stock_amount:
              type: integer
              nullable: true
              description: Low stock threshold amount
        weight:
          type: object
          description: Variation weight
          properties:
            value:
              type: string
              nullable: true
              description: Weight value
            unit:
              type: string
              description: Weight unit (kg, g, lbs, oz, etc.)
        dimensions:
          type: object
          description: Variation dimensions
          properties:
            length:
              type: string
              nullable: true
              description: Length value
            width:
              type: string
              nullable: true
              description: Width value
            height:
              type: string
              nullable: true
              description: Height value
            unit:
              type: string
              description: Dimension unit (cm, m, in, etc.)
        total_sales:
          type: integer
          description: Total number of sales for this variation
        add_to_cart:
          type: object
          description: Add to cart information (note has_options is not present)
          properties:
            text:
              type: string
              description: Add to cart button text
            description:
              type: string
              description: Add to cart description
            is_purchasable:
              type: boolean
              description: Whether the variation is purchasable
            purchase_quantity:
              type: object
              description: Purchase quantity limits
              properties:
                min_purchase:
                  type: integer
                  description: Minimum purchase quantity
                max_purchase:
                  type: integer
                  description: Maximum purchase quantity allowed
            rest_url:
              type: string
              description: REST URL for adding this variation to cart
        meta_data:
          type: array
          description: Meta data
          items:
            type: object
            properties:
              key:
                type: string
              value:
                type: string
    ProductReview:
      type: object
      properties:
        id:
          type: integer
          description: Unique identifier for the resource.
        date_created:
          type: string
          format: date-time
          description: The date the review was created.
        date_created_gmt:
          type: string
          format: date-time
          description: The date the review was created, as GMT.
        product_id:
          type: integer
          description: Unique identifier for the product that the review belongs to.
        status:
          type: string
          description: Status of the review.
        reviewer:
          type: string
          description: Name of the reviewer.
        reviewer_email:
          type: string
          description: Email of the reviewer.
        review:
          type: string
          description: The content of the review.
        rating:
          type: integer
          description: Review rating (0 to 5).
        verified:
          type: boolean
          description: Shows if the reviewer bought the product or not.
    ConnectedProduct:
      type: object
      description: CoCart v2 Connected Product (used for related, upsells, cross-sells)
      properties:
        id:
          type: integer
          description: Product ID
        name:
          type: string
          description: Product name
        permalink:
          type: string
          description: Product URL
        price:
          type: string
          description: Product price
        add_to_cart:
          type: object
          description: Add to cart information
          properties:
            text:
              type: string
              description: Add to cart button text
            description:
              type: string
              description: Add to cart description
            rest_url:
              type: string
              description: REST URL for adding this product to cart
        rest_url:
          type: string
          description: REST URL for this product

````