Sequential IDs Management
Gets all sequence schemas.
- : schema_view
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
[a-zA-Z0-9_-]+The name of the sequence schema.
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
^[a-zA-Z0-9]*$The prefix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The suffix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The starting value of the sequence. It is used to generate the first ID. The starting value is incremented for each subsequent ID.
The maximum value of the sequence. It is used to limit the range of generated IDs. If the maximum value is reached, the sequence will not generate any more IDs.
The number of digits in the generated ID. It is used to format the ID. If the number of digits is less than the maximum value, leading zeros are added.
Flag indicating whether the schema is active.
ID of the sequence schema.
Number of created IDs based on the selected schema.
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
GET /sequential-id/{tenant}/schemas HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"name": "Schema",
"schemaType": "orderNoSequence",
"active": true,
"preText": "EC-__region__-__year__-__month__-",
"postText": "-D",
"startValue": 1,
"maxValue": 999999999,
"numberOfDigits": 9,
"counter": 45684,
"placeholders": {
"__year__": {
"required": true
},
"__month__": {
"required": true
},
"__region__": {
"required": true,
"sitePath": "mixins.customConfig.region"
}
}
},
{
"name": "customer_number",
"startValue": 1,
"schemaType": "orderNoSequence",
"preText": "C-",
"minValue": 100,
"maxValue": 999999999,
"numberOfDigits": 9,
"counter": 109
}
]Creates a new sequence schema.
Placeholder names must start and end with __, for example __year__ or __region__.
Built-in placeholders that Sequential ID can resolve when siteCode is provided:
__year__,__month__,__day__,__hour__,__minute__,__second__— based onhomeBase.timezone. Default timezone isUTC.__country__— based onhomeBase.address.country. Default country isDE.
Custom placeholders must declare sitePath. Paths that start with mixins. are resolved from Retrieving site mixins and are format-validated only at creation. Other paths are resolved from Retrieving a site and must match the Site schema, for example homeBase.address.country. Paths that target metadata or the bare mixins root are rejected.
For array values, arrayLimit (default 3) and delimiter (default -) control how elements are joined. Both are ignored for scalar values. Resolved values longer than 100 characters are truncated. To access array elements, use the sitePath with the index, for example mixins.customConfig.regions.2 or mixins.customConfig.regions.2.name. Array index starts at 0. Omit the array index to access all elements, which will then be joined with the delimiter and limited to arrayLimit elements. Joining of object array elements is not supported.
- : schema_manage
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
[a-zA-Z0-9_-]+The name of the sequence schema.
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
^[a-zA-Z0-9]*$The prefix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The suffix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The starting value of the sequence. It is used to generate the first ID. The starting value is incremented for each subsequent ID.
The maximum value of the sequence. It is used to limit the range of generated IDs. If the maximum value is reached, the sequence will not generate any more IDs.
The number of digits in the generated ID. It is used to format the ID. If the number of digits is less than the maximum value, leading zeros are added.
ID of the created sequence schema.
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
POST /sequential-id/{tenant}/schemas HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 312
{
"name": "Schema",
"schemaType": "orderNoSequence",
"preText": "EC-__region__-__year__-__month__-",
"postText": "-D",
"maxValue": 999999999,
"numberOfDigits": 9,
"startValue": 3,
"placeholders": {
"__year__": {
"required": true
},
"__month__": {
"required": true
},
"__region__": {
"required": true,
"sitePath": "mixins.customConfig.region"
}
}
}{
"id": "6915e2eb3b4c2e6c7c80711b"
}Gets a sequence schema by its ID.
- : schema_view
The ID of the schema.
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$The name of the sequence schema.
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
^[a-zA-Z0-9]*$The prefix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The suffix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The starting value of the sequence. It is used to generate the first ID. The starting value is incremented for each subsequent ID.
The maximum value of the sequence. It is used to limit the range of generated IDs. If the maximum value is reached, the sequence will not generate any more IDs.
The number of digits in the generated ID. It is used to format the ID. If the number of digits is less than the maximum value, leading zeros are added.
Flag indicating whether the schema is active.
ID of the sequence schema.
Number of created IDs based on the selected schema.
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
GET /sequential-id/{tenant}/schemas/{schemaId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"name": "Schema",
"schemaType": "orderNoSequence",
"active": true,
"preText": "EC-__region__-__year__-__month__-",
"postText": "-D",
"startValue": 1,
"maxValue": 999999999,
"numberOfDigits": 9,
"counter": 45684,
"placeholders": {
"__year__": {
"required": true
},
"__month__": {
"required": true
},
"__region__": {
"required": true,
"sitePath": "mixins.customConfig.region"
}
}
}Deletes a sequence schema by its ID.
- : schema_manage
The ID of the schema.
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$Successful schema removal
No content
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Internal Server Error.
DELETE /sequential-id/{tenant}/schemas/{schemaId} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Sets the schema as active in the system.
- : schema_manage
The ID of the schema to activate.
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$Schema set to active
No content
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Resource does not exist.
POST /sequential-id/{tenant}/schemas/{schemaId}/setActive HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Gets all sequence schemas.
- : schema_view
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
[a-zA-Z0-9_-]+The name of the sequence schema.
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
^[a-zA-Z0-9]*$The prefix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The suffix of the ID. It can contain placeholders, which are replaced with their values.
Placeholders are defined in the placeholders property.
The starting value of the sequence. It is used to generate the first ID. The starting value is incremented for each subsequent ID.
The maximum value of the sequence. It is used to limit the range of generated IDs. If the maximum value is reached, the sequence will not generate any more IDs.
The number of digits in the generated ID. It is used to format the ID. If the number of digits is less than the maximum value, leading zeros are added.
Flag indicating whether the schema is active.
ID of the sequence schema.
Number of created IDs based on the selected schema.
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
GET /sequential-id/{tenant}/schemas/types/{schemaType} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
{
"name": "Schema",
"schemaType": "orderNoSequence",
"active": true,
"preText": "EC-__region__-__year__-__month__-",
"postText": "-D",
"startValue": 1,
"maxValue": 999999999,
"numberOfDigits": 9,
"counter": 45684,
"placeholders": {
"__year__": {
"required": true
},
"__month__": {
"required": true
},
"__region__": {
"required": true,
"sitePath": "mixins.customConfig.region"
}
}
},
{
"name": "customer_number",
"startValue": 1,
"schemaType": "orderNoSequence",
"preText": "C-",
"minValue": 100,
"maxValue": 999999999,
"numberOfDigits": 9,
"counter": 109
}
]Creates and returns the nextId according to the specified sequence. If you specify the sequenceKey in request body, the nextId number is generated for this sequence, otherwise default pool is used.
When siteCode is provided and a placeholder value is missing from the request body, Sequential ID resolves it from site data:
Built-in placeholders
__year__,__month__,__day__,__hour__,__minute__,__second__usehomeBase.timezone. Default timezone isUTC.Built-in
__country__useshomeBase.address.countryfrom site data.Custom placeholders with
sitePathare resolved from Retrieving a site, or from Retrieving site mixins when the path starts withmixins..
Values supplied in the request body take precedence over site resolution. Arrays of scalars are joined using delimiter (default -), limited to arrayLimit elements (default 3). Paths that resolve to an object, an empty array, or a missing value do not populate the placeholder. Required placeholders then fail with 400 Bad Request. siteCode is required when a required sitePath placeholder is not supplied in the request body. Placeholders that resolve to a value longer than 100 characters are truncated.
- : schema_view
The schema type corresponding to the entity it is used for. Possible values are:
orderNoSequenceinvoiceNoSequencequoteNoSequencepickPackNoSequenceorderHoldingAreaNoSequence
The name of your tenant.
Note: The tenant name should always be provided in lowercase.
^[a-z][a-z0-9]+$Site code used to resolve placeholders from Retrieving a site and Retrieving site mixins.
Placeholders such as __year__, __month__, __day__, __hour__, __minute__, __second__, and __country__, which are defined in the schema, can have default values computed when their counterparts are missing in the request body.
The default values are derived from the site. Specifically:
- All date-related placeholders are computed based on the
site.homeBase.timezonefield. - The country placeholder is replaced with the value of
site.homeBase.address.country.
If these values are missing in site, the following defaults are used:
UTCfortimezoneDEforcountry
The pattern to follow for the nextID.
The filler text for values based on certain properties or settings in the system.
The created nextID according to the selected schema.
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
Resource does not exist.
POST /sequential-id/{tenant}/schemas/types/{schemaType}/nextId HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"sequenceKey": "2025-05",
"placeholders": {
"__year__": "2025",
"__month__": "05"
}
}{
"id": "B7012562"
}Creates and returns multiple nextIds for the specified sequence schemas. If you specify the sequenceKey in request body, the nextIds numbers are generated for this sequence, otherwise default pool is used.
When siteCode is provided and a placeholder value is missing from the request body, Sequential ID resolves it from site data:
Built-in placeholders
__year__,__month__,__day__,__hour__,__minute__,__second__usehomeBase.timezone. Default timezone isUTC.Built-in
__country__useshomeBase.address.countryfrom site data.Custom placeholders with
sitePathare resolved from Retrieving a site, or from Retrieving site mixins when the path starts withmixins..
Values supplied in the request body take precedence over site resolution. Arrays of scalars are joined using delimiter (default -), limited to arrayLimit elements (default 3). Paths that resolve to an object, an empty array, or a missing value do not populate the placeholder. Required placeholders then fail with 400 Bad Request. siteCode is required when a required sitePath placeholder is not supplied in the request body. Placeholders that resolve to a value longer than 100 characters are truncated.
- : schema_view
Site code used to resolve placeholders from Retrieving a site and Retrieving site mixins.
Placeholders such as __year__, __month__, __day__, __hour__, __minute__, __second__, and __country__, which are defined in the schema, can have default values computed when their counterparts are missing in the request body.
The default values are derived from the site. Specifically:
- All date-related placeholders are computed based on the
site.homeBase.timezonefield. - The country placeholder is replaced with the value of
site.homeBase.address.country.
If these values are missing in site, the following defaults are used:
UTCfortimezoneDEforcountry
Request syntactically incorrect. Details of the error are included in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match required scopes.
POST /sequential-id/sequenceSchemaBatch/nextIds HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"Schema": {
"sequenceKey": "2025-05",
"placeholders": {
"__year__": "2025",
"__month__": "05"
}
},
"Schema2": {
"numberOfIds": 2,
"placeholders": {
"--prefix--": "C-"
}
}
}{
"Schema": {
"ids": [
"C-2025-05-0000000045-D",
"C-2025-05-0000000045-D"
]
}
}Last updated
Was this helpful?

