PlutocracyMercury developer docs

Badge

A merchandising badge as the server sends it. Positions use "centery"/"centerx" for centred.

Type: object

FieldTypeDescription
contentstring
backgroundstring
colourstring
positionystring
positionxstring
classes optionalstring

CSS classes for the badge.

type optionalstring
Example (illustrative)
{
  "content": "string",
  "background": "#1f6feb",
  "colour": "#1f6feb",
  "positiony": "string",
  "positionx": "string",
  "classes": "string",
  "type": "Shirts"
}

Used by

Declared in api-types/src/kit-contract/v1/search-api.ts.