---
title: "Aggregations"
url: "https://developer-qual.migros.ch/apis/stores-api-1/versions/d092d138-22ea-4d50-9f9f-f4bbba8fa18e/schemas/Aggregations"
---

> Full API specification: https://developer-qual.migros.ch/apis/stores-api-1/versions/d092d138-22ea-4d50-9f9f-f4bbba8fa18e.md

# Aggregations

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Stores API
  version: "1.0"
servers:
  - url: https://test-stores-api.intern.migros.net
components:
  schemas:
    Aggregation:
      properties:
        buckets:
          items:
            properties:
              count:
                type: number
              name:
                type: string
              term:
                type: string
            required:
              - term
              - count
              - name
            type: object
          type: array
        name:
          type: string
        other_count:
          type: number
      required:
        - name
        - other_count
        - buckets
      type: object
    AggregationWithKeys:
      properties:
        buckets:
          items:
            properties:
              count:
                type: number
              name:
                type: string
              term:
                properties:
                  key:
                    type: string
                  value:
                    type: string
                required:
                  - key
                  - value
                type: object
            required:
              - term
              - count
              - name
            type: object
          type: array
        name:
          type: string
        other_count:
          type: number
      required:
        - name
        - other_count
        - buckets
      type: object
    Aggregations:
      properties:
        assortments:
          $ref: "#/components/schemas/Aggregation"
        cooperatives:
          $ref: "#/components/schemas/Aggregation"
        counter_type:
          $ref: "#/components/schemas/Aggregation"
        daily_type:
          $ref: "#/components/schemas/Aggregation"
        markets:
          $ref: "#/components/schemas/Aggregation"
        offer_groups:
          $ref: "#/components/schemas/Aggregation"
        offers:
          $ref: "#/components/schemas/Aggregation"
        open_on:
          $ref: "#/components/schemas/AggregationWithKeys"
        packet_sizes:
          $ref: "#/components/schemas/Aggregation"
        pickmup_type:
          $ref: "#/components/schemas/Aggregation"
        promoted:
          $ref: "#/components/schemas/Aggregation"
        return_option:
          $ref: "#/components/schemas/Aggregation"
        services:
          $ref: "#/components/schemas/Aggregation"
        size:
          $ref: "#/components/schemas/Aggregation"
        stores:
          $ref: "#/components/schemas/Aggregation"
        sub_type:
          $ref: "#/components/schemas/Aggregation"
        supported_stores:
          $ref: "#/components/schemas/Aggregation"
        type:
          $ref: "#/components/schemas/Aggregation"
      type: object
```
