# Request counters

Give every request of a service its own sequential reference code, such as PR-2026-0001.

Source: https://support.rework.com/article/request-counters

Finance, procurement and audit all work with reference numbers. A counter gives every request of a service its own sequential code, so a purchase can be quoted in an email, printed on a document and found again in a search.

## Step 1: Turn the counter on

Open [Service settings](https://support.rework.com/article/edit-service-settings) › **Counters** and switch on **Enable counter**. Requests still work fine without one; they simply carry no code.

![Counters section with the template and the preview](https://storage.googleapis.com/reworkv3-public/success/260923/KJMUW8X9Gkjfqpq2mS0tYBEqzbMMcXDFC9AW5ZGrelUfeLgd2dfN4KccywvVgbQa/img.yXTs4EhLQQFHy05tr6A170yk1VNv9BVR5aKdpgDLJisVCvTBRFUcS5akeJvXsegB.png)

## Step 2: Design the code

Write the **Display template** with any of the variables below, then check the result in **Preview · next code**.

| Variable | Meaning |
| --- | --- |
| `{counter}` | The sequential number |
| `{year}` | Full year, for example 2026 |
| `{year_short}` | Two-digit year |
| `{month}` | Month number |
| `{month_text}` | Short month, for example Sep |
| `{day}` | Day of month |

For example, `PR-{year}-{counter}` produces _PR-2026-0001_.

![Available variables, zero padding and current value](https://storage.googleapis.com/reworkv3-public/success/260923/8zeEQ5SNZdfoChK3H79zlNyoWAxDFuAsKP3bvGbMRL47aZSZ43MBZ2bFa1RdTmSc/img.Gz3kFBdz0DrIeugZYxz3hIfVNFtlApANfnif3kJZQ9qTJ9bVBFn9XdzFqSK4hpuM.png)

- **Zero padding** sets the width of the number, from none to six digits.
  
- **Current value** is where the sequence stands. Set it if you're continuing a series from another system; the next request uses the value plus one.
  

Click **Save changes**.

## Where the code appears

- In the breadcrumb of the request, and on every row and card in the lists.
  
- In the **Counter code** filter, so you can find a request by its reference.
  
- On the request form, before you submit, as **Next code**.
  
- In print templates as `${counter_code}`, and in the default name of the generated file.
  

> **Note:** Codes are handed out when a request is filed, one after another, so two people filing at the same moment never get the same number. A code is display only: the underlying counter keeps counting even if you change the template later.

That's all it takes ✅
