# Product on sale OG image template

Product photo with a discount sticker, the new price and the old one struck through.

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

For shops and marketplaces: the discount sits on a starburst sticker over the photo, the price is huge and the old price is crossed out next to it. Render one per product from your catalogue, or per campaign.

## 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 |
|---|---|---|---|
| `name` | text | Product name. (default: Product name) | Studio Wireless Headphones |
| `brand` | text | Brand or shop name shown above the product. | Aurora Audio |
| `price` | text | Price as you want it printed, with the currency. | $139 |
| `old_price` | text | Price before the discount, struck through. | $199 |
| `discount` | text | Discount on the sticker, e.g. -30%. | -30% |
| `cta` | text | Call to action on the button. (default: Shop now) | — |
| `site` | text | Your domain or a short URL. | aurora-audio.com |
| `photo` | image URL | Product photo, cropped to a circle. | https://example.com/images/headphones.jpg |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #e11d48) | #e11d48 |
| `theme` | dark | light | Colour scheme: dark or light. (default: 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": "product-sale",
    "modifications": {
        "name": "Studio Wireless Headphones",
        "brand": "Aurora Audio",
        "price": "$139",
        "old_price": "$199",
        "discount": "-30%",
        "site": "aurora-audio.com",
        "photo": "https://example.com/images/headphones.jpg"
    }
}'
```

## 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/product-sale/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
