# Offer card

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

A striking price tag: the price, what it was, what you save, and when the deal ends.

Category: Retail. Tags: Prices and rates, Stores, Restaurants and cafes.

## Previews

![Offer](/cards/offer/v1/screenshots/canvas-bloom.webp?sha=421c84be38cf3d671fad43fc5eceebf5a83650074c9197c03060c2444f66c3d0)

Canvas

![Offer](/cards/offer/v1/screenshots/corner-bloom.webp?sha=07e079b3df650ea77d60e2c30b25a364e4edc4e7616c2c5cf134a4e16a00e340)

Corner

![Offer](/cards/offer/v1/screenshots/chip-bloom.webp?sha=3575b8a83dd1ed8a4608c60138f8437339ce59d4889f9676ceb773a9eb9957ad)

Chip

## Views and forms

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

[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 |
| --- | --- | --- | --- | --- |
| `title` | string | `""` | maxLength: `40` |  |
| `currency` | string | `"$"` | maxLength: `3` |  |
| `unit` | string | `""` | maxLength: `8` | Shown after the price, for example /lb or each. |
| `hour12` | boolean | `false` |  |  |
| `timeZone` | string, null | `null` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `product` | string |  | minLength: `1`; maxLength: `60`; Required |  |
| `price` | number |  | minimum: `0`; Required |  |
| `was` | number, null | `null` | minimum: `0` |  |
| `badge` | string | `""` | maxLength: `16` |  |
| `ends` | string, null | `null` |  | ISO 8601 with an offset, or local YYYY-MM-DDTHH:MM in timeZone. |
| `fine` | string | `""` | maxLength: `160` |  |

## 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": "offer",
  "primitive": "card",
  "card": "offer",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "offer-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/offer-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"product":"Example","price":1,"was":null,"badge":"","ends":null,"fine":""}}'
```
