---
title: "Data for the three UCBs (CHF 5, 10 and 20)."
url: "https://developer-qual.migros.ch/apis/coupons-3/versions/b27797a2-ad08-41e0-8429-0f1aeab8826f/operations/ucb"
---

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

# Data for the three UCBs (CHF 5, 10 and 20).

`GET` `/migros/customers/coupons/v3/ucbs`

Operation ID: `ucb`

Data for the three UCBs (CHF 5, 10 and 20).

## Query parameters

- `lang` (string, optional) - Override Accept-Language header

## Responses

- `200` - The UCB data
- `default` - Standard HTTP semantics (see above), no machine-interpretable body.

## 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
paths:
  /migros/customers/coupons/v3/ucbs:
    get:
      description: Data for the three UCBs (CHF 5, 10 and 20).
      operationId: ucb
      parameters:
        - $ref: "#/components/parameters/lang-without-en"
      responses:
        "200":
          content:
            application/json:
              schema:
                items:
                  $ref: "#/components/schemas/UCB"
                type: array
          description: The UCB data
        default:
          description: Standard HTTP semantics (see above), no machine-interpretable body.
      summary: Data for the three UCBs (CHF 5, 10 and 20).
      tags:
        - Static-Data
security:
  - Kong-Api-Key: []
  - Basic-Auth: []
components:
  parameters:
    lang-without-en:
      description: Override Accept-Language header
      in: query
      name: lang
      schema:
        enum:
          - de
          - fr
          - it
        type: string
  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
  securitySchemes:
    Kong-Api-Key:
      description: Kong key-auth authentication
      in: header
      name: X-Api-Key
      type: apiKey
    Basic-Auth:
      description: Kong basic-auth authentication
      scheme: basic
      type: http
```
