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

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

# Price

The price of a product that is mapped on the product model.

## 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:
    BasePrice:
      description: |-
        Represents a price basic information in the Product.

        This is not used for the base price property.
      properties:
        currency:
          nullable: true
          type: string
        estimated_piece_price:
          description: >-
            The estimated price of a piece.


            Some products that are usually sold by weight (fruit, vegetables,
            meat). But aMigos

            needs to know the estimated price based on the average weight of one
            piece as it

            is added to the cart by number and not by weight.
          format: float
          nullable: true
          type: number
        estimated_piece_weight:
          description: |-
            The estimated weight of a piece (in grams).

            The average weight that the estimated piece price is calculated on.
          format: float
          nullable: true
          type: number
        item:
          description: The items price, quantity and unit.
          nullable: true
          oneOf:
            - $ref: "#/components/schemas/PriceQuantityUnit"
        no_price_hint:
          description: The price hint if no price is set.
          nullable: true
          type: string
        source:
          nullable: true
          type: string
        valid_from:
          format: date
          type: string
        valid_to:
          format: date
          type: string
      required:
        - valid_from
        - valid_to
      type: object
    PriceQuantityUnit:
      description: Represents the current price and quantity (within a region).
      properties:
        display_quantity:
          description: The quantity and unit to display in the frontend.
          nullable: true
          type: string
        original_price:
          description: The original price value if price is the discounted value.
          format: float
          nullable: true
          type: number
        price:
          description: The price value.
          format: float
          nullable: true
          type: number
        quantity:
          description: The quantity the price is based on.
          format: float
          nullable: true
          type: number
        unit:
          description: The price unit.
          nullable: true
          type: string
        varying_quantity:
          description: Whether the quantity is flexible or fixed.
          nullable: true
          type: boolean
      type: object
    Price:
      allOf:
        - $ref: "#/components/schemas/BasePrice"
        - properties:
            base:
              description: The base price, quantity and unit.
              nullable: true
              oneOf:
                - $ref: "#/components/schemas/PriceQuantityUnit"
          type: object
      description: The price of a product that is mapped on the product model.
      type: object
```
