---
title: "GenericProduct"
url: "https://developer-qual.migros.ch/apis/suggestions-8/versions/0977f266-a128-4ee4-9bb9-33b61c9fdc12/schemas/GenericProduct"
---

> Full API specification: https://developer-qual.migros.ch/apis/suggestions-8/versions/0977f266-a128-4ee4-9bb9-33b61c9fdc12.md

# GenericProduct

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Suggestions
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
components:
  schemas:
    AbstractGenericProduct:
      properties:
        category_code:
          type: string
        id:
          description: Whether or not a product should be shown in EKL search.
          type: integer
        show_in_ekl_search:
          type: boolean
      type: object
    Image:
      description: An image and its properties.
      properties:
        code:
          deprecated: true
          description: Code for the image, useful for pictograms.
          nullable: true
          type: string
        custom:
          deprecated: true
          description: Image URL with placeholders for {width} and {height}.
          type: string
        description:
          deprecated: true
          description: Image description, useful for example as alt attribute.
          nullable: true
          type: string
        end_date:
          deprecated: true
          description: End date of the validity.
          format: date-time
          nullable: true
          type: string
        hash:
          deprecated: true
          description: Sha1 hash of original image.
          nullable: true
          type: string
        original:
          deprecated: true
          description: Full size image.
          type: string
        source:
          deprecated: true
          description: Source where the image comes from originally.
          nullable: true
          type: string
        stack:
          deprecated: true
          description: Image URL with a placeholder for a Rokka {stack}.
          type: string
        start_date:
          deprecated: true
          description: Start date of the validity.
          format: date-time
          nullable: true
          type: string
        tags:
          deprecated: true
          items:
            type: string
          type: array
      type: object
    GenericProduct:
      allOf:
        - $ref: "#/components/schemas/AbstractGenericProduct"
        - properties:
            image:
              nullable: true
              oneOf:
                - $ref: "#/components/schemas/Image"
            name:
              type: string
            synonyms:
              items:
                type: string
              type: array
          type: object
      required:
        - id
        - name
        - category_code
      type: object
```
