---
title: "UserUCB"
url: "https://developer-qual.migros.ch/apis/coupons-3/versions/b27797a2-ad08-41e0-8429-0f1aeab8826f/schemas/UserUCB"
---

> Full API specification: https://developer-qual.migros.ch/apis/coupons-3/versions/b27797a2-ad08-41e0-8429-0f1aeab8826f.md

# UserUCB

Personalized UCB information of a user based on ReTi.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Coupons
  version: 3.4.0
servers:
  - description: URL of upstream
    url: https://api-qual.migros.ch
components:
  schemas:
    UCB:
      description: Static data of an UCB (Blauer Bon/Coupon Bon).
      properties:
        description:
          example: Bon Wert Fr. 5
          type: string
        id:
          description: This ID just identifies the value (5, 10, 20 CHF) only. The
            individual physical UCB is identified by a UCB-ID that equals the
            number/barcode printed on the UCB.
          example: "980500100000"
          type: string
        image:
          example: https://image.migros.ch/coupons/{stack}/40187ac745c07f16a184508f17f3a3cb255d4537.jpg
          type: string
        image_app:
          example: https://image.migros.ch/coupons/{stack}/76a605b12f8ad8586c70b3a0a920836bcb5f94d8.png
          type: string
        image_app_inactive:
          example: https://image.migros.ch/coupons/{stack}/4a67aeb0ff88b07cc2cd4b4cd2b0272759f74779.png
          type: string
        image_inactive:
          example: https://image.migros.ch/coupons/{stack}/6c8cf3ca90d107207ca6760e8eb4e554d67c438d.jpg
          type: string
        language:
          example: de
          type: string
        value:
          example: 5
          format: int32
          type: integer
      required:
        - id
        - language
        - value
        - image
        - image_inactive
        - image_app
        - image_app_inactive
      type: object
    UserUCB:
      description: Personalized UCB information of a user based on ReTi.
      properties:
        balance:
          description: Value of this UCB in CHF.
          enum:
            - 5
            - 10
            - 20
          example: 5
          type: integer
        expiry:
          description: Valid until (including) this date.
          example: 2025-09-30+02:00
          type: string
        id:
          description: The actual UCB-ID that identifies the individual UCB. This ID is
            the number/barcode printed on the UCB.
          example: "778400003621541383"
          type: string
        published:
          description: Valid from (including) this date.
          example: 2023-07-18+02:00
          type: string
        redeemed:
          description: Date and time of redemption.
          example: 2015-05-27T08:27:27+02:00
          type: string
        status:
          description: 1 = available, 2 = activated, 3 = redeemed.
          enum:
            - 1
            - 2
            - 3
          type: integer
        ucb:
          $ref: "#/components/schemas/UCB"
      required:
        - id
        - status
        - balance
      type: object
```
