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

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

# Badge

A badge image and its properties.

## 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:
    AbstractBadge:
      properties:
        custom:
          description: Image URL with placeholders for {width} and {height}.
          type: string
        hex_color:
          description: The hexadecimal color code for this badge.
          nullable: true
          type: string
        original:
          description: Full size image.
          type: string
        stack:
          description: Image URL with a placeholder for a Rokka {stack}.
          type: string
        vector:
          description: Vector image.
          type: string
      type: object
    BadgeSignet:
      allOf:
        - $ref: "#/components/schemas/AbstractBadge"
      description: A badge signet and its properties.
    Badge:
      allOf:
        - $ref: "#/components/schemas/AbstractBadge"
        - properties:
            description:
              nullable: true
              type: string
            signet:
              description: An optional signet for the badge (used for "Neuheiten").
              nullable: true
              oneOf:
                - $ref: "#/components/schemas/BadgeSignet"
          type: object
      description: A badge image and its properties.
      type: object
```
