Skip to main content
Series are numbering templates that generate unique, sequential identifiers for your documents. Most countries require business documents such as invoices to be numbered in sequence, without gaps or duplicates. Each series defines how numbers are formatted, including prefixes, suffixes and zero-padding. For example, a series configured with the options on the left numbers documents like those in the right box:
The two parts are stored separately. The Add sequential code workflow step writes the series code (INV) to the document’s series field and the generated number (ES-00001) to its code field. Invoices show the two joined with a dash.

Create a series

  1. Open Configuration → Series in the Console.
  2. Click the button to create a new series.
  3. Fill in the fields described below.
  4. Check the Preview on the right side of the form, which shows the resulting code for the values you have entered.
  5. Click Save.
Create series form with the preview panel showing INV-ES-00001
Series can also be created through the API. See the Sequences overview.

Use a series in a workflow

The most common way to use a series is the Add sequential code step. It generates the next number in the sequence and adds it to the document.
Add sequential code step configured with a dynamic sequence
The step’s Sequence field offers two options:
  • Dynamic (the default): the step creates a series automatically for each combination of supplier tax ID and series found in the document, and reuses it on later runs. This suits workflows that number documents for several suppliers or several series codes, since each combination gets its own counter.
  • An existing series: the step always takes numbers from the series you select, which you have created beforehand.
With Dynamic, enter a Name for the series the step creates, and optionally a prefix, suffix, padding and start number. Padding defaults to 6 and the start number to 1. The document must already contain a series value and a supplier tax ID, otherwise the step fails. The step is skipped if the document already has a code or is signed.

Choose the series for each job

If you need to specify which series to use at runtime, rather than fixing it in the workflow configuration, you can pass a sequence-series-id argument when creating a job. This is useful when different documents in the same workflow should use different pre-created series. To use this feature, include the series UUID in the job’s args map with the key sequence-series-id when calling the create a job endpoint:
When sequence-series-id is provided:
  • The workflow must contain an Add sequential code step. The argument does not add the step for you; it only determines which series the existing step uses.
  • The step’s own series configuration (dynamic or existing) is ignored in favor of the series specified by the argument.
  • The value must be a valid UUID referencing an existing series created via the API or Console.
  • If the series does not exist, the task fails with a "sequence not found" error. No series is created automatically.
  • If sequence-series-id is not provided or is empty, the workflow step falls back to its normal behavior (dynamic or existing series from the configuration).

Tips

  • Use prefixes for country or business unit codes (e.g., ES-, FR-, US-), and keep prefixes and suffixes short.
  • Choose a padding that fits your volume: 3 covers up to 999 documents, 6 up to 999,999.
  • Start Number is usually 1. If you are continuing a series from another system, set it to the next number in your sequence. It only applies before the first number is issued.
  • Create separate series for each document type, such as invoices and credit notes. Many countries require it, and some prescribe the format: Portugal, for example, requires document type prefixes such as FT for invoices and NC for credit notes.
  • If you use a year suffix such as -2026 to restart numbering annually, create a new series each year.
  • Description is for internal organization only.

FAQ

The document has no series defined. The Add sequential code step needs it to decide which dynamic series to use.
Many jurisdictions require separate numbering series for different document types, for example one for standard invoices and another for credit notes. Even when it is not mandatory, distinct series make administration easier, so we recommend it.
If you reach the maximum for the padding (for example 999999 with a padding of 6), create a new series or increase the padding. Plan the padding for your expected volume.
No. Each entry receives the next number, without skips or duplicates. If you need to account for voided documents, handle that in your own records.
Set the Start Number to the next number in your existing sequence. For example, if your last invoice was number 100, create the series with a start number of 101.
You can update some properties through the API, but changes may affect how later numbers look compared with existing ones. The start number only applies before the first number is issued.