# Flash sale OG image template

A giant discount on a full accent-coloured background with diagonal stripes, the sale name and when it ends.

- Slug: `flash-sale`
- Preview (real render): https://shareglint.com/img/templates/flash-sale.jpg
- Page: https://shareglint.com/en/templates/flash-sale

For time-limited sales, Black Friday and app-wide promotions. The whole frame is your accent colour, the discount is the largest thing on it and the end time sits on a dark pill so the urgency reads at thumbnail size. Text colour adapts to the accent, so a yellow brand gets dark type automatically.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `discount` | text | The discount, e.g. 70%. Long values shrink to fit. (default: 50%) | 70% |
| `off_label` | text | Word printed after the discount, e.g. OFF. (default: OFF) | — |
| `title` | text | Name of the sale, e.g. Flash sale. (default: Flash sale) | — |
| `subtitle` | text | What is on sale, e.g. Everything sitewide. | Everything sitewide, today only |
| `ends` | text | When the sale ends, e.g. Ends tonight at 23:59. | Ends tonight at 23:59 |
| `cta` | text | Call to action on the button. (default: Shop the sale) | — |
| `site` | text | Your domain or a short URL. | aurora-audio.com |
| `logo` | image URL | Shop logo, shown next to the site address. | — |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #facc15) | #facc15 |
| `theme` | dark | light | Colour scheme: dark or light. | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "flash-sale",
    "modifications": {
        "discount": "70%",
        "subtitle": "Everything sitewide, today only",
        "ends": "Ends tonight at 23:59",
        "site": "aurora-audio.com"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/flash-sale/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
