---
title: "PurchaseResponse"
url: "https://developer-qual.migros.ch/apis/layout-api-1/versions/fcc71337-b27c-4bc7-8aea-a50107bf562d/schemas/PurchaseResponse"
---

> Full API specification: https://developer-qual.migros.ch/apis/layout-api-1/versions/fcc71337-b27c-4bc7-8aea-a50107bf562d.md

# PurchaseResponse

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Layout-API
  version: 1.3.0
servers:
  - description: URL of upstream
    url: https://api-qual.migros.ch
components:
  schemas:
    PurchaseResponse:
      items:
        properties:
          items:
            items:
              properties:
                code:
                  description: The "intcode" i.e. Product-ID of item.
                  example: "661417800000"
                  type: string
                descr:
                  description: Description as printed on the receipt
                  example: MC  Aceton
                  type: string
                price:
                  description: Price in CHF. This is the actual price paid for the whole position.
                    Its quantity * regularPrice - reduction. In this example a
                    single bottle of Aceton has a regular price of CHF 17. A
                    Aktion "12 statt 17 CHF" is in place. So 2 bottles cost 24
                    CHF.
                  example: 24
                  type: number
                qty:
                  description: Quantity. Whole number for piece goods. Can be a fraction for
                    articles sole by weight, length or area.
                  example: 2
                  type: number
                reduction:
                  description: Optional price reduction in CHF for the while position. Each bottle
                    is 5 CHF reduced, so total reduction for 2 bottles is 10
                    CHF.
                  example: 10
                  type: number
                unit:
                  description: Unit of qty. 0 piece, 1 kg, 3, meter, 4 m^2, 6 liter, 7 kWh
                  example: 3
                  type: number
                warranties:
                  description: IDs of the warranties for these items. If three TVs are bought,
                    three separate warranties will be emitted.
                  items:
                    description: Warranty ID
                    example: 20220113_154144_0065245_042_151_0
                    type: string
                  type: array
              required:
                - code
                - descr
                - price
                - qty
              type: object
            type: array
          points:
            description: Cumulus points obtained for this purchase.
            example: 48
            type: number
          storeID:
            description: ID of the store. Filial-ID
            example: "0036713"
            type: string
          storeName:
            description: Name of the store
            example: D + G Wynecenter
            type: string
          timestamp:
            description: Human readable time stamp of purchase in local time zone
            example: 30.03.2013 10:15:48
            type: string
          totalCHF:
            description: Total amount of the receipt in CHF (might be different from the sum
              of items.)
            example: 24
            type: number
          trxID:
            description: Transaction ID of receipt
            example: 20220124_174650_0045160_046_203
            type: string
        type: object
      type: array
```
