---
title: "DiscountEvent"
url: "https://developer-qual.migros.ch/apis/products-8/versions/00c884ba-74fc-4f15-85ef-be7612933198/schemas/DiscountEvent"
---

> Full API specification: https://developer-qual.migros.ch/apis/products-8/versions/00c884ba-74fc-4f15-85ef-be7612933198.md

# DiscountEvent

Represents a discount event on a discount. These events are created in the M-Promo system, used for promotions. product_ids are only available on stand alone discount events, if there are any specified. discount_id and campaign_id are only set on stand alone discount events. When it is nested inside a discount, refer to the containing object to find the id and campaign ids.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Products
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api-qual.migros.ch
components:
  schemas:
    DiscountEvent:
      description: >-
        Represents a discount event on a discount. These events are created in
        the M-Promo system, used for promotions.


        product_ids are only available on stand alone discount events, if there
        are any specified.


        discount_id and campaign_id are only set on stand alone discount events.
        When it is nested inside a discount,

        refer to the containing object to find the id and campaign ids.
      properties:
        advertising_material_id:
          description: The id of the advertising material. "Werbemittel".
          nullable: true
          type: string
        advertising_material_type_id:
          description: The id of the advertising material type. "Werbemittelart".
          nullable: true
          type: string
        campaign_ids:
          description: Campaigns of the discount that contains this event.
          items:
            type: string
          nullable: true
          type: array
        discount_id:
          description: The id of the discount this event is part of.
          nullable: true
          type: string
        end_date:
          description: When the event ends.
          format: date-time
          type: string
        event_id:
          description: The id of the event.
          type: string
        product_ids:
          description: List of product ids this event applies to.
          items:
            type: string
          nullable: true
          type: array
        publication_date:
          description: >-
            When the event was published online.


            The API does not output events when the publication date is in the
            future.
          format: date-time
          type: string
        start_date:
          description: When the event starts.
          format: date-time
          type: string
      required:
        - event_id
        - advertising_material_type_id
        - advertising_material_id
        - start_date
        - end_date
        - publication_date
      type: object
```
