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
- Open Configuration → Series in the Console.
- Click the button to create a new series.
- Fill in the fields described below.
- Check the Preview on the right side of the form, which shows the resulting code for the values you have entered.
- Click Save.

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.
- Dynamic (the default): the step creates a series automatically for each combination of supplier tax ID and
seriesfound 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.
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 asequence-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:
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-idis 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:
3covers up to 999 documents,6up 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
FTfor invoices andNCfor credit notes. - If you use a year suffix such as
-2026to restart numbering annually, create a new series each year. - Description is for internal organization only.
FAQ
Job fails with 'series required when code_id not present'
Job fails with 'series required when code_id not present'
The document has no
series defined. The Add sequential code step needs it to decide which dynamic series to use.Should I use a different series for each document type?
Should I use a different series for each document type?
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.
What happens if I reach the maximum number in a series?
What happens if I reach the maximum number in a series?
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.Can I skip numbers in a series?
Can I skip numbers in a series?
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.
How do I continue a series from another system?
How do I continue a series from another system?
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.Can I modify a series after creating it?
Can I modify a series after creating it?
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.