# Back in stock OG image template

A restocked product in an arched window on a plinth, a peeling sticker over it and the low-stock note as a short meter.

- Slug: `back-in-stock`
- Preview (real render): https://shareglint.com/storage/template-previews/back-in-stock.jpg
- Page: https://shareglint.com/en/templates/back-in-stock

For stores and Shopify apps that post a restock alert from an inventory webhook. The meter fills to the first number in `stock_note` ("Only 12 left" fills 12 %), so a scarce product shows a short bar. Without a photo the arch shows a striped panel with the product's first letter; a long product name shrinks, and the sticker text shrinks inside its square. Wide frames put the plinth on the left and the text on the right; square and vertical frames stand the plinth on top and the text under it.

## 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 |
|---|---|---|---|
| `product` | text | Product name, the headline. (default: Product name) | Studio Wireless Headphones |
| `label` | text | Sticker text, e.g. Back in stock or Restocked. (default: Back in stock) | Back in stock |
| `variant` | text | Colour, size or model, one line, e.g. Midnight Black · Over-ear. | Midnight Black · Over-ear |
| `price` | text | Price as shown, e.g. $139. | $139 |
| `stock_note` | text | Low-stock note over the meter, e.g. Only 12 left; its first number sets how full the meter is (0–100). | Only 12 left |
| `cta_label` | text | Button text, e.g. Grab yours. (default: Shop now) | Grab yours |
| `url` | text | Store address next to the logo. | aurora-audio.com |
| `image` | image URL | Product photo; fills the arch. | https://example.com/images/headphones.jpg |
| `logo` | image URL | Store logo, square. | https://example.com/images/b07-aurora.png |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #a3e635) | #a3e635 |
| `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": "back-in-stock",
    "modifications": {
        "product": "Studio Wireless Headphones",
        "label": "Back in stock",
        "variant": "Midnight Black · Over-ear",
        "price": "$139",
        "stock_note": "Only 12 left",
        "cta_label": "Grab yours",
        "url": "aurora-audio.com",
        "image": "https://example.com/images/headphones.jpg",
        "logo": "https://example.com/images/b07-aurora.png"
    }
}'
```

## 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/back-in-stock/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
