> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paperjoy.co/llms.txt
> Use this file to discover all available pages before exploring further.

# QR codes on postcards: a link on the card and scan statistics

> Add a QR code sticker to a card and see in the app how many cards brought someone to your page.

A QR code turns a handwritten card into a way to your page: an offer, a survey, a discount code, or photos from an event. We print it on a 30 × 30 mm sticker and place it in the card's bottom-right corner. The Paperjoy app shows how many cards someone actually scanned.

![A handwritten postcard: Dear Anna, thank you for a lovely year together! Scan the code in the corner to claim your spring discount on bouquets. A QR code sticker in the bottom-right corner.](https://mintcdn.com/paperjoy/FYtEKC5NBJj6lKHu/images/postcards/card-qr-en.webp?fit=max\&auto=format\&n=FYtEKC5NBJj6lKHu\&q=85\&s=559d82390379b4d8f58949110fe63862)

A preview from the Paperjoy renderer. Lines next to the sticker are shorter so the text never runs into it.

## How it works

1. You give the URL of your page, such as `https://example.com/spring`.
2. The code on the sticker goes through a short `https://paperjoy.co/q/…` link, a different one for each card.
3. When someone scans the code, Paperjoy counts the scan and redirects them to your URL right away.

We add `utm_source=paperjoy&utm_medium=postcard` to your URL, so visits from cards show up in Google Analytics and similar tools. If your link already has any `utm_` parameter, we leave it unchanged, so you can set your own, such as `?utm_source=postcard&utm_campaign=spring`.

Want the link to use your company's address instead of `paperjoy.co`? Connect a [custom domain](https://docs.paperjoy.co/en/postcards/qr-domain.md).

**The QR code is included in the postcard's price.** A card with a code costs the same as one without: one credit.

## Add a QR code

> [tab] Editor
>
> In the [editor](https://docs.paperjoy.co/en/integrations/editor.md), enter the URL under **Kod QR** (QR code). The preview shows the sticker right away, along with how the text wraps next to it.
>
> ![The Paperjoy editor with a URL in the Kod QR section and a card preview with a QR sticker in the bottom-right corner. Cost: 1 credit.](https://mintcdn.com/paperjoy/FYtEKC5NBJj6lKHu/images/app/editor-qr.webp?fit=max\&auto=format\&n=FYtEKC5NBJj6lKHu\&q=85\&s=014d4c1adc9d1741c7e86d0b26baaa07)

> [tab] CSV campaign
>
> Add a `qr_url` column to the file. Each row can point to a different URL, and an empty cell means a card without a code. See [CSV campaign](https://docs.paperjoy.co/en/integrations/campaigns.md).

> [tab] API
>
> Send the `qr_url` field in [`POST /api/postcards`](https://docs.paperjoy.co/en/postcards/create). In a draft, change it with `PATCH /api/postcards/{id}`, and `null` removes the code.
>
> ```bash theme={null}
> curl https://paperjoy.co/api/postcards \
>   --header "Authorization: Bearer $PAPERJOY_API_KEY" \
>   --header "Idempotency-Key: 7d2e9c41-3a5b-4f8e-b0c6-1e9a8d4f2b73" \
>   --header "Accept: application/json" \
>   --header "Content-Type: application/json" \
>   --data '{
>     "content": "Dear Anna,\nthank you for a lovely year together! Scan the code in the corner to claim your spring discount.",
>     "signature": "Marta",
>     "font_id": "font-1",
>     "qr_url": "https://example.com/spring",
>     "recipient": { "first_name": "Anna", "last_name": "Kowalska" },
>     "address": {
>       "line_1": "ul. Kwiatowa 12/4",
>       "postal_code": "00-511",
>       "city": "Warszawa",
>       "country": "PL"
>     }
>   }'
> ```
>
> The response includes `qr_url`, `credit_cost`, and `qr_scans` with the scan count. The [preview](https://docs.paperjoy.co/en/postcards/preview.md) accepts `qr_url`, so you can check the text layout before you order.

> [tab] AI assistant
>
> The [MCP server](https://docs.paperjoy.co/en/integrations/mcp.md) tools `create-postcard-tool` and `update-draft-tool` accept `qr_url`. Just tell your assistant where the code should lead.

## Choose a good URL

* **`http` or `https` only**, up to 255 characters.
* **A shorter URL makes a sparser code.** It scans more easily from a distance or in poor light.
* **The page must work on a phone.** Almost every scan comes from a phone.
* **The page must stay up.** Cards sit on desks and fridges for months. Don't use links that expire.
* **Say in the message what's behind the code.** "Scan the code to claim your discount" works better than a code with no explanation.
* **The message has less room.** Lines next to the sticker are shorter. If the message doesn't fit, the editor and the API return a `card_fit` error before anything is ordered.

> [!NOTE]
>
> You can't change the URL after the postcard is ordered. You can only change it in a [draft](https://docs.paperjoy.co/en/postcards/drafts.md).

## Scan statistics

Once you send your first card with a code, the **Panel** (Dashboard) page shows scan statistics. The headline and tiles at the top show the number of scans and the scan rate.

![The top of the dashboard: 28 cards went to the post office and 12 of them have been scanned. Tiles: 42 ordered, 28 sent, 14 in production, 15 QR scans, and a 55% scan rate.](https://mintcdn.com/paperjoy/FYtEKC5NBJj6lKHu/images/app/dashboard-summary.webp?fit=max\&auto=format\&n=FYtEKC5NBJj6lKHu\&q=85\&s=ae6151bcc95d3048c14a0eae4049e46c)

The **Kody QR** (QR codes) section covers the cards with a code sent in the selected period (7, 30, or 90 days), with all of their scans.

![The QR codes section: 22 cards sent with a code, 12 scanned at least once (55%), a chart of 15 scans per day, phones versus computers, the latest scan, and a table of URLs with their cards, scans, and scan rate.](https://mintcdn.com/paperjoy/FYtEKC5NBJj6lKHu/images/app/dashboard-qr-stats.webp?fit=max\&auto=format\&n=FYtEKC5NBJj6lKHu\&q=85\&s=55afdcb9980415cce605c825f16d78f7)

| Metric | What it means |
| - | - |
| **Współczynnik skanów** (Scan rate) | The share of cards sent with a code that were scanned at least once. The postcard equivalent of an email open rate. |
| **Skanowane w kilka różnych dni** (Scanned on several days) | Cards someone scanned on more than one day, e.g. they came back to the offer or passed the card on. |
| **Skany dziennie** (Scans per day) | Every scan in the period, day by day. |
| **Urządzenia** (Devices) | Phones versus computers and tablets. |
| **Dokąd prowadzi kod** (Where the code leads) | Results for each URL separately, with where the cards came from, e.g. **Edytor** (Editor), **Kampania CSV** (CSV campaign), or **API**. |

The postcard table at the bottom of the dashboard has a **Kod QR** (QR code) column with the scan count and the time of the latest scan. The **Tylko z kodem QR** (Only with a QR code) switch narrows the list to cards with a code.

![The postcard table on the Wysłane (Sent) tab with the Tylko z kodem QR switch on. The Kod QR column shows 1 scan, 2 scans, or not scanned yet.](https://mintcdn.com/paperjoy/FYtEKC5NBJj6lKHu/images/app/dashboard-qr-postcards.webp?fit=max\&auto=format\&n=FYtEKC5NBJj6lKHu\&q=85\&s=08ea59825c3cccc4173a698ba419cf15)

### Scans in the API

Every postcard with a code has a `qr_scans` field in API responses. A postcard without a code has `qr_scans` set to `null`.

```json theme={null}
"qr_url": "https://example.com/wiosna",
"qr_scans": {
  "count": 2,
  "first_scanned_at": "2026-11-21T08:12:00+00:00",
  "last_scanned_at": "2026-11-23T19:40:00+00:00"
}
```

* `count` is every scan, including repeat scans by the same person.
* `first_scanned_at` and `last_scanned_at` are `null` until someone scans the code.
* Fetch postcards with [`GET /api/postcards`](https://docs.paperjoy.co/en/postcards/list-and-retrieve), or one campaign's postcards with [`GET /api/campaigns/{id}/postcards`](https://docs.paperjoy.co/en/integrations/campaigns), to work out the scan rate in your own tools.
* The API returns totals only. Devices, countries, and results per URL are in the Paperjoy app.

### When the first scans arrive

A card takes 2–3 days to arrive, and the first scan usually comes a few days after mailing. Until then, the dashboard shows how many cards with a code are on their way and when to expect the first scans.

### What counts as a scan

* We count people opening the link. Link previews in messaging apps, bots, and link checks that don't open the page are redirected but not counted.
* We don't store IP addresses or full browser names. For each scan we keep only the time, the device type, the country, and an anonymous identifier that changes every day. That's why we can't tell the same person apart across days.

> [!TIP]
>
> Don't want QR statistics on your dashboard? Before you send your first card with a code, close the **Kody QR** (QR codes) section with its **×** button. It comes back when you send a card with a code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.