---
title: "StockData"
url: "https://developer.migros.ch/apis/products-related-8/versions/605be1d6-ffb8-4b27-8cd0-286a81eaec29/schemas/StockData"
---

> Full API specification: https://developer.migros.ch/apis/products-related-8/versions/605be1d6-ffb8-4b27-8cd0-286a81eaec29.md

# StockData

Information about the stock in the distribution centers (Verteilzentrum) from SAP.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Products Related
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api.migros.ch
components:
  schemas:
    DistributionCenter:
      properties:
        distribution_center_id:
          description: >-
            Limit how many items one customer may order (A).


            Mostly the same as the freely usable stock, except for specific
            products like new game consoles or face masks at the beginning of
            the pandemic.
          type: string
        per_customer:
          nullable: true
          type: integer
        present:
          nullable: true
          type: integer
        usable:
          nullable: true
          type: integer
      required:
        - distribution_center_id
      type: object
    StockData:
      description: Information about the stock in the distribution centers
        (Verteilzentrum) from SAP.
      properties:
        distribution_centers:
          items:
            $ref: "#/components/schemas/DistributionCenter"
          type: array
        product_id:
          description: |-
            Sum of the effective quantities over all inventories.

            Each EF value is floored before adding together.
          type: string
        total_quantity:
          type: integer
      required:
        - product_id
        - total_quantity
        - distribution_centers
      type: object
```
