INV-2026-0042. Each document type has its own series, so invoices, credit notes and quotes count separately. You set the number format in Settings › Documents & printing, in the Document numbering section. Document numbering is available on every plan.

Before you start
Only templates with a document type are numbered. In each template’s settings, set Document type to Invoice, Credit note or Quote. Templates set to Other (not numbered), such as packing slips and returns forms, never get a number. If you turn on numbering for a type and no template has that document type yet, Foliant shows a warning, for example: “No template is an invoice yet, so nothing will be numbered.”Turn on numbering
- In Foliant, go to Settings › Documents & printing.
- In Document numbering, turn on Number invoices, Number credit notes or Number quotes.
- Set the format (see the table below). Under the fields, Next numbers shows the next three numbers as they will look.
- Click Save.
- Foliant asks you to confirm: Save document numbering? lists the next numbers for each type you changed. Click Save numbering.
Number format
Use the date in the prefix or suffix
You can add{year} and {month} to the prefix or suffix. Foliant replaces them with the year (2026) and month (05) of the day the number is issued, in your store’s time zone.
For example, the prefix INV-{year}- with 4 digits gives INV-2026-0001, INV-2026-0002, and so on.
Restart every year or month
If numbers start again at 1, they would repeat unless the date is part of the number. So:- Every year needs
{year}in the prefix or suffix. - Every month needs both
{year}and{month}.
{year} in the prefix or suffix, or they would repeat.” and you can’t save until you add them.
When you change how often numbers restart, counting carries on from the current number in the current period. Numbers don’t jump back to 1 until the next year or month starts.
The next number only moves forward
Once a document has a number, it keeps it, and Foliant never gives that number to another document. You can raise Next number, for example to carry on from the numbers you used in another app. You can’t lower it below the number the next document would get. Under each type, Foliant shows the last number issued and its date, for example “Last issued: INV-2026-0041 on 3 May 2026”.Show the number on your documents
Templates show the number with the Liquid variable{{ document_number }}. The built-in invoice, credit note and quote templates already show it, with the date it was issued as the “Invoice date” (“Credit note date”, “Quote date”). In the visual editor, the Document number block shows the number and that date on numbered documents. In your own templates, print the date with {{ document_date }}: see The invoice date.
If a numbered template doesn’t use {{ document_number }} yet, Foliant adds a small line at the bottom of the document, such as “Invoice number: INV-2026-0042 · May 3, 2026”, so the number and its date are never missing.
Turn numbering off
Turn off the switch for a type and save. New documents of that type aren’t numbered. Numbers already issued are kept: those documents keep their number when you download or print them again.Good to know
- Template previews in the editor show the next number as an example. They don’t use up a number.
- If some numbering changes can’t be saved, Foliant shows “Some numbering changes weren’t saved” and points to the field to fix. Your other settings on the page are still saved.
- Raising the next number is recorded in your Settings › Activity log.