# Promo card

> Canonical HTML: https://screenrig.ai/docs/cards/promo/

A big photo, the name and the price on the theme's own tag, with an ends-in countdown and a QR code: the limited-time offer or featured item of a menu board.

Category: Food and drink. Tags: Restaurants and cafes, Stores, Prices and rates, Countdowns and timers, QR codes.

## Previews

![Promo](/cards/promo/v1/screenshots/canvas-bloom.webp?sha=400ea0d46f5e2895b1ccf4bec515610367b201cc331e217bbcfea49a3620831f)

Canvas

![Promo](/cards/promo/v1/screenshots/corner-bloom.webp?sha=4ac4d44f255f4087992f01c21fcaafd58a44d8aee63fb3e3211eaffaffc195d9)

Corner

![Promo](/cards/promo/v1/screenshots/chip-bloom.webp?sha=9e5be6b20b3631187927e9c8d042f3e8b736f35dcbda1936f5d0b7ee991e1b98)

Chip

## Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#common-properties).

Set static properties in `params`. Bind `data` to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in `params`. Nested rows describe the contents of their parent property.

### Static properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `currency` | string | `"$"` | maxLength: `3` |  |
| `unit` | string | `""` | maxLength: `8` | Shown after the price, for example /lb or each. |
| `layout` | string | `"split"` | `"split"`, `"framed"`, `"full"` | split: the photo bleeds off one side. framed: the photo sits in the theme's frame. full: the photo fills the card under a veil. |
| `timeZone` | string, null | `null` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `headline` | string | `"Smoky double stack"` | maxLength: `120` | The item or offer, large. |
| `subline` | string | `"Two beef patties, melted cheddar and our house sauce."` | maxLength: `200` |  |
| `badge` | string | `"Limited time"` | maxLength: `24` |  |
| `price` | number, null | `null` | minimum: `0` | Leave empty for a promo without a price. |
| `was` | number, null | `null` | minimum: `0` | The old price, struck through; the saving is worked out. |
| `image` | string | `""` | maxLength: `200` | The photo: a project media reference (media:<id>). Empty shows the theme's tile. |
| `ends` | string, null | `null` |  | ISO 8601 with an offset, or local YYYY-MM-DDTHH:MM in timeZone. Shows an ends-in countdown. |
| `qr` | string | `""` | maxLength: `2000` | The address the QR code opens. Empty shows no code. |
| `cta` | string | `"Scan to order"` | maxLength: `80` | The line beside the QR code. |

## Canvas example

Add this item to a playlist page’s `primitives`. [Publish the playlist and assign a screen](/docs/cards/#publish-a-card-canvas).

```json
{
  "id": "promo",
  "primitive": "card",
  "card": "promo",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "promo-main"
}
```

## Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see [API authentication](/docs/authentication/).

```console
curl --request PUT "https://api.screenrig.ai/api/card-data/promo-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"headline":"Smoky double stack","subline":"Two beef patties, melted cheddar and our house sauce.","badge":"Limited time","price":null,"was":null,"image":"","ends":null,"qr":"","cta":"Scan to order"}}'
```
